mirror of
https://github.com/Ottermandias/Glamourer.git
synced 2026-02-15 12:17:41 +01:00
Things are progressing at a satisfying rate.
This commit is contained in:
parent
5e5ce4d234
commit
cb45221be2
7 changed files with 312 additions and 103 deletions
|
|
@ -30,6 +30,9 @@ public class ActorState
|
|||
/// <summary> The territory the draw object was created last. </summary>
|
||||
public ushort LastTerritory;
|
||||
|
||||
/// <summary> State for specific material values. </summary>
|
||||
public readonly StateMaterialManager Materials = new();
|
||||
|
||||
/// <summary> Whether the State is locked at all. </summary>
|
||||
public bool IsLocked
|
||||
=> Combination != 0;
|
||||
|
|
@ -84,4 +87,4 @@ public class ActorState
|
|||
LastTerritory = territory;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -240,6 +240,8 @@ public sealed class StateManager(
|
|||
foreach (var flag in CustomizeParameterExtensions.AllFlags)
|
||||
state.Sources[flag] = StateSource.Game;
|
||||
|
||||
state.Materials.Clear();
|
||||
|
||||
var actors = ActorData.Invalid;
|
||||
if (source is StateSource.Manual or StateSource.Ipc)
|
||||
actors = Applier.ApplyAll(state, redraw, true);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue