void Awake() { Log("SRRandomizer v" + UMFMod.GetModVersion().ToString(), true); UMFGUI.RegisterPauseHandler(Pause); SRRandomizerConfig.Load(); randomSeed = new System.Random().Next(); //get an initial seed seedInput = randomSeed.ToString(); //Register Commands UMFGUI.RegisterCommand("srr_listslimes", "srr_listslimes", new string[] { "listslimes" }, 0, "Test command, prints all slime types.", CommandListSlimes); UMFGUI.RegisterCommand("srr_printslimemap", "srr_printslimemap", new string[] { "printslimemap" }, 0, "Prints the current random slime map.", CommandPrintSlimeMap); UMFGUI.RegisterCommand("srr_printproducemap", "srr_printproducemap", new string[] { "printproducemap" }, 0, "Prints the current random produce map.", CommandPrintProduceMap); UMFGUI.RegisterCommand("srr_loadprefabs", "srr_loadprefabs", new string[] { "loadprefabs" }, 0, "Temp command, load prefab table", CommandLoadPrefabs); }
public static void LoadConfig() { SRRandomizerConfig.Load(); }