Class SonsMod
Assembly: SonsSdk.dll
Syntax
public abstract class SonsMod : ModTypeBase<SonsMod>
Constructors
SonsMod()
Declaration
Properties
Manifest
Declaration
public ManifestData Manifest { get; }
Property Value
Methods
Configure mod settings and subscribe to events.
Declaration
public virtual void Configure(SonsMod.ModConfigurator config)
Parameters
Log(Color, object)
Declaration
protected void Log(Color color, object obj)
Parameters
Log(object)
Declaration
protected void Log(object obj)
Parameters
Type |
Name |
Description |
object |
obj |
|
Log(object, Color?)
Declaration
protected void Log(object msg, Color? color = null)
Parameters
OnGameStart()
Runs when the game scene is loaded (right before the player gains control).
Declaration
protected virtual void OnGameStart()
OnSceneWasInitialized(int, string)
Runs once a Scene is initialized.
Declaration
public virtual void OnSceneWasInitialized(int buildIndex, string sceneName)
Parameters
Type |
Name |
Description |
int |
buildIndex |
|
string |
sceneName |
|
OnSceneWasLoaded(int, string)
Runs when a new Scene is loaded.
Declaration
public virtual void OnSceneWasLoaded(int buildIndex, string sceneName)
Parameters
Type |
Name |
Description |
int |
buildIndex |
|
string |
sceneName |
|
OnSceneWasUnloaded(int, string)
Runs once a Scene unloads.
Declaration
public virtual void OnSceneWasUnloaded(int buildIndex, string sceneName)
Parameters
Type |
Name |
Description |
int |
buildIndex |
|
string |
sceneName |
|
OnSdkInitialized()
Runs when the SDK is fully initialized. SDK usage like creation of custom UI should be done here.
Declaration
protected virtual void OnSdkInitialized()
OnSonsSceneInitialized(ESonsScene)
Runs when a scene is initialized. But with an enum parameter to check for sons scenes.
Declaration
protected virtual void OnSonsSceneInitialized(SdkEvents.ESonsScene sonsScene)
Parameters
RegisterCommand(string, Func<string, bool>)
Declaration
protected void RegisterCommand(string command, Func<string, bool> callback)
Parameters
StartPropDebugging()
Declaration
protected void StartPropDebugging()
StopDebugging()
Declaration
protected void StopDebugging()