Class Plugin
- Namespace
- PolyMod
- Assembly
- PolyMod.dll
The BepInEx plugin of PolyMod. BepInEx loads this plugin and calls Load().
[BepInPlugin("com.polymod", "PolyMod", "2.0.0-pre")]
public class Plugin : BasePlugin
- Inheritance
-
BasePluginPlugin
- Inherited Members
-
BasePlugin.Unload()BasePlugin.AddComponent<T>()BasePlugin.LogBasePlugin.Config
Fields
BASE_PATH
The root directory of PolyMod files. This is the parent directory of the BepInEx root directory.
public static readonly string BASE_PATH
Field Value
DUMPED_DATA_PATH
The path of the directory to which PolyMod writes the dumped game data.
public static readonly string DUMPED_DATA_PATH
Field Value
LOCALIZATION_DUMP_PATH
The path of the directory to which PolyMod writes the dumped localization.
public static readonly string LOCALIZATION_DUMP_PATH
Field Value
LOGIC_DUMP_PATH
The path of the directory to which PolyMod writes the dumped GLD and avatar data.
public static readonly string LOGIC_DUMP_PATH
Field Value
MODS_PATH
The path of the directory that contains the mods.
public static readonly string MODS_PATH
Field Value
PREFABS_DUMP_PATH
The path of the directory to which PolyMod writes the dumped prefab data.
public static readonly string PREFABS_DUMP_PATH
Field Value
SPRITES_DUMP_PATH
The path of the directory to which PolyMod writes the dumped sprites and sprite infos.
public static readonly string SPRITES_DUMP_PATH
Field Value
Methods
Load()
Starts PolyMod. BepInEx calls this method when it loads the plugin.
public override void Load()
Remarks
The method reads the configuration from PolyMod.Plugin.CONFIG_PATH.
If the file is missing or not valid, it uses the default configuration.
Then it writes the configuration back to the file and updates the console.
It sets the BepInEx Logging.Disk.WriteUnityLog setting to true and calls PolyMod.Plugin.CaptureLaunchData().
If PolyMod.Plugin.Disabled is true, the method stops there.
Otherwise, it starts the PolyMod managers.