C# Class Prism.API.ModDef

The base class used to define a mod. Every mod must have exactly one type that inherits from ModDef.
Inheritance: HookContainer
Exibir arquivo Open project: TerrariaPrismTeam/Prism Class Usage Examples

Public Methods

Method Description
OnLoad ( ) : void

Called as soon as the mod is loaded.

Protected Methods

Method Description
CreateContentHandler ( ) : ContentHandler
ModDef ( ) : System

WARNING: Do not place anything in the ModDef constructor, because the mod is not completely loaded yet (eg. Assembly is null). Use OnLoad to initialize fields, etc. instead.

Private Methods

Method Description
CreateContentHandlerInternally ( ) : ContentHandler
OnAllModsLoaded ( ) : void
OnUnload ( ) : void
Unload ( ) : void

Disposes of resources.

Method Details

CreateContentHandler() protected abstract method

protected abstract CreateContentHandler ( ) : ContentHandler
return ContentHandler

ModDef() protected method

WARNING: Do not place anything in the ModDef constructor, because the mod is not completely loaded yet (eg. Assembly is null). Use OnLoad to initialize fields, etc. instead.
protected ModDef ( ) : System
return System

OnLoad() public method

Called as soon as the mod is loaded.
public OnLoad ( ) : void
return void