net.dreditor.roombuilding 0.1.6 → 0.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (133) hide show
  1. package/.attestation.p7m +0 -0
  2. package/DREditor.RoomBuilding.asmdef +28 -28
  3. package/DREditor.RoomBuilding.asmdef.meta +7 -7
  4. package/Editor/DREditor.RoomBuilding.Editor.asmdef +19 -19
  5. package/Editor/DREditor.RoomBuilding.Editor.asmdef.meta +7 -7
  6. package/Editor/FindCharactersInRoomsWizard.cs +55 -55
  7. package/Editor/FindCharactersInRoomsWizard.cs.meta +11 -11
  8. package/Editor/RoomBuilderContainsObjective.cs +38 -38
  9. package/Editor/RoomBuilderContainsObjective.cs.meta +11 -11
  10. package/Editor/RoomBuilderScanWizard.cs +90 -90
  11. package/Editor/RoomBuilderScanWizard.cs.meta +11 -11
  12. package/Editor/ScanRoomBuilders.cs +74 -74
  13. package/Editor/ScanRoomBuilders.cs.meta +11 -11
  14. package/Editor.meta +8 -8
  15. package/Implementation/Actors/ActorData.cs +115 -115
  16. package/Implementation/Actors/ActorData.cs.meta +11 -11
  17. package/Implementation/Actors/ActorStateData.cs +10 -10
  18. package/Implementation/Actors/ActorStateData.cs.meta +11 -11
  19. package/Implementation/Actors/ActorStateLoader.cs +344 -344
  20. package/Implementation/Actors/ActorStateLoader.cs.meta +11 -11
  21. package/Implementation/Actors/TActorData.cs +35 -35
  22. package/Implementation/Actors/TActorData.cs.meta +11 -11
  23. package/Implementation/Actors/TrialActorManager.cs +157 -157
  24. package/Implementation/Actors/TrialActorManager.cs.meta +11 -11
  25. package/Implementation/Actors.meta +8 -8
  26. package/Implementation/DoorLoader.cs +117 -117
  27. package/Implementation/DoorLoader.cs.meta +11 -11
  28. package/Implementation/DoorLoaderUtility.cs +51 -51
  29. package/Implementation/DoorLoaderUtility.cs.meta +11 -11
  30. package/Implementation/DoorStateData.cs +11 -11
  31. package/Implementation/DoorStateData.cs.meta +11 -11
  32. package/Implementation/ItemActorLoader.cs +157 -157
  33. package/Implementation/ItemActorLoader.cs.meta +11 -11
  34. package/Implementation/ItemData.cs +67 -67
  35. package/Implementation/ItemData.cs.meta +11 -11
  36. package/Implementation/ItemStateData.cs +10 -10
  37. package/Implementation/ItemStateData.cs.meta +11 -11
  38. package/Implementation/MoveLoader.cs +67 -67
  39. package/Implementation/MoveLoader.cs.meta +11 -11
  40. package/Implementation/MoveStateData.cs +11 -11
  41. package/Implementation/MoveStateData.cs.meta +11 -11
  42. package/Implementation/RoomStateHandlerBase.cs +241 -241
  43. package/Implementation/RoomStateHandlerBase.cs.meta +11 -11
  44. package/Implementation/SaveableData.cs +56 -56
  45. package/Implementation/SaveableData.cs.meta +11 -11
  46. package/Implementation/SaveableDataSet.cs +66 -66
  47. package/Implementation/SaveableDataSet.cs.meta +11 -11
  48. package/Implementation/SaveableManager.cs +70 -70
  49. package/Implementation/SaveableManager.cs.meta +11 -11
  50. package/Implementation/SaveableStateData.cs +10 -10
  51. package/Implementation/SaveableStateData.cs.meta +11 -11
  52. package/Implementation/SpawnableLoader.cs +125 -125
  53. package/Implementation/SpawnableLoader.cs.meta +11 -11
  54. package/Implementation/SpawnableStateData.cs +11 -11
  55. package/Implementation/SpawnableStateData.cs.meta +11 -11
  56. package/Implementation/StateDataAsset.cs +28 -28
  57. package/Implementation/StateDataAsset.cs.meta +11 -11
  58. package/Implementation/SubAreaLoader.cs +108 -108
  59. package/Implementation/SubAreaLoader.cs.meta +11 -11
  60. package/Implementation/SubAreaStateData.cs +11 -11
  61. package/Implementation/SubAreaStateData.cs.meta +11 -11
  62. package/Implementation/TriggerConverter.cs +137 -137
  63. package/Implementation/TriggerConverter.cs.meta +11 -11
  64. package/Implementation/TriggerLoader.cs +295 -295
  65. package/Implementation/TriggerLoader.cs.meta +11 -11
  66. package/Implementation/TriggerStateData.cs +18 -18
  67. package/Implementation/TriggerStateData.cs.meta +11 -11
  68. package/Implementation.meta +8 -8
  69. package/InstanceListWrapper.cs +23 -23
  70. package/InstanceListWrapper.cs.meta +11 -11
  71. package/Instances/ConvertInstanceData.cs +89 -89
  72. package/Instances/ConvertInstanceData.cs.meta +11 -11
  73. package/Instances/InstanceData.cs +43 -43
  74. package/Instances/InstanceData.cs.meta +11 -11
  75. package/Instances/InstanceStateData.cs +51 -51
  76. package/Instances/InstanceStateData.cs.meta +11 -11
  77. package/Instances/RoomInstanceData.cs +68 -68
  78. package/Instances/RoomInstanceData.cs.meta +11 -11
  79. package/Instances/RoomInstanceManager.cs +452 -452
  80. package/Instances/RoomInstanceManager.cs.meta +11 -11
  81. package/Instances.meta +8 -8
  82. package/LoadInvestigationRoomState.cs +53 -53
  83. package/LoadInvestigationRoomState.cs.meta +11 -11
  84. package/Old/ActorLoader.cs +382 -382
  85. package/Old/ActorLoader.cs.meta +11 -11
  86. package/Old/Room.cs +24 -24
  87. package/Old/Room.cs.meta +11 -11
  88. package/Old/RoomBuilder.cs +59 -59
  89. package/Old/RoomBuilder.cs.meta +11 -11
  90. package/Old/RoomData.cs +90 -90
  91. package/Old/RoomData.cs.meta +11 -11
  92. package/Old/RoomManager.cs +256 -256
  93. package/Old/RoomManager.cs.meta +11 -11
  94. package/Old/RoomManagerDisplayEditor.cs +72 -72
  95. package/Old/RoomManagerDisplayEditor.cs.meta +11 -11
  96. package/Old/RoomManagerEditor.cs +211 -211
  97. package/Old/RoomManagerEditor.cs.meta +11 -11
  98. package/Old/RoomManagerShellDisplayEditor.cs +48 -48
  99. package/Old/RoomManagerShellDisplayEditor.cs.meta +11 -11
  100. package/Old/RoomSection.cs +35 -35
  101. package/Old/RoomSection.cs.meta +11 -11
  102. package/Old.meta +8 -8
  103. package/RoomManagerBase.cs +84 -84
  104. package/RoomManagerBase.cs.meta +11 -11
  105. package/RoomManagerEditorBase.cs +86 -86
  106. package/RoomManagerEditorBase.cs.meta +11 -11
  107. package/RoomManagerEditorCoreBase.cs +159 -159
  108. package/RoomManagerEditorCoreBase.cs.meta +11 -11
  109. package/RoomSaveDisplayEditorBase.cs +111 -111
  110. package/RoomSaveDisplayEditorBase.cs.meta +11 -11
  111. package/RoomShellDisplayEditorBase.cs +68 -68
  112. package/RoomShellDisplayEditorBase.cs.meta +11 -11
  113. package/RoomStateBuilder.cs +53 -53
  114. package/RoomStateBuilder.cs.meta +11 -11
  115. package/RoomStateData.cs +58 -58
  116. package/RoomStateData.cs.meta +11 -11
  117. package/RoomStateManager.cs +202 -202
  118. package/RoomStateManager.cs.meta +11 -11
  119. package/RoomStateManagerEditor.cs +392 -392
  120. package/RoomStateManagerEditor.cs.meta +11 -11
  121. package/RoomStateSaveDisplayEditor.cs +175 -175
  122. package/RoomStateSaveDisplayEditor.cs.meta +11 -11
  123. package/RoomStateSection.cs +69 -69
  124. package/RoomStateSection.cs.meta +11 -11
  125. package/RoomStateShellDisplayEditor.cs +108 -108
  126. package/RoomStateShellDisplayEditor.cs.meta +11 -11
  127. package/{Samples → Samples~}/Room_State_Manager.prefab +473 -473
  128. package/{Samples → Samples~}/Room_State_Manager.prefab.meta +7 -7
  129. package/{Samples → Samples~}/Trial_Actor_Manager.prefab +51 -51
  130. package/{Samples → Samples~}/Trial_Actor_Manager.prefab.meta +7 -7
  131. package/package.json +51 -46
  132. package/package.json.meta +7 -7
  133. package/Samples.meta +0 -8
Binary file
@@ -1,29 +1,29 @@
1
- {
2
- "name": "DREditor.RoomBuilding",
3
- "rootNamespace": "",
4
- "references": [
5
- "DREditor",
6
- "DREditor.Editor",
7
- "DREditor.Progressing.Handling",
8
- "DREditor.DialogueEventHandling",
9
- "DREditor.RoomStateBuilding",
10
- "DREditor.RoomLoading",
11
- "DREditor.Actors",
12
- "DREditor.Talkables",
13
- "DREditor.LocalDialogues",
14
- "DREditor.Doors",
15
- "DREditor.SubAreas",
16
- "DREditor.Saveables",
17
- "DREditor.Triggers",
18
- "DREditor.Spawnables"
19
- ],
20
- "includePlatforms": [],
21
- "excludePlatforms": [],
22
- "allowUnsafeCode": false,
23
- "overrideReferences": false,
24
- "precompiledReferences": [],
25
- "autoReferenced": true,
26
- "defineConstraints": [],
27
- "versionDefines": [],
28
- "noEngineReferences": false
1
+ {
2
+ "name": "DREditor.RoomBuilding",
3
+ "rootNamespace": "",
4
+ "references": [
5
+ "DREditor",
6
+ "DREditor.Editor",
7
+ "DREditor.Progressing.Handling",
8
+ "DREditor.DialogueEventHandling",
9
+ "DREditor.RoomStateBuilding",
10
+ "DREditor.RoomLoading",
11
+ "DREditor.Actors",
12
+ "DREditor.Talkables",
13
+ "DREditor.LocalDialogues",
14
+ "DREditor.Doors",
15
+ "DREditor.SubAreas",
16
+ "DREditor.Saveables",
17
+ "DREditor.Triggers",
18
+ "DREditor.Spawnables"
19
+ ],
20
+ "includePlatforms": [],
21
+ "excludePlatforms": [],
22
+ "allowUnsafeCode": false,
23
+ "overrideReferences": false,
24
+ "precompiledReferences": [],
25
+ "autoReferenced": true,
26
+ "defineConstraints": [],
27
+ "versionDefines": [],
28
+ "noEngineReferences": false
29
29
  }
@@ -1,7 +1,7 @@
1
- fileFormatVersion: 2
2
- guid: 870f27bea9b4335468d4157b430301a6
3
- AssemblyDefinitionImporter:
4
- externalObjects: {}
5
- userData:
6
- assetBundleName:
7
- assetBundleVariant:
1
+ fileFormatVersion: 2
2
+ guid: 870f27bea9b4335468d4157b430301a6
3
+ AssemblyDefinitionImporter:
4
+ externalObjects: {}
5
+ userData:
6
+ assetBundleName:
7
+ assetBundleVariant:
@@ -1,20 +1,20 @@
1
- {
2
- "name": "DREditor.RoomBuilding.Editor",
3
- "rootNamespace": "",
4
- "references": [
5
- "DREditor",
6
- "DREditor.Editor",
7
- "DREditor.RoomBuilding"
8
- ],
9
- "includePlatforms": [
10
- "Editor"
11
- ],
12
- "excludePlatforms": [],
13
- "allowUnsafeCode": false,
14
- "overrideReferences": false,
15
- "precompiledReferences": [],
16
- "autoReferenced": true,
17
- "defineConstraints": [],
18
- "versionDefines": [],
19
- "noEngineReferences": false
1
+ {
2
+ "name": "DREditor.RoomBuilding.Editor",
3
+ "rootNamespace": "",
4
+ "references": [
5
+ "DREditor",
6
+ "DREditor.Editor",
7
+ "DREditor.RoomBuilding"
8
+ ],
9
+ "includePlatforms": [
10
+ "Editor"
11
+ ],
12
+ "excludePlatforms": [],
13
+ "allowUnsafeCode": false,
14
+ "overrideReferences": false,
15
+ "precompiledReferences": [],
16
+ "autoReferenced": true,
17
+ "defineConstraints": [],
18
+ "versionDefines": [],
19
+ "noEngineReferences": false
20
20
  }
@@ -1,7 +1,7 @@
1
- fileFormatVersion: 2
2
- guid: 32c4472f4af1cd44d81cc1be97099ae5
3
- AssemblyDefinitionImporter:
4
- externalObjects: {}
5
- userData:
6
- assetBundleName:
7
- assetBundleVariant:
1
+ fileFormatVersion: 2
2
+ guid: 32c4472f4af1cd44d81cc1be97099ae5
3
+ AssemblyDefinitionImporter:
4
+ externalObjects: {}
5
+ userData:
6
+ assetBundleName:
7
+ assetBundleVariant:
@@ -1,56 +1,56 @@
1
- //Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
2
- #if UNITY_EDITOR
3
- using DREditor.Editor.Utility;
4
- using DREditor.RoomBuilding.Implementation.Actors;
5
- using System.Linq;
6
- using UnityEditor;
7
- using UnityEngine;
8
-
9
- namespace DREditor.RoomBuilding.Editor
10
- {
11
- /// <summary>
12
- ///
13
- /// </summary>
14
- public class FindCharactersInRoomsWizard : ScriptableWizard
15
- {
16
- /// <summary>
17
- ///
18
- /// </summary>
19
- [Header("")]
20
- [Divider]
21
- [TextArea]
22
- [Tooltip("")]
23
- [SerializeField] protected string text;
24
-
25
-
26
- [MenuItem("DREditor/Utility/Scan/Room Builders for a character")]
27
- public static void CreateWizard()
28
- => DisplayWizard<FindCharactersInRoomsWizard>("Scan Room Builders for a character", "Find Builders");
29
-
30
- protected virtual void OnWizardCreate() => FindRoomStatesWithCharacter(text);
31
-
32
-
33
- /// <summary>
34
- ///
35
- /// </summary>
36
- /// <param name="characterName"></param>
37
- protected virtual void FindRoomStatesWithCharacter(string characterName)
38
- {
39
- UnityEngine.Debug.Log("Scanning All Room Saves with Character: " + characterName);
40
-
41
- var builders = BuilderUtility.FindAssetsByType<RoomStateBuilder>();
42
-
43
- foreach (var builder in builders)
44
- foreach (var section in builder.Sections)
45
- foreach (var save in section.Rooms)
46
- foreach (ActorStateData actorStateData in save.dataStates.Cast<ActorStateData>())
47
- foreach (var actorData in actorStateData.datas)
48
- if (actorData.aReference == characterName)
49
- UnityEngine.Debug.Log("Area: " + builder.name + " Chapter: " +
50
- section.Chapter.name + " Save: " + save.progressionValue.Description);
51
-
52
- UnityEngine.Debug.Log("Scan Complete");
53
- }
54
- }
55
- }
1
+ //Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
2
+ #if UNITY_EDITOR
3
+ using DREditor.Editor.Utility;
4
+ using DREditor.RoomBuilding.Implementation.Actors;
5
+ using System.Linq;
6
+ using UnityEditor;
7
+ using UnityEngine;
8
+
9
+ namespace DREditor.RoomBuilding.Editor
10
+ {
11
+ /// <summary>
12
+ ///
13
+ /// </summary>
14
+ public class FindCharactersInRoomsWizard : ScriptableWizard
15
+ {
16
+ /// <summary>
17
+ ///
18
+ /// </summary>
19
+ [Header("")]
20
+ [Divider]
21
+ [TextArea]
22
+ [Tooltip("")]
23
+ [SerializeField] protected string text;
24
+
25
+
26
+ [MenuItem("DREditor/Utility/Scan/Room Builders for a character")]
27
+ public static void CreateWizard()
28
+ => DisplayWizard<FindCharactersInRoomsWizard>("Scan Room Builders for a character", "Find Builders");
29
+
30
+ protected virtual void OnWizardCreate() => FindRoomStatesWithCharacter(text);
31
+
32
+
33
+ /// <summary>
34
+ ///
35
+ /// </summary>
36
+ /// <param name="characterName"></param>
37
+ protected virtual void FindRoomStatesWithCharacter(string characterName)
38
+ {
39
+ UnityEngine.Debug.Log("Scanning All Room Saves with Character: " + characterName);
40
+
41
+ var builders = BuilderUtility.FindAssetsByType<RoomStateBuilder>();
42
+
43
+ foreach (var builder in builders)
44
+ foreach (var section in builder.Sections)
45
+ foreach (var save in section.Rooms)
46
+ foreach (ActorStateData actorStateData in save.dataStates.Cast<ActorStateData>())
47
+ foreach (var actorData in actorStateData.datas)
48
+ if (actorData.aReference == characterName)
49
+ UnityEngine.Debug.Log("Area: " + builder.name + " Chapter: " +
50
+ section.Chapter.name + " Save: " + save.progressionValue.Description);
51
+
52
+ UnityEngine.Debug.Log("Scan Complete");
53
+ }
54
+ }
55
+ }
56
56
  #endif
@@ -1,11 +1,11 @@
1
- fileFormatVersion: 2
2
- guid: c47b71df86d47424ea8012ff361d5ef9
3
- MonoImporter:
4
- externalObjects: {}
5
- serializedVersion: 2
6
- defaultReferences: []
7
- executionOrder: 0
8
- icon: {instanceID: 0}
9
- userData:
10
- assetBundleName:
11
- assetBundleVariant:
1
+ fileFormatVersion: 2
2
+ guid: c47b71df86d47424ea8012ff361d5ef9
3
+ MonoImporter:
4
+ externalObjects: {}
5
+ serializedVersion: 2
6
+ defaultReferences: []
7
+ executionOrder: 0
8
+ icon: {instanceID: 0}
9
+ userData:
10
+ assetBundleName:
11
+ assetBundleVariant:
@@ -1,39 +1,39 @@
1
- //Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
2
- #if UNITY_EDITOR
3
- using DREditor.Editor.Utility;
4
- using System.Collections.Generic;
5
- using UnityEditor;
6
-
7
- namespace DREditor.RoomBuilding.Editor
8
- {
9
- /// <summary>
10
- ///
11
- /// </summary>
12
- public class RoomBuilderContainsObjective : RoomBuilderScanWizard
13
- {
14
- [MenuItem("DREditor/Utility/Scan/Room Builders Containing Objective")]
15
- public static void CreateWizard()
16
- => DisplayWizard<ScanRoomBuilders>("Scan Room Builders Containing Objective", "Find Builders");
17
-
18
-
19
- protected virtual void OnWizardCreate() => HasObjective();
20
-
21
-
22
- /// <summary>
23
- ///
24
- /// </summary>
25
- protected virtual void HasObjective()
26
- {
27
- List<RoomStateBuilder> builders = BuilderUtility.FindAssetsByType<RoomStateBuilder>();
28
-
29
- foreach (RoomStateBuilder builder in builders)
30
- {
31
- builder.GetSectionWithObjective(chapter, objective);
32
-
33
- if (builder != null)
34
- UnityEngine.Debug.Log(builder.name + $" has a Room Save for {chapter.title}: {objective.Description}");
35
- }
36
- }
37
- }
38
- }
1
+ //Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
2
+ #if UNITY_EDITOR
3
+ using DREditor.Editor.Utility;
4
+ using System.Collections.Generic;
5
+ using UnityEditor;
6
+
7
+ namespace DREditor.RoomBuilding.Editor
8
+ {
9
+ /// <summary>
10
+ ///
11
+ /// </summary>
12
+ public class RoomBuilderContainsObjective : RoomBuilderScanWizard
13
+ {
14
+ [MenuItem("DREditor/Utility/Scan/Room Builders Containing Objective")]
15
+ public static void CreateWizard()
16
+ => DisplayWizard<ScanRoomBuilders>("Scan Room Builders Containing Objective", "Find Builders");
17
+
18
+
19
+ protected virtual void OnWizardCreate() => HasObjective();
20
+
21
+
22
+ /// <summary>
23
+ ///
24
+ /// </summary>
25
+ protected virtual void HasObjective()
26
+ {
27
+ List<RoomStateBuilder> builders = BuilderUtility.FindAssetsByType<RoomStateBuilder>();
28
+
29
+ foreach (RoomStateBuilder builder in builders)
30
+ {
31
+ builder.GetSectionWithObjective(chapter, objective);
32
+
33
+ if (builder != null)
34
+ UnityEngine.Debug.Log(builder.name + $" has a Room Save for {chapter.title}: {objective.Description}");
35
+ }
36
+ }
37
+ }
38
+ }
39
39
  #endif
@@ -1,11 +1,11 @@
1
- fileFormatVersion: 2
2
- guid: 8f3821aa3a4fcbe41a54c271e47e1e60
3
- MonoImporter:
4
- externalObjects: {}
5
- serializedVersion: 2
6
- defaultReferences: []
7
- executionOrder: 0
8
- icon: {instanceID: 0}
9
- userData:
10
- assetBundleName:
11
- assetBundleVariant:
1
+ fileFormatVersion: 2
2
+ guid: 8f3821aa3a4fcbe41a54c271e47e1e60
3
+ MonoImporter:
4
+ externalObjects: {}
5
+ serializedVersion: 2
6
+ defaultReferences: []
7
+ executionOrder: 0
8
+ icon: {instanceID: 0}
9
+ userData:
10
+ assetBundleName:
11
+ assetBundleVariant:
@@ -1,91 +1,91 @@
1
- //Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
2
- #if UNITY_EDITOR
3
- using DREditor.Editor.Utility;
4
- using DREditor.Progressing;
5
- using UnityEditor;
6
- using UnityEngine;
7
-
8
- namespace DREditor.RoomBuilding.Editor
9
- {
10
- /// <summary>
11
- ///
12
- /// </summary>
13
- /// <remarks>
14
- ///
15
- /// </remarks>
16
- public class RoomBuilderScanWizard : ScriptableWizard
17
- {
18
- /// <summary>
19
- ///
20
- /// </summary>
21
- protected ProgressionDatabase progressionDatabase;
22
-
23
- /// <summary>
24
- ///
25
- /// </summary>
26
- protected int chapterIndex = 0;
27
-
28
- /// <summary>
29
- ///
30
- /// </summary>
31
- protected Chapter chapter;
32
-
33
- /// <summary>
34
- ///
35
- /// </summary>
36
- protected int objectiveIndex = 0;
37
-
38
- /// <summary>
39
- ///
40
- /// </summary>
41
- protected Objective objective;
42
-
43
-
44
-
45
- /// <inheritdoc/>
46
- protected override bool DrawWizardGUI()
47
- {
48
- InitializeProgression();
49
-
50
- DisplayProgressionGUI();
51
-
52
- return base.DrawWizardGUI();
53
- }
54
-
55
- /// <summary>
56
- ///
57
- /// </summary>
58
- protected virtual void InitializeProgression()
59
- {
60
- if (progressionDatabase == null)
61
- progressionDatabase = DatabaseUtility.LoadDatabase<ProgressionDatabase>();
62
-
63
- if (progressionDatabase == null)
64
- {
65
- UnityEngine.Debug.LogError("The Progression Database could not be found");
66
-
67
- Close();
68
- }
69
- }
70
-
71
- /// <summary>
72
- ///
73
- /// </summary>
74
- protected virtual void DisplayProgressionGUI()
75
- {
76
- using (new EditorGUILayout.VerticalScope())
77
- {
78
- chapterIndex = HandyFields.IntField("Chapter:", chapterIndex, 50, 8, false);
79
-
80
- chapter = progressionDatabase.Chapters[chapterIndex];
81
-
82
- objectiveIndex = EditorGUILayout.Popup(objectiveIndex, chapter.GetObjectives(), GUILayout.Width(200));
83
-
84
- objective = chapter.Objectives[objectiveIndex];
85
-
86
- GUILayout.FlexibleSpace();
87
- }
88
- }
89
- }
90
- }
1
+ //Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
2
+ #if UNITY_EDITOR
3
+ using DREditor.Editor.Utility;
4
+ using DREditor.Progressing;
5
+ using UnityEditor;
6
+ using UnityEngine;
7
+
8
+ namespace DREditor.RoomBuilding.Editor
9
+ {
10
+ /// <summary>
11
+ ///
12
+ /// </summary>
13
+ /// <remarks>
14
+ ///
15
+ /// </remarks>
16
+ public class RoomBuilderScanWizard : ScriptableWizard
17
+ {
18
+ /// <summary>
19
+ ///
20
+ /// </summary>
21
+ protected ProgressionDatabase progressionDatabase;
22
+
23
+ /// <summary>
24
+ ///
25
+ /// </summary>
26
+ protected int chapterIndex = 0;
27
+
28
+ /// <summary>
29
+ ///
30
+ /// </summary>
31
+ protected Chapter chapter;
32
+
33
+ /// <summary>
34
+ ///
35
+ /// </summary>
36
+ protected int objectiveIndex = 0;
37
+
38
+ /// <summary>
39
+ ///
40
+ /// </summary>
41
+ protected Objective objective;
42
+
43
+
44
+
45
+ /// <inheritdoc/>
46
+ protected override bool DrawWizardGUI()
47
+ {
48
+ InitializeProgression();
49
+
50
+ DisplayProgressionGUI();
51
+
52
+ return base.DrawWizardGUI();
53
+ }
54
+
55
+ /// <summary>
56
+ ///
57
+ /// </summary>
58
+ protected virtual void InitializeProgression()
59
+ {
60
+ if (progressionDatabase == null)
61
+ progressionDatabase = DatabaseUtility.LoadDatabase<ProgressionDatabase>();
62
+
63
+ if (progressionDatabase == null)
64
+ {
65
+ UnityEngine.Debug.LogError("The Progression Database could not be found");
66
+
67
+ Close();
68
+ }
69
+ }
70
+
71
+ /// <summary>
72
+ ///
73
+ /// </summary>
74
+ protected virtual void DisplayProgressionGUI()
75
+ {
76
+ using (new EditorGUILayout.VerticalScope())
77
+ {
78
+ chapterIndex = HandyFields.IntField("Chapter:", chapterIndex, 50, 8, false);
79
+
80
+ chapter = progressionDatabase.Chapters[chapterIndex];
81
+
82
+ objectiveIndex = EditorGUILayout.Popup(objectiveIndex, chapter.GetObjectives(), GUILayout.Width(200));
83
+
84
+ objective = chapter.Objectives[objectiveIndex];
85
+
86
+ GUILayout.FlexibleSpace();
87
+ }
88
+ }
89
+ }
90
+ }
91
91
  #endif
@@ -1,11 +1,11 @@
1
- fileFormatVersion: 2
2
- guid: 4ac3ddb18d969174faf018f57c36567d
3
- MonoImporter:
4
- externalObjects: {}
5
- serializedVersion: 2
6
- defaultReferences: []
7
- executionOrder: 0
8
- icon: {instanceID: 0}
9
- userData:
10
- assetBundleName:
11
- assetBundleVariant:
1
+ fileFormatVersion: 2
2
+ guid: 4ac3ddb18d969174faf018f57c36567d
3
+ MonoImporter:
4
+ externalObjects: {}
5
+ serializedVersion: 2
6
+ defaultReferences: []
7
+ executionOrder: 0
8
+ icon: {instanceID: 0}
9
+ userData:
10
+ assetBundleName:
11
+ assetBundleVariant: