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