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
@@ -1,69 +1,69 @@
1
- //Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
2
- #if UNITY_EDITOR
3
- using UnityEditor;
4
- using UnityEngine;
5
-
6
- namespace DREditor.RoomBuilding
7
- {
8
- /// <summary>
9
- ///
10
- /// </summary>
11
- public abstract class RoomShellDisplayEditorBase
12
- {
13
- /// <summary>
14
- ///
15
- /// </summary>
16
- public virtual void DisplayShellData()
17
- {
18
- using (new EditorGUILayout.HorizontalScope())
19
- {
20
- EditorGUILayout.LabelField("Shell", GUILayout.Width(100));
21
-
22
- if (HasShellData())
23
- {
24
- if (GUILayout.Button("Load Shell"))
25
- LoadShell();
26
-
27
- if (GUILayout.Button("Overwrite Shell") &&
28
- EditorUtility.DisplayDialog("Overwrite Save",
29
- "Are you sure you want to overwrite the shell room data?",
30
- "Yes", "No"))
31
- OverwriteShell();
32
-
33
- if (GUILayout.Button("Delete Shell") &&
34
- EditorUtility.DisplayDialog("Clear Shell",
35
- "Are you sure you want to clear this room's shell?", "Yes", "No"))
36
- DeleteShell();
37
- }
38
- else if (GUILayout.Button("Create Shell Save", GUILayout.Width(175)))
39
- CreateShellSave();
40
- }
41
- }
42
-
43
- /// <summary>
44
- ///
45
- /// </summary>
46
- protected abstract bool HasShellData();
47
-
48
- /// <summary>
49
- ///
50
- /// </summary>
51
- protected abstract void CreateShellSave();
52
-
53
- /// <summary>
54
- ///
55
- /// </summary>
56
- protected abstract void LoadShell();
57
-
58
- /// <summary>
59
- ///
60
- /// </summary>
61
- protected abstract void OverwriteShell();
62
-
63
- /// <summary>
64
- ///
65
- /// </summary>
66
- protected abstract void DeleteShell();
67
- }
68
- }
1
+ //Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
2
+ #if UNITY_EDITOR
3
+ using UnityEditor;
4
+ using UnityEngine;
5
+
6
+ namespace DREditor.RoomBuilding
7
+ {
8
+ /// <summary>
9
+ ///
10
+ /// </summary>
11
+ public abstract class RoomShellDisplayEditorBase
12
+ {
13
+ /// <summary>
14
+ ///
15
+ /// </summary>
16
+ public virtual void DisplayShellData()
17
+ {
18
+ using (new EditorGUILayout.HorizontalScope())
19
+ {
20
+ EditorGUILayout.LabelField("Shell", GUILayout.Width(100));
21
+
22
+ if (HasShellData())
23
+ {
24
+ if (GUILayout.Button("Load Shell"))
25
+ LoadShell();
26
+
27
+ if (GUILayout.Button("Overwrite Shell") &&
28
+ EditorUtility.DisplayDialog("Overwrite Save",
29
+ "Are you sure you want to overwrite the shell room data?",
30
+ "Yes", "No"))
31
+ OverwriteShell();
32
+
33
+ if (GUILayout.Button("Delete Shell") &&
34
+ EditorUtility.DisplayDialog("Clear Shell",
35
+ "Are you sure you want to clear this room's shell?", "Yes", "No"))
36
+ DeleteShell();
37
+ }
38
+ else if (GUILayout.Button("Create Shell Save", GUILayout.Width(175)))
39
+ CreateShellSave();
40
+ }
41
+ }
42
+
43
+ /// <summary>
44
+ ///
45
+ /// </summary>
46
+ protected abstract bool HasShellData();
47
+
48
+ /// <summary>
49
+ ///
50
+ /// </summary>
51
+ protected abstract void CreateShellSave();
52
+
53
+ /// <summary>
54
+ ///
55
+ /// </summary>
56
+ protected abstract void LoadShell();
57
+
58
+ /// <summary>
59
+ ///
60
+ /// </summary>
61
+ protected abstract void OverwriteShell();
62
+
63
+ /// <summary>
64
+ ///
65
+ /// </summary>
66
+ protected abstract void DeleteShell();
67
+ }
68
+ }
69
69
  #endif
@@ -1,11 +1,11 @@
1
- fileFormatVersion: 2
2
- guid: 67c02ce0f22df0a41bdc25424abd567f
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: 67c02ce0f22df0a41bdc25424abd567f
3
+ MonoImporter:
4
+ externalObjects: {}
5
+ serializedVersion: 2
6
+ defaultReferences: []
7
+ executionOrder: 0
8
+ icon: {instanceID: 0}
9
+ userData:
10
+ assetBundleName:
11
+ assetBundleVariant:
@@ -1,54 +1,54 @@
1
- //Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
2
- using DREditor.Progressing;
3
- using System;
4
- using System.Collections.Generic;
5
- using UnityEngine;
6
- using UnityEngine.Serialization;
7
-
8
- namespace DREditor.RoomBuilding
9
- {
10
- /// <summary>
11
- ///
12
- /// </summary>
13
- [Serializable]
14
- [CreateAssetMenu(menuName = "DREditor/Room Building/Room State Builder", fileName = "Room State Builder", order = 0)]
15
- public class RoomStateBuilder : ScriptableObject
16
- {
17
- /// <summary>
18
- ///
19
- /// </summary>
20
- [Header("")]
21
- [Space(10)]
22
- [Header("")]
23
- [Divider]
24
- [FormerlySerializedAs("Shell")]
25
- [Tooltip("")]
26
- public List<RoomStateData> Shells = new();
27
-
28
- /// <summary>
29
- ///
30
- /// </summary>
31
- [Header("")]
32
- [Divider]
33
- [Tooltip("")]
34
- public List<RoomStateSection> Sections = new();
35
-
36
-
37
- /// <summary>
38
- ///
39
- /// </summary>
40
- /// <param name="chapter"></param>
41
- /// <param name="objective"></param>
42
- /// <returns>
43
- ///
44
- /// </returns>
45
- public RoomStateSection GetSectionWithObjective(Chapter chapter, Objective objective)
46
- {
47
- foreach (RoomStateSection section in Sections)
48
- if (section.Chapter == chapter && section.HasDataFor(objective.Description))
49
- return section;
50
-
51
- return null;
52
- }
53
- }
1
+ //Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
2
+ using DREditor.Progressing;
3
+ using System;
4
+ using System.Collections.Generic;
5
+ using UnityEngine;
6
+ using UnityEngine.Serialization;
7
+
8
+ namespace DREditor.RoomBuilding
9
+ {
10
+ /// <summary>
11
+ ///
12
+ /// </summary>
13
+ [Serializable]
14
+ [CreateAssetMenu(menuName = "DREditor/Room Building/Room State Builder", fileName = "Room State Builder", order = 0)]
15
+ public class RoomStateBuilder : ScriptableObject
16
+ {
17
+ /// <summary>
18
+ ///
19
+ /// </summary>
20
+ [Header("")]
21
+ [Space(10)]
22
+ [Header("")]
23
+ [Divider]
24
+ [FormerlySerializedAs("Shell")]
25
+ [Tooltip("")]
26
+ public List<RoomStateData> Shells = new();
27
+
28
+ /// <summary>
29
+ ///
30
+ /// </summary>
31
+ [Header("")]
32
+ [Divider]
33
+ [Tooltip("")]
34
+ public List<RoomStateSection> Sections = new();
35
+
36
+
37
+ /// <summary>
38
+ ///
39
+ /// </summary>
40
+ /// <param name="chapter"></param>
41
+ /// <param name="objective"></param>
42
+ /// <returns>
43
+ ///
44
+ /// </returns>
45
+ public RoomStateSection GetSectionWithObjective(Chapter chapter, Objective objective)
46
+ {
47
+ foreach (RoomStateSection section in Sections)
48
+ if (section.Chapter == chapter && section.HasDataFor(objective.Description))
49
+ return section;
50
+
51
+ return null;
52
+ }
53
+ }
54
54
  }
@@ -1,11 +1,11 @@
1
- fileFormatVersion: 2
2
- guid: 4f59da73df7d95c47928cbdfe3166c29
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: 4f59da73df7d95c47928cbdfe3166c29
3
+ MonoImporter:
4
+ externalObjects: {}
5
+ serializedVersion: 2
6
+ defaultReferences: []
7
+ executionOrder: 0
8
+ icon: {instanceID: 0}
9
+ userData:
10
+ assetBundleName:
11
+ assetBundleVariant:
package/RoomStateData.cs CHANGED
@@ -1,59 +1,59 @@
1
- //Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
2
- using DREditor.Progressing;
3
- using System;
4
- using System.Collections.Generic;
5
- using UnityEngine;
6
-
7
- namespace DREditor.RoomBuilding
8
- {
9
- /// <summary>
10
- ///
11
- /// </summary>
12
- [Serializable]
13
- public class RoomStateData : ScriptableObject
14
- {
15
- /// <summary>
16
- ///
17
- /// </summary>
18
- [Header("")]
19
- [Space(10)]
20
- [Header("")]
21
- [Divider]
22
- [Tooltip("")]
23
- public bool isPersistent = false;
24
-
25
- /// <summary>
26
- ///
27
- /// </summary>
28
- [Tooltip("")]
29
- public Objective progressionValue;
30
-
31
-
32
- /// <summary>
33
- ///
34
- /// </summary>
35
- [Header("")]
36
- [Divider]
37
- [Tooltip("")]
38
- public List<ScriptableObject> dataStates = new();
39
-
40
-
41
- /// <summary>
42
- ///
43
- /// </summary>
44
- /// <param name="progressionValue"></param>
45
- public virtual void SetProgressionValue(Objective progressionValue) => this.progressionValue = progressionValue;
46
-
47
- /// <summary>
48
- ///
49
- /// </summary>
50
- /// <param name="isPersistent"></param>
51
- public virtual void SetPersistent(bool isPersistent) => this.isPersistent = isPersistent;
52
-
53
- /// <summary>
54
- ///
55
- /// </summary>
56
- /// <returns></returns>
57
- public virtual string GetProgressionDescription() => progressionValue.Description;
58
- }
1
+ //Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
2
+ using DREditor.Progressing;
3
+ using System;
4
+ using System.Collections.Generic;
5
+ using UnityEngine;
6
+
7
+ namespace DREditor.RoomBuilding
8
+ {
9
+ /// <summary>
10
+ ///
11
+ /// </summary>
12
+ [Serializable]
13
+ public class RoomStateData : ScriptableObject
14
+ {
15
+ /// <summary>
16
+ ///
17
+ /// </summary>
18
+ [Header("")]
19
+ [Space(10)]
20
+ [Header("")]
21
+ [Divider]
22
+ [Tooltip("")]
23
+ public bool isPersistent = false;
24
+
25
+ /// <summary>
26
+ ///
27
+ /// </summary>
28
+ [Tooltip("")]
29
+ public Objective progressionValue;
30
+
31
+
32
+ /// <summary>
33
+ ///
34
+ /// </summary>
35
+ [Header("")]
36
+ [Divider]
37
+ [Tooltip("")]
38
+ public List<ScriptableObject> dataStates = new();
39
+
40
+
41
+ /// <summary>
42
+ ///
43
+ /// </summary>
44
+ /// <param name="progressionValue"></param>
45
+ public virtual void SetProgressionValue(Objective progressionValue) => this.progressionValue = progressionValue;
46
+
47
+ /// <summary>
48
+ ///
49
+ /// </summary>
50
+ /// <param name="isPersistent"></param>
51
+ public virtual void SetPersistent(bool isPersistent) => this.isPersistent = isPersistent;
52
+
53
+ /// <summary>
54
+ ///
55
+ /// </summary>
56
+ /// <returns></returns>
57
+ public virtual string GetProgressionDescription() => progressionValue.Description;
58
+ }
59
59
  }
@@ -1,11 +1,11 @@
1
- fileFormatVersion: 2
2
- guid: 4f2105eaac43ac940b9b9fefd784a559
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: 4f2105eaac43ac940b9b9fefd784a559
3
+ MonoImporter:
4
+ externalObjects: {}
5
+ serializedVersion: 2
6
+ defaultReferences: []
7
+ executionOrder: 0
8
+ icon: {instanceID: 0}
9
+ userData:
10
+ assetBundleName:
11
+ assetBundleVariant: