Things are progressing at a satisfying rate.

This commit is contained in:
Ottermandias 2024-01-27 00:32:48 +01:00
parent 5e5ce4d234
commit cb45221be2
7 changed files with 312 additions and 103 deletions

View file

@ -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;
}
}
}

View file

@ -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);