Show / Hide Table of Contents

Interface IReloadable

Base interface for anything that supports reloading using the Deserialization system.

Namespace: Modding.Serialization
Assembly: Assembly-CSharp.dll
Syntax
public interface IReloadable

Methods

OnReload(IReloadable)

Called after newObject was reloaded onto this object. so all reloadable fields have already been updated. Any actions to be taken upon reloading should happen in here and can access the new values.

Declaration
void OnReload(IReloadable newObject)
Parameters
Type Name Description
IReloadable newObject

PreprocessForReloading()

Called on the newly deserialized object before copying its reloadable fields to the original object. Can be used to do any processing to modify some reloadable fields before they are copied.

Declaration
void PreprocessForReloading()
Back to top Generated by DocFX