Interface IEffectStatePersistence
- Namespace
- SurvivorsMaker.Simulation
- Assembly
- SurvivorsMaker.Simulation.dll
Optional per-application save codec. Payloads are immutable values, never object references. Restore applies the saved contribution to the supplied store and returns its undo record. Both hooks must be deterministic and must not mutate shared definitions or handler-global state.
public interface IEffectStatePersistence : IEffectHandler
- Inherited Members
Methods
Capture(AppliedEffect)
Serializes the applied custom handler state without reapplying or undoing it.
string Capture(AppliedEffect applied)
Parameters
appliedAppliedEffect
Returns
Restore(Effect, EffectStore, string)
Restores one captured custom application into the supplied effect store; return a token suitable for later undo.
AppliedEffect Restore(Effect effect, EffectStore store, string payload)
Parameters
effectEffectstoreEffectStorepayloadstring