Class CustomKnight
- Namespace
- CustomKnight
- Assembly
- CustomKnight.dll
Main Mod Class
public class CustomKnight : Mod, IGlobalSettings<GlobalModSettings>, ILocalSettings<SaveModSettings>, ICustomMenuMod, ITogglableMod, IMod, ILogger
- Inheritance
-
LoggableModCustomKnight
- Implements
-
IGlobalSettings<GlobalModSettings>ILocalSettings<SaveModSettings>ICustomMenuModITogglableModIModILogger
- Inherited Members
-
Mod.NameMod.PreloadSceneHooks()Mod.LoadPriority()Mod.Initialize()Mod.GetMenuButtonText()Mod.SaveGlobalSettings()
Constructors
CustomKnight()
ctor
public CustomKnight()
Fields
GameObjects
Stores Preloaded gameobjects
public static readonly Dictionary<string, GameObject> GameObjects
Field Value
- Dictionary<string, GameObject>
Properties
GlobalSettings
GlobalSettings
public static GlobalModSettings GlobalSettings { get; set; }
Property Value
Instance
Current Mod instance
public static CustomKnight Instance { get; }
Property Value
SaveSettings
Settings for current save
public static SaveModSettings SaveSettings { get; set; }
Property Value
ToggleButtonInsideMenu
ToggleButtonInsideMenu
public bool ToggleButtonInsideMenu { get; }
Property Value
dumpManager
Current DumpManager instance
public static DumpManager dumpManager { get; }
Property Value
swapManager
Current SwapManager instance
public static SwapManager swapManager { get; }
Property Value
Methods
GetMenuScreen(MenuScreen, ModToggleDelegates?)
GetMenuScreen
public MenuScreen GetMenuScreen(MenuScreen modListMenu, ModToggleDelegates? toggle)
Parameters
modListMenu
MenuScreentoggle
ModToggleDelegates?
Returns
- MenuScreen
GetName()
GetName
public string GetName()
Returns
GetPreloadNames()
GetPreloadNames
public override List<(string, string)> GetPreloadNames()
Returns
GetVersion()
GetVersion
public override string GetVersion()
Returns
Initialize(Dictionary<string, Dictionary<string, GameObject>>)
Initialize
public override void Initialize(Dictionary<string, Dictionary<string, GameObject>> preloadedObjects)
Parameters
preloadedObjects
Dictionary<string, Dictionary<string, GameObject>>
OnLoadGlobal(GlobalModSettings)
OnLoadGlobal
public void OnLoadGlobal(GlobalModSettings s)
Parameters
OnLoadLocal(SaveModSettings)
OnLoadLocal
public void OnLoadLocal(SaveModSettings s)
Parameters
OnSaveGlobal()
OnSaveGlobal
public GlobalModSettings OnSaveGlobal()
Returns
OnSaveLocal()
OnSaveLocal
public SaveModSettings OnSaveLocal()
Returns
Unload()
Unload
public void Unload()
Events
OnInit
Event called when CK is initialised but before applying skin
public static event EventHandler<EventArgs> OnInit
Event Type
OnReady
Event called when CK is fully ready (after applying a skin)
public static event EventHandler<EventArgs> OnReady
Event Type
OnUnload
Event called when the mod is unloaded
public static event EventHandler<EventArgs> OnUnload