Abstract Class Mod¶
Represents a script mod
Namespace: VoxelTycoon.Modding
Constructors¶
This class is abstract (must have implementation, can only be inherited)
Methods¶
Deinitialize()¶
Called when deinitializing a mod
Declaration
Initialize()¶
Called when initializing a mod
Declaration
OnGameStarted()¶
Called when game started (loaded)
Declaration
OnGameStarting()¶
Called when game is starting (loading)
Declaration
OnLateUpdate()¶
Called with Unity's OnLateUpdate
Declaration
OnModsInitialized()¶
Called when all mods have been initialized
Declaration
OnUpdate()¶
Called with Unity's OnUpdate
Declaration
Read(StateBinaryReader)¶
Called when loading a game. Allows a mod to load data from the save file.
Declaration
Parameters
Type | Name | Description |
---|---|---|
StateBinaryReader | reader | Used to load the data |
Write(StateBinaryWriter)¶
Called when saving a game. Allows a mod to store data from the save file.
Declaration
Parameters
Type | Name | Description |
---|---|---|
StateBinaryWriter | writer | Used to store the data |