Refactor alot of stuff
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user