4 using System.Collections.Generic;
21 public Mod mod {
get;
internal set; }
24 public string Name {
get;
internal set; }
76 if (reloadRequired != null)
virtual bool NeedsReload(ModConfig pendingConfig)
Whether or not a reload is required. The default implementation compares properties and fields annota...
static bool ObjectEquals(object a, object b)
This attribute hints that changing the value of the annotated property or field will put the config i...
virtual void OnLoaded()
This method is called when the ModConfig has been loaded for the first time. This happens before regu...
virtual bool AcceptClientChanges(ModConfig pendingConfig, int whoAmI, ref string message)
Called on the Server for ServerSide configs to determine if the changes asked for by the Client will ...
This config is specific to the client. Use this for personalization options.
ModConfig provides a way for mods to be configurable. ModConfigs can either be Client specific or Ser...
This config is shared between all clients and maintained by the server. Use this for game-play change...
static IEnumerable< PropertyFieldWrapper > GetFieldsAndProperties(object item)
bool Autoload
Whether or not this mod will autoload content by default. Autoloading content means you do not need t...
virtual void OnChanged()
This hook is called anytime new config values have been set and are ready to take effect...
Mod is an abstract class that you will override. It serves as a central place from which the mod's co...
ConfigScope
Each ModConfig class has a different scope. Failure to use the correct mode will lead to bugs...