Recover retained route state and complete PostLoad availability tails

This commit is contained in:
UnixNight committed 2026-10-26 03:58:52 -04:00
1 parent 1dddfefc68
commit 9ad5a8ef6b
36 files changed
+1559 -32

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
namespace GamePort.Game;
/// <summary>
/// Retained scalars proven through route GAM read, Init and PostLoad callbacks.
/// This is in-memory ordinary-load state, never part of the original TSK format.
/// Other gadget cleanup branches/levels need their own lifecycle proof.
/// </summary>
public sealed record PlayerLevelState(string SourceLevel, int SelectedGadget,
int MovementMode, float HoldSeconds, float EffectRemaining)
{
public bool SupportsDestination(string level) => IsRoute(SourceLevel) && IsRoute(level)
&& SelectedGadget is -1 or 3;
private static bool IsRoute(string level) => level is "LV1B" or "VR04" or "LEV1";
}