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
Afficher le fichier Open project: TerrariaPrismTeam/Prism Class Usage Examples

Méthodes publiques

Méthode Description
OnLoad ( ) : void

Called as soon as the mod is loaded.

Méthodes protégées

Méthode 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

Méthode Description
CreateContentHandlerInternally ( ) : ContentHandler
OnAllModsLoaded ( ) : void
OnUnload ( ) : void
Unload ( ) : void

Disposes of resources.

Method Details

CreateContentHandler() protected abstract méthode

protected abstract CreateContentHandler ( ) : ContentHandler
Résultat ContentHandler

ModDef() protected méthode

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
Résultat System

OnLoad() public méthode

Called as soon as the mod is loaded.
public OnLoad ( ) : void
Résultat void