ModBase
An abstract class in Root.Township, the global namespace.
Old in-game base class for a mod component: subclass it, add it to a GameObject, and it calls Initialize on start and Terminate on destroy, logging each. Used by the game's own debug mods such as FixMod.
- Listed in Global namespace: M to O
- Inherits or implements
MonoBehaviour - Derived types
ControllerMod,FixMod
Constructors
| Member | What it is |
|---|---|
protected ModBase() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Properties
| Member | What it is |
|---|---|
abstract string Name { get; } | Display name used in the load and unload log lines. |