Class EffectHandlerPersistence

Namespace
SurvivorsMaker.Simulation
Assembly
SurvivorsMaker.Simulation.dll

Captures and restores custom effect payloads through the optional persistence codec.

public static class EffectHandlerPersistence
Inheritance
EffectHandlerPersistence
Inherited Members

Methods

Capture(StatBuild, WaveEffectLease, AppliedEffect)

Writes custom application state into an effect lease without executing the handler again.

public static void Capture(StatBuild build, WaveEffectLease record, AppliedEffect token)

Parameters

build StatBuild
record WaveEffectLease
token AppliedEffect

Codec(StatBuild, Effect)

Finds the optional persistence codec for the registered effect handler.

public static IEffectStatePersistence Codec(StatBuild build, Effect effect)

Parameters

build StatBuild
effect Effect

Returns

IEffectStatePersistence

Restore(StatBuild, WaveEffectLease)

Restores an effect lease through its handler codec, preserving its captured runtime state.

public static AppliedEffect Restore(StatBuild build, WaveEffectLease record)

Parameters

build StatBuild
record WaveEffectLease

Returns

AppliedEffect