Refactor alot of stuff
This commit is contained in:
@@ -5,6 +5,22 @@ namespace KernelPanic.Combat
|
||||
/// <summary>Wave-scoped Gentoo progression. Round IDs make completion idempotent.</summary>
|
||||
public sealed class CompilationState
|
||||
{
|
||||
// Explicit checkpoint values: no gameplay hooks or random draws during restoration.
|
||||
internal CompilationStateValues CaptureValues() => new()
|
||||
{
|
||||
_version = _version,
|
||||
_lastCompletedRound = _lastCompletedRound,
|
||||
LastAdvancedRound = LastAdvancedRound,
|
||||
Level = Level,
|
||||
};
|
||||
internal void RestoreValues(CompilationStateValues value)
|
||||
{
|
||||
_version = value._version;
|
||||
_lastCompletedRound = value._lastCompletedRound;
|
||||
LastAdvancedRound = value.LastAdvancedRound;
|
||||
Level = value.Level;
|
||||
}
|
||||
|
||||
private int _version;
|
||||
private int _lastCompletedRound;
|
||||
public int LastAdvancedRound { get; private set; }
|
||||
|
||||
Reference in New Issue
Block a user