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,75 +1,75 @@
|
|
|
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 System.Collections.Generic;
|
|
6
|
-
using UnityEditor;
|
|
7
|
-
using UnityEngine;
|
|
8
|
-
|
|
9
|
-
namespace DREditor.RoomBuilding.Editor
|
|
10
|
-
{
|
|
11
|
-
/// <summary>
|
|
12
|
-
///
|
|
13
|
-
/// </summary>
|
|
14
|
-
public class ScanRoomBuilders : RoomBuilderScanWizard
|
|
15
|
-
{
|
|
16
|
-
/// <summary>
|
|
17
|
-
///
|
|
18
|
-
/// </summary>
|
|
19
|
-
[Header("")]
|
|
20
|
-
[Divider]
|
|
21
|
-
[Tooltip("")]
|
|
22
|
-
[SerializeField] protected Objective replacement;
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
[MenuItem("DREditor/Utility/Scan/Replace Objective in Room Builders")]
|
|
26
|
-
public static void CreateWizard() => DisplayWizard<ScanRoomBuilders>("Scan Builders", "Show Replacement");
|
|
27
|
-
|
|
28
|
-
protected virtual void OnWizardCreate() => ChangeObjectiveSafely(replacement);
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
/// <summary>
|
|
32
|
-
///
|
|
33
|
-
/// </summary>
|
|
34
|
-
/// <param name="replacement"></param>
|
|
35
|
-
protected virtual void ChangeObjectiveSafely(Objective replacement)
|
|
36
|
-
{
|
|
37
|
-
AssetDatabase.StartAssetEditing();
|
|
38
|
-
|
|
39
|
-
List<RoomStateBuilder> builders = BuilderUtility.FindAssetsByType<RoomStateBuilder>();
|
|
40
|
-
|
|
41
|
-
foreach (RoomStateBuilder builder in builders)
|
|
42
|
-
ReplaceObjectiveInBuilder(builder, replacement);
|
|
43
|
-
|
|
44
|
-
progressionDatabase.Chapters[chapterIndex].Objectives[objectiveIndex] = replacement;
|
|
45
|
-
|
|
46
|
-
EditorUtility.SetDirty(progressionDatabase.Chapters[chapterIndex]);
|
|
47
|
-
|
|
48
|
-
AssetDatabase.StopAssetEditing();
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
/// <summary>
|
|
52
|
-
///
|
|
53
|
-
/// </summary>
|
|
54
|
-
/// <param name="builder"></param>
|
|
55
|
-
/// <param name="replacement"></param>
|
|
56
|
-
protected virtual void ReplaceObjectiveInBuilder(RoomStateBuilder builder, Objective replacement)
|
|
57
|
-
{
|
|
58
|
-
RoomStateSection section = builder.GetSectionWithObjective(chapter, objective);
|
|
59
|
-
|
|
60
|
-
if (section != null)
|
|
61
|
-
{
|
|
62
|
-
int sectionNum = builder.Sections.IndexOf(section);
|
|
63
|
-
|
|
64
|
-
RoomStateData room = (RoomStateData)section.GetDataWithObjective(objective);
|
|
65
|
-
|
|
66
|
-
int roomNum = section.Rooms.IndexOf(room);
|
|
67
|
-
|
|
68
|
-
builder.Sections[sectionNum].Rooms[roomNum].SetProgressionValue((Objective)replacement.Clone());
|
|
69
|
-
|
|
70
|
-
EditorUtility.SetDirty(builder);
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
}
|
|
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 System.Collections.Generic;
|
|
6
|
+
using UnityEditor;
|
|
7
|
+
using UnityEngine;
|
|
8
|
+
|
|
9
|
+
namespace DREditor.RoomBuilding.Editor
|
|
10
|
+
{
|
|
11
|
+
/// <summary>
|
|
12
|
+
///
|
|
13
|
+
/// </summary>
|
|
14
|
+
public class ScanRoomBuilders : RoomBuilderScanWizard
|
|
15
|
+
{
|
|
16
|
+
/// <summary>
|
|
17
|
+
///
|
|
18
|
+
/// </summary>
|
|
19
|
+
[Header("")]
|
|
20
|
+
[Divider]
|
|
21
|
+
[Tooltip("")]
|
|
22
|
+
[SerializeField] protected Objective replacement;
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
[MenuItem("DREditor/Utility/Scan/Replace Objective in Room Builders")]
|
|
26
|
+
public static void CreateWizard() => DisplayWizard<ScanRoomBuilders>("Scan Builders", "Show Replacement");
|
|
27
|
+
|
|
28
|
+
protected virtual void OnWizardCreate() => ChangeObjectiveSafely(replacement);
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
/// <summary>
|
|
32
|
+
///
|
|
33
|
+
/// </summary>
|
|
34
|
+
/// <param name="replacement"></param>
|
|
35
|
+
protected virtual void ChangeObjectiveSafely(Objective replacement)
|
|
36
|
+
{
|
|
37
|
+
AssetDatabase.StartAssetEditing();
|
|
38
|
+
|
|
39
|
+
List<RoomStateBuilder> builders = BuilderUtility.FindAssetsByType<RoomStateBuilder>();
|
|
40
|
+
|
|
41
|
+
foreach (RoomStateBuilder builder in builders)
|
|
42
|
+
ReplaceObjectiveInBuilder(builder, replacement);
|
|
43
|
+
|
|
44
|
+
progressionDatabase.Chapters[chapterIndex].Objectives[objectiveIndex] = replacement;
|
|
45
|
+
|
|
46
|
+
EditorUtility.SetDirty(progressionDatabase.Chapters[chapterIndex]);
|
|
47
|
+
|
|
48
|
+
AssetDatabase.StopAssetEditing();
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/// <summary>
|
|
52
|
+
///
|
|
53
|
+
/// </summary>
|
|
54
|
+
/// <param name="builder"></param>
|
|
55
|
+
/// <param name="replacement"></param>
|
|
56
|
+
protected virtual void ReplaceObjectiveInBuilder(RoomStateBuilder builder, Objective replacement)
|
|
57
|
+
{
|
|
58
|
+
RoomStateSection section = builder.GetSectionWithObjective(chapter, objective);
|
|
59
|
+
|
|
60
|
+
if (section != null)
|
|
61
|
+
{
|
|
62
|
+
int sectionNum = builder.Sections.IndexOf(section);
|
|
63
|
+
|
|
64
|
+
RoomStateData room = (RoomStateData)section.GetDataWithObjective(objective);
|
|
65
|
+
|
|
66
|
+
int roomNum = section.Rooms.IndexOf(room);
|
|
67
|
+
|
|
68
|
+
builder.Sections[sectionNum].Rooms[roomNum].SetProgressionValue((Objective)replacement.Clone());
|
|
69
|
+
|
|
70
|
+
EditorUtility.SetDirty(builder);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
75
|
#endif
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
fileFormatVersion: 2
|
|
2
|
-
guid: bacdb3c45ee99df4794a4f49ba2e02f6
|
|
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: bacdb3c45ee99df4794a4f49ba2e02f6
|
|
3
|
+
MonoImporter:
|
|
4
|
+
externalObjects: {}
|
|
5
|
+
serializedVersion: 2
|
|
6
|
+
defaultReferences: []
|
|
7
|
+
executionOrder: 0
|
|
8
|
+
icon: {instanceID: 0}
|
|
9
|
+
userData:
|
|
10
|
+
assetBundleName:
|
|
11
|
+
assetBundleVariant:
|
package/Editor.meta
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
fileFormatVersion: 2
|
|
2
|
-
guid: e83762f6c8dda54479f370571fb35263
|
|
3
|
-
folderAsset: yes
|
|
4
|
-
DefaultImporter:
|
|
5
|
-
externalObjects: {}
|
|
6
|
-
userData:
|
|
7
|
-
assetBundleName:
|
|
8
|
-
assetBundleVariant:
|
|
1
|
+
fileFormatVersion: 2
|
|
2
|
+
guid: e83762f6c8dda54479f370571fb35263
|
|
3
|
+
folderAsset: yes
|
|
4
|
+
DefaultImporter:
|
|
5
|
+
externalObjects: {}
|
|
6
|
+
userData:
|
|
7
|
+
assetBundleName:
|
|
8
|
+
assetBundleVariant:
|
|
@@ -1,116 +1,116 @@
|
|
|
1
|
-
//Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
|
|
2
|
-
using DREditor.Actors;
|
|
3
|
-
using DREditor.LocalDialogues;
|
|
4
|
-
using System;
|
|
5
|
-
using System.Collections.Generic;
|
|
6
|
-
using UnityEngine;
|
|
7
|
-
using UnityEngine.Serialization;
|
|
8
|
-
|
|
9
|
-
namespace DREditor.RoomBuilding.Implementation.Actors
|
|
10
|
-
{
|
|
11
|
-
/// <summary>
|
|
12
|
-
///
|
|
13
|
-
/// </summary>
|
|
14
|
-
[Serializable]
|
|
15
|
-
public class ActorData
|
|
16
|
-
{
|
|
17
|
-
/// <summary>
|
|
18
|
-
///
|
|
19
|
-
/// </summary>
|
|
20
|
-
public string aReference;
|
|
21
|
-
|
|
22
|
-
/// <summary>
|
|
23
|
-
///
|
|
24
|
-
/// </summary>
|
|
25
|
-
public Vector3 position;
|
|
26
|
-
|
|
27
|
-
/// <summary>
|
|
28
|
-
///
|
|
29
|
-
/// </summary>
|
|
30
|
-
public Vector3 rotation;
|
|
31
|
-
|
|
32
|
-
/// <summary>
|
|
33
|
-
///
|
|
34
|
-
/// </summary>
|
|
35
|
-
[FormerlySerializedAs("aData")]
|
|
36
|
-
public List<LocalDialogue> actorDialogues;
|
|
37
|
-
|
|
38
|
-
/// <summary>
|
|
39
|
-
///
|
|
40
|
-
/// </summary>
|
|
41
|
-
public bool identified = true;
|
|
42
|
-
|
|
43
|
-
/// <summary>
|
|
44
|
-
///
|
|
45
|
-
/// </summary>
|
|
46
|
-
public Material mat;
|
|
47
|
-
|
|
48
|
-
/// <summary>
|
|
49
|
-
///
|
|
50
|
-
/// </summary>
|
|
51
|
-
public string matName = "";
|
|
52
|
-
|
|
53
|
-
/// <summary>
|
|
54
|
-
///
|
|
55
|
-
/// </summary>
|
|
56
|
-
public string displayName = "";
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
public ActorData() { }
|
|
60
|
-
|
|
61
|
-
public ActorData(string refName, Actor actor)
|
|
62
|
-
{
|
|
63
|
-
position = actor.transform.position;
|
|
64
|
-
|
|
65
|
-
rotation = actor.transform.eulerAngles;
|
|
66
|
-
|
|
67
|
-
aReference = refName;
|
|
68
|
-
|
|
69
|
-
actorDialogues = actor.conversations;
|
|
70
|
-
|
|
71
|
-
var mesh = actor.GetComponentInChildren<MeshRenderer>();
|
|
72
|
-
|
|
73
|
-
mat = mesh.sharedMaterial;
|
|
74
|
-
|
|
75
|
-
matName = mesh.sharedMaterial.name;
|
|
76
|
-
|
|
77
|
-
identified = actor.GetIdentified();
|
|
78
|
-
|
|
79
|
-
displayName = actor.GetSaveDisplayName();
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
/// <summary>
|
|
84
|
-
///
|
|
85
|
-
/// </summary>
|
|
86
|
-
/// <returns></returns>
|
|
87
|
-
public virtual object Clone()
|
|
88
|
-
{
|
|
89
|
-
ActorData newActorData = new();
|
|
90
|
-
|
|
91
|
-
ActorData copy = (ActorData)MemberwiseClone();
|
|
92
|
-
|
|
93
|
-
newActorData.aReference = copy.aReference;
|
|
94
|
-
|
|
95
|
-
newActorData.position = copy.position;
|
|
96
|
-
|
|
97
|
-
newActorData.rotation = copy.rotation;
|
|
98
|
-
|
|
99
|
-
newActorData.mat = copy.mat;
|
|
100
|
-
|
|
101
|
-
newActorData.matName = copy.matName;
|
|
102
|
-
|
|
103
|
-
newActorData.identified = copy.identified;
|
|
104
|
-
|
|
105
|
-
newActorData.displayName = copy.displayName;
|
|
106
|
-
|
|
107
|
-
newActorData.actorDialogues = new List<LocalDialogue>();
|
|
108
|
-
|
|
109
|
-
if (copy.actorDialogues != null)
|
|
110
|
-
foreach (LocalDialogue localDialogue in copy.actorDialogues)
|
|
111
|
-
newActorData.actorDialogues.Add((LocalDialogue)localDialogue.Clone());
|
|
112
|
-
|
|
113
|
-
return newActorData;
|
|
114
|
-
}
|
|
115
|
-
}
|
|
1
|
+
//Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
|
|
2
|
+
using DREditor.Actors;
|
|
3
|
+
using DREditor.LocalDialogues;
|
|
4
|
+
using System;
|
|
5
|
+
using System.Collections.Generic;
|
|
6
|
+
using UnityEngine;
|
|
7
|
+
using UnityEngine.Serialization;
|
|
8
|
+
|
|
9
|
+
namespace DREditor.RoomBuilding.Implementation.Actors
|
|
10
|
+
{
|
|
11
|
+
/// <summary>
|
|
12
|
+
///
|
|
13
|
+
/// </summary>
|
|
14
|
+
[Serializable]
|
|
15
|
+
public class ActorData
|
|
16
|
+
{
|
|
17
|
+
/// <summary>
|
|
18
|
+
///
|
|
19
|
+
/// </summary>
|
|
20
|
+
public string aReference;
|
|
21
|
+
|
|
22
|
+
/// <summary>
|
|
23
|
+
///
|
|
24
|
+
/// </summary>
|
|
25
|
+
public Vector3 position;
|
|
26
|
+
|
|
27
|
+
/// <summary>
|
|
28
|
+
///
|
|
29
|
+
/// </summary>
|
|
30
|
+
public Vector3 rotation;
|
|
31
|
+
|
|
32
|
+
/// <summary>
|
|
33
|
+
///
|
|
34
|
+
/// </summary>
|
|
35
|
+
[FormerlySerializedAs("aData")]
|
|
36
|
+
public List<LocalDialogue> actorDialogues;
|
|
37
|
+
|
|
38
|
+
/// <summary>
|
|
39
|
+
///
|
|
40
|
+
/// </summary>
|
|
41
|
+
public bool identified = true;
|
|
42
|
+
|
|
43
|
+
/// <summary>
|
|
44
|
+
///
|
|
45
|
+
/// </summary>
|
|
46
|
+
public Material mat;
|
|
47
|
+
|
|
48
|
+
/// <summary>
|
|
49
|
+
///
|
|
50
|
+
/// </summary>
|
|
51
|
+
public string matName = "";
|
|
52
|
+
|
|
53
|
+
/// <summary>
|
|
54
|
+
///
|
|
55
|
+
/// </summary>
|
|
56
|
+
public string displayName = "";
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
public ActorData() { }
|
|
60
|
+
|
|
61
|
+
public ActorData(string refName, Actor actor)
|
|
62
|
+
{
|
|
63
|
+
position = actor.transform.position;
|
|
64
|
+
|
|
65
|
+
rotation = actor.transform.eulerAngles;
|
|
66
|
+
|
|
67
|
+
aReference = refName;
|
|
68
|
+
|
|
69
|
+
actorDialogues = actor.conversations;
|
|
70
|
+
|
|
71
|
+
var mesh = actor.GetComponentInChildren<MeshRenderer>();
|
|
72
|
+
|
|
73
|
+
mat = mesh.sharedMaterial;
|
|
74
|
+
|
|
75
|
+
matName = mesh.sharedMaterial.name;
|
|
76
|
+
|
|
77
|
+
identified = actor.GetIdentified();
|
|
78
|
+
|
|
79
|
+
displayName = actor.GetSaveDisplayName();
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
/// <summary>
|
|
84
|
+
///
|
|
85
|
+
/// </summary>
|
|
86
|
+
/// <returns></returns>
|
|
87
|
+
public virtual object Clone()
|
|
88
|
+
{
|
|
89
|
+
ActorData newActorData = new();
|
|
90
|
+
|
|
91
|
+
ActorData copy = (ActorData)MemberwiseClone();
|
|
92
|
+
|
|
93
|
+
newActorData.aReference = copy.aReference;
|
|
94
|
+
|
|
95
|
+
newActorData.position = copy.position;
|
|
96
|
+
|
|
97
|
+
newActorData.rotation = copy.rotation;
|
|
98
|
+
|
|
99
|
+
newActorData.mat = copy.mat;
|
|
100
|
+
|
|
101
|
+
newActorData.matName = copy.matName;
|
|
102
|
+
|
|
103
|
+
newActorData.identified = copy.identified;
|
|
104
|
+
|
|
105
|
+
newActorData.displayName = copy.displayName;
|
|
106
|
+
|
|
107
|
+
newActorData.actorDialogues = new List<LocalDialogue>();
|
|
108
|
+
|
|
109
|
+
if (copy.actorDialogues != null)
|
|
110
|
+
foreach (LocalDialogue localDialogue in copy.actorDialogues)
|
|
111
|
+
newActorData.actorDialogues.Add((LocalDialogue)localDialogue.Clone());
|
|
112
|
+
|
|
113
|
+
return newActorData;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
116
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
fileFormatVersion: 2
|
|
2
|
-
guid: 282f180f785fd92448587fb3c07934be
|
|
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: 282f180f785fd92448587fb3c07934be
|
|
3
|
+
MonoImporter:
|
|
4
|
+
externalObjects: {}
|
|
5
|
+
serializedVersion: 2
|
|
6
|
+
defaultReferences: []
|
|
7
|
+
executionOrder: 0
|
|
8
|
+
icon: {instanceID: 0}
|
|
9
|
+
userData:
|
|
10
|
+
assetBundleName:
|
|
11
|
+
assetBundleVariant:
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
//Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
|
|
2
|
-
using System;
|
|
3
|
-
|
|
4
|
-
namespace DREditor.RoomBuilding.Implementation.Actors
|
|
5
|
-
{
|
|
6
|
-
/// <summary>
|
|
7
|
-
///
|
|
8
|
-
/// </summary>
|
|
9
|
-
[Serializable]
|
|
10
|
-
public class ActorStateData : StateDataAsset<ActorData> { }
|
|
1
|
+
//Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
|
|
2
|
+
using System;
|
|
3
|
+
|
|
4
|
+
namespace DREditor.RoomBuilding.Implementation.Actors
|
|
5
|
+
{
|
|
6
|
+
/// <summary>
|
|
7
|
+
///
|
|
8
|
+
/// </summary>
|
|
9
|
+
[Serializable]
|
|
10
|
+
public class ActorStateData : StateDataAsset<ActorData> { }
|
|
11
11
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
fileFormatVersion: 2
|
|
2
|
-
guid: 0f2cd2f90bc532d4b8d81bebf9cdde8e
|
|
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: 0f2cd2f90bc532d4b8d81bebf9cdde8e
|
|
3
|
+
MonoImporter:
|
|
4
|
+
externalObjects: {}
|
|
5
|
+
serializedVersion: 2
|
|
6
|
+
defaultReferences: []
|
|
7
|
+
executionOrder: 0
|
|
8
|
+
icon: {instanceID: 0}
|
|
9
|
+
userData:
|
|
10
|
+
assetBundleName:
|
|
11
|
+
assetBundleVariant:
|