C# Класс Prism.API.ModDef

The base class used to define a mod. Every mod must have exactly one type that inherits from ModDef.
Наследование: HookContainer
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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