Skip to content
Snippets Groups Projects
Commit ce90d4fe authored by Stefan Richter's avatar Stefan Richter
Browse files

buildable stages

parent 9d74add4
No related branches found
No related tags found
No related merge requests found
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
......@@ -7,6 +7,7 @@
public static class StageStatic
{
public static Dictionary<string, Stage> StageOfficial;
public static Dictionary<string, Stage> StageLocal;
public static Dictionary<string, int> Category = new Dictionary<string, int> {
......@@ -73,7 +74,7 @@ private static List<string> GenerateWorldList()
}
#else
_Worlds = new List<string> {"TreeWorld", "RiverWorld"};
//UnityEditor.Debug.Log("WorldList might be incomplete!");
Debug.Log("WorldList might be incomplete!");
#endif
return _Worlds;
}
......@@ -119,9 +120,9 @@ public StageErrorStruct(bool category, bool id, bool name, bool description, boo
}
}
public static void SetMode(Mode mode, UnityEngine.GameObject gameObject = null)
public static void SetMode(Mode mode, GameObject gameObject = null)
{
gameObject ??= new UnityEngine.GameObject();
gameObject ??= new GameObject();
// handle StageStatic.mode
switch (StageStatic.mode = mode)
......@@ -228,7 +229,7 @@ public static void Delete(Stage stage)
(!stage.use_install_folder ? StageLocal : StageOfficial).Remove(stage.name);
}
public static bool LoadInitStage(string name, bool local = false, bool restore_session = true, UnityEngine.GameObject gameObject = null)
public static bool LoadInitStage(string name, bool local = false, bool restore_session = true, GameObject gameObject = null)
{
if (!ContainsKey(name, local))
return false;
......@@ -247,12 +248,12 @@ public static bool LoadInitStage(string name, bool local = false, bool restore_s
return true;
}
public static bool LoadInitStage(bool restore_session, UnityEngine.GameObject gameObject = null)
public static bool LoadInitStage(bool restore_session, GameObject gameObject = null)
{
if (current_name == null || current_name.Length == 0 || !stage.DeepLoad())
return false;
gameObject ??= new UnityEngine.GameObject();
gameObject ??= new GameObject();
if (restore_session)
{
......
......@@ -27,13 +27,13 @@ EditorUserSettings:
value: 22424703114646680e0b0227036c721518021d39631b32313f3d2e30f0e53136acf238e0f323
flags: 0
RecentlyUsedScenePath-7:
value: 22424703114646680e0b0227036c6b150503570b222c340f1e3d1c21f6ae2136ebf32f
value: 22424703114646680e0b0227036c6b150503570b222c340f193b1836d5ef2634e6a923e7ee2e26
flags: 0
RecentlyUsedScenePath-8:
value: 22424703114646680e0b0227036c6b150503570b222c340f193b1836d5ef2634e6a923e7ee2e26
value: 22424703114646680e0b0227036c721518021d39630527392304183df7e57a2decee22f0
flags: 0
RecentlyUsedScenePath-9:
value: 22424703114646680e0b0227036c721518021d39630527392304183df7e57a2decee22f0
value: 22424703114646680e0b0227036c6b150503570b222c340f1e3d1c21f6ae2136ebf32f
flags: 0
vcSharedLogLevel:
value: 0d5e400f0650
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment