This commit is contained in:
Ottermandias 2023-06-28 01:39:53 +02:00
parent 63e82d19dc
commit e57538561f
34 changed files with 2428 additions and 720 deletions

View file

@ -1,4 +1,5 @@
using Glamourer.Customization;
using System;
using Glamourer.Customization;
using Glamourer.Designs;
using Glamourer.Events;
using Glamourer.Structs;
@ -20,7 +21,7 @@ public class ActorState
ModelId,
}
public ActorIdentifier Identifier { get; internal init; }
public readonly ActorIdentifier Identifier;
/// <summary> This should always represent the unmodified state of the draw object. </summary>
public DesignData BaseData;
@ -33,7 +34,7 @@ public class ActorState
.Repeat(StateChanged.Source.Game, EquipFlagExtensions.NumEquipFlags + CustomizationExtensions.NumIndices + 5).ToArray();
internal ActorState(ActorIdentifier identifier)
=> Identifier = identifier;
=> Identifier = identifier.CreatePermanent();
public ref StateChanged.Source this[EquipSlot slot, bool stain]
=> ref _sources[slot.ToIndex() + (stain ? EquipFlagExtensions.NumEquipFlags / 2 : 0)];