C# 클래스 Prism.API.ModDef

The base class used to define a mod. Every mod must have exactly one type that inherits from ModDef.
상속: HookContainer
파일 보기 프로젝트 열기: TerrariaPrismTeam/Prism 1 사용 예제들

공개 메소드들

메소드 설명
OnLoad ( ) : void

Called as soon as the mod is loaded.

보호된 메소드들

메소드 설명
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.

비공개 메소드들

메소드 설명
CreateContentHandlerInternally ( ) : ContentHandler
OnAllModsLoaded ( ) : void
OnUnload ( ) : void
Unload ( ) : void

Disposes of resources.

메소드 상세

CreateContentHandler() 보호된 추상적인 메소드

protected abstract CreateContentHandler ( ) : ContentHandler
리턴 ContentHandler

ModDef() 보호된 메소드

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
리턴 System

OnLoad() 공개 메소드

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