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.
- package/.attestation.p7m +0 -0
- package/DREditor.RoomBuilding.asmdef +28 -28
- package/DREditor.RoomBuilding.asmdef.meta +7 -7
- package/Editor/DREditor.RoomBuilding.Editor.asmdef +19 -19
- package/Editor/DREditor.RoomBuilding.Editor.asmdef.meta +7 -7
- package/Editor/FindCharactersInRoomsWizard.cs +55 -55
- package/Editor/FindCharactersInRoomsWizard.cs.meta +11 -11
- package/Editor/RoomBuilderContainsObjective.cs +38 -38
- package/Editor/RoomBuilderContainsObjective.cs.meta +11 -11
- package/Editor/RoomBuilderScanWizard.cs +90 -90
- package/Editor/RoomBuilderScanWizard.cs.meta +11 -11
- package/Editor/ScanRoomBuilders.cs +74 -74
- package/Editor/ScanRoomBuilders.cs.meta +11 -11
- package/Editor.meta +8 -8
- package/Implementation/Actors/ActorData.cs +115 -115
- package/Implementation/Actors/ActorData.cs.meta +11 -11
- package/Implementation/Actors/ActorStateData.cs +10 -10
- package/Implementation/Actors/ActorStateData.cs.meta +11 -11
- package/Implementation/Actors/ActorStateLoader.cs +344 -344
- package/Implementation/Actors/ActorStateLoader.cs.meta +11 -11
- package/Implementation/Actors/TActorData.cs +35 -35
- package/Implementation/Actors/TActorData.cs.meta +11 -11
- package/Implementation/Actors/TrialActorManager.cs +157 -157
- package/Implementation/Actors/TrialActorManager.cs.meta +11 -11
- package/Implementation/Actors.meta +8 -8
- package/Implementation/DoorLoader.cs +117 -117
- package/Implementation/DoorLoader.cs.meta +11 -11
- package/Implementation/DoorLoaderUtility.cs +51 -51
- package/Implementation/DoorLoaderUtility.cs.meta +11 -11
- package/Implementation/DoorStateData.cs +11 -11
- package/Implementation/DoorStateData.cs.meta +11 -11
- package/Implementation/ItemActorLoader.cs +157 -157
- package/Implementation/ItemActorLoader.cs.meta +11 -11
- package/Implementation/ItemData.cs +67 -67
- package/Implementation/ItemData.cs.meta +11 -11
- package/Implementation/ItemStateData.cs +10 -10
- package/Implementation/ItemStateData.cs.meta +11 -11
- package/Implementation/MoveLoader.cs +67 -67
- package/Implementation/MoveLoader.cs.meta +11 -11
- package/Implementation/MoveStateData.cs +11 -11
- package/Implementation/MoveStateData.cs.meta +11 -11
- package/Implementation/RoomStateHandlerBase.cs +241 -241
- package/Implementation/RoomStateHandlerBase.cs.meta +11 -11
- package/Implementation/SaveableData.cs +56 -56
- package/Implementation/SaveableData.cs.meta +11 -11
- package/Implementation/SaveableDataSet.cs +66 -66
- package/Implementation/SaveableDataSet.cs.meta +11 -11
- package/Implementation/SaveableManager.cs +70 -70
- package/Implementation/SaveableManager.cs.meta +11 -11
- package/Implementation/SaveableStateData.cs +10 -10
- package/Implementation/SaveableStateData.cs.meta +11 -11
- package/Implementation/SpawnableLoader.cs +125 -125
- package/Implementation/SpawnableLoader.cs.meta +11 -11
- package/Implementation/SpawnableStateData.cs +11 -11
- package/Implementation/SpawnableStateData.cs.meta +11 -11
- package/Implementation/StateDataAsset.cs +28 -28
- package/Implementation/StateDataAsset.cs.meta +11 -11
- package/Implementation/SubAreaLoader.cs +108 -108
- package/Implementation/SubAreaLoader.cs.meta +11 -11
- package/Implementation/SubAreaStateData.cs +11 -11
- package/Implementation/SubAreaStateData.cs.meta +11 -11
- package/Implementation/TriggerConverter.cs +137 -137
- package/Implementation/TriggerConverter.cs.meta +11 -11
- package/Implementation/TriggerLoader.cs +295 -295
- package/Implementation/TriggerLoader.cs.meta +11 -11
- package/Implementation/TriggerStateData.cs +18 -18
- package/Implementation/TriggerStateData.cs.meta +11 -11
- package/Implementation.meta +8 -8
- package/InstanceListWrapper.cs +23 -23
- package/InstanceListWrapper.cs.meta +11 -11
- package/Instances/ConvertInstanceData.cs +89 -89
- package/Instances/ConvertInstanceData.cs.meta +11 -11
- package/Instances/InstanceData.cs +43 -43
- package/Instances/InstanceData.cs.meta +11 -11
- package/Instances/InstanceStateData.cs +51 -51
- package/Instances/InstanceStateData.cs.meta +11 -11
- package/Instances/RoomInstanceData.cs +68 -68
- package/Instances/RoomInstanceData.cs.meta +11 -11
- package/Instances/RoomInstanceManager.cs +452 -452
- package/Instances/RoomInstanceManager.cs.meta +11 -11
- package/Instances.meta +8 -8
- package/LoadInvestigationRoomState.cs +53 -53
- package/LoadInvestigationRoomState.cs.meta +11 -11
- package/Old/ActorLoader.cs +382 -382
- package/Old/ActorLoader.cs.meta +11 -11
- package/Old/Room.cs +24 -24
- package/Old/Room.cs.meta +11 -11
- package/Old/RoomBuilder.cs +59 -59
- package/Old/RoomBuilder.cs.meta +11 -11
- package/Old/RoomData.cs +90 -90
- package/Old/RoomData.cs.meta +11 -11
- package/Old/RoomManager.cs +256 -256
- package/Old/RoomManager.cs.meta +11 -11
- package/Old/RoomManagerDisplayEditor.cs +72 -72
- package/Old/RoomManagerDisplayEditor.cs.meta +11 -11
- package/Old/RoomManagerEditor.cs +211 -211
- package/Old/RoomManagerEditor.cs.meta +11 -11
- package/Old/RoomManagerShellDisplayEditor.cs +48 -48
- package/Old/RoomManagerShellDisplayEditor.cs.meta +11 -11
- package/Old/RoomSection.cs +35 -35
- package/Old/RoomSection.cs.meta +11 -11
- package/Old.meta +8 -8
- package/RoomManagerBase.cs +84 -84
- package/RoomManagerBase.cs.meta +11 -11
- package/RoomManagerEditorBase.cs +86 -86
- package/RoomManagerEditorBase.cs.meta +11 -11
- package/RoomManagerEditorCoreBase.cs +159 -159
- package/RoomManagerEditorCoreBase.cs.meta +11 -11
- package/RoomSaveDisplayEditorBase.cs +111 -111
- package/RoomSaveDisplayEditorBase.cs.meta +11 -11
- package/RoomShellDisplayEditorBase.cs +68 -68
- package/RoomShellDisplayEditorBase.cs.meta +11 -11
- package/RoomStateBuilder.cs +53 -53
- package/RoomStateBuilder.cs.meta +11 -11
- package/RoomStateData.cs +58 -58
- package/RoomStateData.cs.meta +11 -11
- package/RoomStateManager.cs +202 -202
- package/RoomStateManager.cs.meta +11 -11
- package/RoomStateManagerEditor.cs +392 -392
- package/RoomStateManagerEditor.cs.meta +11 -11
- package/RoomStateSaveDisplayEditor.cs +175 -175
- package/RoomStateSaveDisplayEditor.cs.meta +11 -11
- package/RoomStateSection.cs +69 -69
- package/RoomStateSection.cs.meta +11 -11
- package/RoomStateShellDisplayEditor.cs +108 -108
- package/RoomStateShellDisplayEditor.cs.meta +11 -11
- package/{Samples → Samples~}/Room_State_Manager.prefab +473 -473
- package/{Samples → Samples~}/Room_State_Manager.prefab.meta +7 -7
- package/{Samples → Samples~}/Trial_Actor_Manager.prefab +51 -51
- package/{Samples → Samples~}/Trial_Actor_Manager.prefab.meta +7 -7
- package/package.json +51 -46
- package/package.json.meta +7 -7
- package/Samples.meta +0 -8
|
@@ -1,109 +1,109 @@
|
|
|
1
|
-
//Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
|
|
2
|
-
#if UNITY_EDITOR
|
|
3
|
-
using DREditor.Editor.Utility;
|
|
4
|
-
|
|
5
|
-
namespace DREditor.RoomBuilding
|
|
6
|
-
{
|
|
7
|
-
/// <summary>
|
|
8
|
-
///
|
|
9
|
-
/// </summary>
|
|
10
|
-
public class RoomStateShellDisplayEditor : RoomShellDisplayEditorBase
|
|
11
|
-
{
|
|
12
|
-
/// <summary>
|
|
13
|
-
///
|
|
14
|
-
/// </summary>
|
|
15
|
-
readonly RoomStateManager manager;
|
|
16
|
-
|
|
17
|
-
/// <summary>
|
|
18
|
-
///
|
|
19
|
-
/// </summary>
|
|
20
|
-
readonly RoomStateBuilder builder;
|
|
21
|
-
|
|
22
|
-
/// <summary>
|
|
23
|
-
///
|
|
24
|
-
/// </summary>
|
|
25
|
-
readonly RoomStateSaveDisplayEditor editor;
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
public RoomStateShellDisplayEditor(RoomStateManager manager, RoomStateBuilder builder, RoomStateSaveDisplayEditor editor)
|
|
29
|
-
{
|
|
30
|
-
this.manager = manager;
|
|
31
|
-
|
|
32
|
-
this.builder = builder;
|
|
33
|
-
|
|
34
|
-
this.editor = editor;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
/// <inheritdoc/>
|
|
39
|
-
protected override void CreateShellSave()
|
|
40
|
-
{
|
|
41
|
-
string shellPath = FolderUtility.GetAssetFolderPath(builder);
|
|
42
|
-
|
|
43
|
-
if (!FolderUtility.TryCreateFolder(ref shellPath, builder.name + "_Shell"))
|
|
44
|
-
return;
|
|
45
|
-
|
|
46
|
-
string builderPrefix = builder.name.Replace(".asset", "");
|
|
47
|
-
|
|
48
|
-
string shellAssetName = builderPrefix + $"_{manager.intChapter}_Shell";
|
|
49
|
-
|
|
50
|
-
if (!FolderUtility.TryCreateFolder(ref shellPath, shellAssetName))
|
|
51
|
-
return;
|
|
52
|
-
|
|
53
|
-
string newAssetPath = $"{shellPath}/{shellAssetName}.asset";
|
|
54
|
-
|
|
55
|
-
RoomStateData shellAsset = editor.CreateRoomState(null, newAssetPath);
|
|
56
|
-
|
|
57
|
-
CheckFillShells();
|
|
58
|
-
|
|
59
|
-
if (manager.intChapter >= 0 && manager.intChapter < builder.Shells.Count)
|
|
60
|
-
builder.Shells[manager.intChapter] = shellAsset;
|
|
61
|
-
else
|
|
62
|
-
builder.Shells.Add(shellAsset);
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
/// <inheritdoc/>
|
|
66
|
-
protected override bool HasShellData()
|
|
67
|
-
{
|
|
68
|
-
if (builder == null)
|
|
69
|
-
return false;
|
|
70
|
-
|
|
71
|
-
bool chapterIsLessThanShellCount = manager.intChapter < builder.Shells.Count;
|
|
72
|
-
|
|
73
|
-
if (!chapterIsLessThanShellCount)
|
|
74
|
-
return false;
|
|
75
|
-
|
|
76
|
-
bool shellListContainsValidShellAsset = builder.Shells[manager.intChapter] != null;
|
|
77
|
-
|
|
78
|
-
return chapterIsLessThanShellCount && shellListContainsValidShellAsset;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
/// <summary>
|
|
82
|
-
///
|
|
83
|
-
/// </summary>
|
|
84
|
-
protected virtual void CheckFillShells()
|
|
85
|
-
{
|
|
86
|
-
if (builder.Shells.Count < manager.intChapter)
|
|
87
|
-
{
|
|
88
|
-
builder.Shells.Add(null);
|
|
89
|
-
|
|
90
|
-
CheckFillShells();
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
/// <inheritdoc/>
|
|
95
|
-
protected override void LoadShell() => editor.LoadRoom(builder.Shells[manager.intChapter]);
|
|
96
|
-
|
|
97
|
-
/// <inheritdoc/>
|
|
98
|
-
protected override void OverwriteShell() => editor.OverwriteRoom(null, builder.Shells[manager.intChapter], -1);
|
|
99
|
-
|
|
100
|
-
/// <inheritdoc/>
|
|
101
|
-
protected override void DeleteShell()
|
|
102
|
-
{
|
|
103
|
-
string shellPath = FolderUtility.GetAssetFolderPath(builder.Shells[manager.intChapter]);
|
|
104
|
-
|
|
105
|
-
editor.DeleteRoomState(builder, shellPath, builder.Shells, manager.intChapter);
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
}
|
|
1
|
+
//Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
|
|
2
|
+
#if UNITY_EDITOR
|
|
3
|
+
using DREditor.Editor.Utility;
|
|
4
|
+
|
|
5
|
+
namespace DREditor.RoomBuilding
|
|
6
|
+
{
|
|
7
|
+
/// <summary>
|
|
8
|
+
///
|
|
9
|
+
/// </summary>
|
|
10
|
+
public class RoomStateShellDisplayEditor : RoomShellDisplayEditorBase
|
|
11
|
+
{
|
|
12
|
+
/// <summary>
|
|
13
|
+
///
|
|
14
|
+
/// </summary>
|
|
15
|
+
readonly RoomStateManager manager;
|
|
16
|
+
|
|
17
|
+
/// <summary>
|
|
18
|
+
///
|
|
19
|
+
/// </summary>
|
|
20
|
+
readonly RoomStateBuilder builder;
|
|
21
|
+
|
|
22
|
+
/// <summary>
|
|
23
|
+
///
|
|
24
|
+
/// </summary>
|
|
25
|
+
readonly RoomStateSaveDisplayEditor editor;
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
public RoomStateShellDisplayEditor(RoomStateManager manager, RoomStateBuilder builder, RoomStateSaveDisplayEditor editor)
|
|
29
|
+
{
|
|
30
|
+
this.manager = manager;
|
|
31
|
+
|
|
32
|
+
this.builder = builder;
|
|
33
|
+
|
|
34
|
+
this.editor = editor;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
/// <inheritdoc/>
|
|
39
|
+
protected override void CreateShellSave()
|
|
40
|
+
{
|
|
41
|
+
string shellPath = FolderUtility.GetAssetFolderPath(builder);
|
|
42
|
+
|
|
43
|
+
if (!FolderUtility.TryCreateFolder(ref shellPath, builder.name + "_Shell"))
|
|
44
|
+
return;
|
|
45
|
+
|
|
46
|
+
string builderPrefix = builder.name.Replace(".asset", "");
|
|
47
|
+
|
|
48
|
+
string shellAssetName = builderPrefix + $"_{manager.intChapter}_Shell";
|
|
49
|
+
|
|
50
|
+
if (!FolderUtility.TryCreateFolder(ref shellPath, shellAssetName))
|
|
51
|
+
return;
|
|
52
|
+
|
|
53
|
+
string newAssetPath = $"{shellPath}/{shellAssetName}.asset";
|
|
54
|
+
|
|
55
|
+
RoomStateData shellAsset = editor.CreateRoomState(null, newAssetPath);
|
|
56
|
+
|
|
57
|
+
CheckFillShells();
|
|
58
|
+
|
|
59
|
+
if (manager.intChapter >= 0 && manager.intChapter < builder.Shells.Count)
|
|
60
|
+
builder.Shells[manager.intChapter] = shellAsset;
|
|
61
|
+
else
|
|
62
|
+
builder.Shells.Add(shellAsset);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/// <inheritdoc/>
|
|
66
|
+
protected override bool HasShellData()
|
|
67
|
+
{
|
|
68
|
+
if (builder == null)
|
|
69
|
+
return false;
|
|
70
|
+
|
|
71
|
+
bool chapterIsLessThanShellCount = manager.intChapter < builder.Shells.Count;
|
|
72
|
+
|
|
73
|
+
if (!chapterIsLessThanShellCount)
|
|
74
|
+
return false;
|
|
75
|
+
|
|
76
|
+
bool shellListContainsValidShellAsset = builder.Shells[manager.intChapter] != null;
|
|
77
|
+
|
|
78
|
+
return chapterIsLessThanShellCount && shellListContainsValidShellAsset;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/// <summary>
|
|
82
|
+
///
|
|
83
|
+
/// </summary>
|
|
84
|
+
protected virtual void CheckFillShells()
|
|
85
|
+
{
|
|
86
|
+
if (builder.Shells.Count < manager.intChapter)
|
|
87
|
+
{
|
|
88
|
+
builder.Shells.Add(null);
|
|
89
|
+
|
|
90
|
+
CheckFillShells();
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
/// <inheritdoc/>
|
|
95
|
+
protected override void LoadShell() => editor.LoadRoom(builder.Shells[manager.intChapter]);
|
|
96
|
+
|
|
97
|
+
/// <inheritdoc/>
|
|
98
|
+
protected override void OverwriteShell() => editor.OverwriteRoom(null, builder.Shells[manager.intChapter], -1);
|
|
99
|
+
|
|
100
|
+
/// <inheritdoc/>
|
|
101
|
+
protected override void DeleteShell()
|
|
102
|
+
{
|
|
103
|
+
string shellPath = FolderUtility.GetAssetFolderPath(builder.Shells[manager.intChapter]);
|
|
104
|
+
|
|
105
|
+
editor.DeleteRoomState(builder, shellPath, builder.Shells, manager.intChapter);
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
109
|
#endif
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
fileFormatVersion: 2
|
|
2
|
-
guid: bc17d4ffd76eeaf4b8d0197fe90566b0
|
|
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: bc17d4ffd76eeaf4b8d0197fe90566b0
|
|
3
|
+
MonoImporter:
|
|
4
|
+
externalObjects: {}
|
|
5
|
+
serializedVersion: 2
|
|
6
|
+
defaultReferences: []
|
|
7
|
+
executionOrder: 0
|
|
8
|
+
icon: {instanceID: 0}
|
|
9
|
+
userData:
|
|
10
|
+
assetBundleName:
|
|
11
|
+
assetBundleVariant:
|