public abstract class ModThe base class for every CMAPI mod entry point.
Members
HelperGets the services assigned to this mod.propertyMonitorGets the logger attributed to this mod.propertyLogWrites a normal informational message for this mod.methodLogWarningWrites a warning for this mod.methodLogErrorWrites an error for this mod.methodLogDebugWrites a development-only diagnostic message for this mod.methodEntryInitializes the mod and registers its events, commands, or other behavior.methodHelper
propertypublic IModHelper HelperGets the services assigned to this mod.
This property is available when
Entry(IModHelper) is called.Monitor
propertypublic IMonitor MonitorGets the logger attributed to this mod.
This property is available when
Entry(IModHelper) is called.Log
methodprotected void Log(string message)Writes a normal informational message for this mod.
LogWarning
methodprotected void LogWarning(string message)Writes a warning for this mod.
LogError
methodprotected void LogError(string message)Writes an error for this mod.
LogDebug
methodprotected void LogDebug(string message)Writes a development-only diagnostic message for this mod.
Entry
methodpublic abstract void Entry(IModHelper helper)Initializes the mod and registers its events, commands, or other behavior.
CMAPI calls this method once during startup on the game's main thread. Throwing from this method prevents the mod from loading and causes CMAPI to remove events and commands registered earlier in the same call.