IHotloadManagedclass

During hotloads, instances of types implementing this interface will be notified when they get replaced.

objectIHotloadManaged
Namespace
Sandbox
Assembly
Sandbox.System
Declaration
public abstract interface Sandbox.IHotloadManaged

Methods4

Showing 4 methods

public virtual void Created(System.Collections.Generic.IReadOnlyDictionary`2<string,object> state)PUBLICVIRTUAL

ParameterTypeDescription
stateIReadOnlyDictionary<string,object>
Returns:void

public virtual void Destroyed(System.Collections.Generic.Dictionary`2<string,object> state)PUBLICVIRTUAL

ParameterTypeDescription
stateDictionary<string,object>
Returns:void

public virtual void Failed()PUBLICVIRTUAL

Called when this instance could not be upgraded during a hotload, and any references to it have been replaced with null. This is a good time to clean up any unmanaged resources related to this instance.

Returns:void

public virtual void Persisted()PUBLICVIRTUAL

Called when this instance is about to be processed, but not replaced.

Returns:void

On this page