Recover retained route state and complete PostLoad availability tails
This commit is contained in:
1 parent
1dddfefc68
commit
9ad5a8ef6b
36 files changed
+1559
-32
No files matched your search
@@ -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";
|
||||
}
|
||||
Reference in new issue
Block a user