Table of Contents

Class DefaultSaver

Namespace
Chronicler
Assembly
Chronicler.dll

Provides a reusable save/apply lifecycle base for explicit state transfer helpers.

public abstract class DefaultSaver
Inheritance
DefaultSaver
Inherited Members

Remarks

Host integrations can use these hooks to transfer settings and configuration between a library and an editor or game engine. The host owns when each phase runs; this base class has no engine dependency.

Constructors

DefaultSaver()

protected DefaultSaver()

Methods

Apply()

Apply the transferred state.

public void Apply()

Remarks

Calls OnApply() synchronously. The host decides when to run the phase.

EarlyApply()

Prepare the destination for applying state.

public void EarlyApply()

Remarks

Calls OnEarlyApply() synchronously. The host decides when to run the phase.

LateApply()

Finish applying state and reconnect dependent host state.

public void LateApply()

Remarks

Calls OnLateApply() synchronously. The host decides when to run the phase.

OnApply()

Apply the transferred state.

protected virtual void OnApply()

Remarks

Override to implement Apply() for the host. The default hook has no effect.

OnEarlyApply()

Prepare the destination for applying state.

protected virtual void OnEarlyApply()

Remarks

Override to implement EarlyApply() for the host. The default hook has no effect.

OnLateApply()

Finish applying state and reconnect dependent host state.

protected virtual void OnLateApply()

Remarks

Override to implement LateApply() for the host. The default hook has no effect.

OnSave()

Capture the state to transfer.

protected virtual void OnSave()

Remarks

Override to implement Save() for the host. The default hook has no effect.

Save()

Capture the state to transfer.

public void Save()

Remarks

Calls OnSave() synchronously. The host decides when to run the phase.