Refactor alot of stuff

This commit is contained in:
2026-10-29 22:54:29 +01:00
parent c23b666ee4
commit 260abc2c98
138 changed files with 2835 additions and 466 deletions
+16
View File
@@ -7,6 +7,22 @@ namespace KernelPanic.Combat
/// <summary>Wave-local policy state. Commit only after combat validates phase and target.</summary>
public sealed class NixGovernorState
{
// Explicit checkpoint values: no gameplay hooks or random draws during restoration.
internal NixGovernorStateValues CaptureValues() => new()
{
Governor = Governor,
Version = Version,
FreeSwitchUsed = FreeSwitchUsed,
LastSwitchRound = LastSwitchRound,
};
internal void RestoreValues(NixGovernorStateValues value)
{
Governor = value.Governor;
Version = value.Version;
FreeSwitchUsed = value.FreeSwitchUsed;
LastSwitchRound = value.LastSwitchRound;
}
public NixGovernor Governor { get; private set; } = NixGovernor.Schedutil;
public int Version { get; private set; }
public bool Active => Version > 0;