ModBase
OnLoad
Called when the mod gets loaded (the whole code is already prepared to be used and all resources are loaded). public override void OnLoad() { } | |||||||||
OnUnload
Called when the mod gets unloaded. public override void OnUnload() { } | |||||||||
OnAllModsLoaded
Called after all mods get loaded. public override void OnAllModsLoaded() { } | |||||||||
OptionChanged
Called when leaving the options page for each option. public override void OptionChanged(Option option) { }
| |||||||||
OptionList
Called on options of type Dynamic to fill possibleValues .public override List<string> OptionList(Option option) { return null; }
| |||||||||
ChooseTrack
Called each frame when the game decides which music track to play. public override void ChooseTrack(ref string current) { }
| |||||||||
PreGameDraw
Called each frame before anything gets drawn. public override void PreGameDraw(SpriteBatch sb) { }
| |||||||||
PostGameDraw
Called each frame after everything gets drawn. public override void PostGameDraw(SpriteBatch sb) { }
| |||||||||
OnModCall
Triggered by other mods. Can be used for adding simple cross-mod code execution without adding a mod dependency. public override void OnModCall(ModBase mod, params object[] args) { }
|