// LOADS MOD public override void Load() { BaseObjects.Populate(); /* * * THE ONES DONE: * - Crate Template * - Slime Template * - Craft Resource Template * - Floating Deco Template * - Food Template * - Liquid Template (Revisit to fix the coloring) * - Plort Template * - Toy Template * - * * TO TEST: * - Fashion * - Gordo * - Animal * */ // TEST FOR PREFABS }
/// <summary> /// Called before GameContext.Start() /// </summary> static void Load() { if (isInitialized) { return; } isInitialized = true; BaseObjects.Populate(); SRCallbacks.OnLoad(); PrefabUtils.ProcessReplacements(); KeyBindManager.ReadBinds(); GameContext.Instance.gameObject.AddComponent <ModManager>(); GameContext.Instance.gameObject.AddComponent <KeyBindManager.ProcessAllBindings>(); try { SRModLoader.LoadMods(); } catch (Exception e) { Debug.LogError(e); ErrorGUI.CreateError($"{e.GetType().Name}: {e.Message}"); return; } PostLoad(); }