net.dreditor.triggers 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 (58) hide show
  1. package/.attestation.p7m +0 -0
  2. package/Actuator.cs +46 -46
  3. package/Actuator.cs.meta +11 -11
  4. package/ActuatorBehaviourBase.cs +61 -61
  5. package/ActuatorBehaviourBase.cs.meta +11 -11
  6. package/DREditor.Triggers.asmdef +17 -17
  7. package/DREditor.Triggers.asmdef.meta +7 -7
  8. package/DialogueSubsequent.cs +112 -112
  9. package/DialogueSubsequent.cs.meta +11 -11
  10. package/EventTrigger.cs +48 -48
  11. package/EventTrigger.cs.meta +11 -11
  12. package/FlagActuatorData.cs +59 -59
  13. package/FlagActuatorData.cs.meta +11 -11
  14. package/GenericActuator.cs +47 -47
  15. package/GenericActuator.cs.meta +11 -11
  16. package/GenericSubsequent.cs +23 -23
  17. package/GenericSubsequent.cs.meta +11 -11
  18. package/GenericTriggerBase.cs +52 -52
  19. package/GenericTriggerBase.cs.meta +11 -11
  20. package/HitboxActuator.cs +81 -81
  21. package/HitboxActuator.cs.meta +11 -11
  22. package/HitboxActuatorData.cs +45 -45
  23. package/HitboxActuatorData.cs.meta +11 -11
  24. package/IActuatorBehaviour.cs +20 -20
  25. package/IActuatorBehaviour.cs.meta +11 -11
  26. package/IActuatorConvert.cs +22 -22
  27. package/IActuatorConvert.cs.meta +11 -11
  28. package/IEventTriggerSaver.cs +21 -21
  29. package/IEventTriggerSaver.cs.meta +11 -11
  30. package/ISubsequentBehaviour.cs +14 -14
  31. package/ISubsequentBehaviour.cs.meta +11 -11
  32. package/ISubsequentConvert.cs +24 -24
  33. package/ISubsequentConvert.cs.meta +11 -11
  34. package/LDialogueSubsequent.cs +87 -87
  35. package/LDialogueSubsequent.cs.meta +11 -11
  36. package/LocalDialogueSubsequentData.cs +54 -54
  37. package/LocalDialogueSubsequentData.cs.meta +11 -11
  38. package/MovePlayerSubsequent.cs +141 -141
  39. package/MovePlayerSubsequent.cs.meta +11 -11
  40. package/OLFlagActuator.cs +66 -66
  41. package/OLFlagActuator.cs.meta +11 -11
  42. package/OnLoadActuator.cs +65 -65
  43. package/OnLoadActuator.cs.meta +11 -11
  44. package/PositionEventSubsequentData.cs +84 -84
  45. package/PositionEventSubsequentData.cs.meta +11 -11
  46. package/{Samples → Samples~}/Transition_Finished_Subscriber.prefab +137 -137
  47. package/{Samples → Samples~}/Transition_Finished_Subscriber.prefab.meta +7 -7
  48. package/ScriptableObjectsSubsequentData.cs +57 -57
  49. package/ScriptableObjectsSubsequentData.cs.meta +11 -11
  50. package/SimpleActuatorData.cs +28 -28
  51. package/SimpleActuatorData.cs.meta +11 -11
  52. package/Subsequent.cs +43 -43
  53. package/Subsequent.cs.meta +11 -11
  54. package/TransitionFinishedSubscriber.cs +39 -39
  55. package/TransitionFinishedSubscriber.cs.meta +11 -11
  56. package/package.json +41 -36
  57. package/package.json.meta +7 -7
  58. package/Samples.meta +0 -8
Binary file
package/Actuator.cs CHANGED
@@ -1,47 +1,47 @@
1
- //Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
2
- using System;
3
- using System.Collections.Generic;
4
- using UnityEngine;
5
- using UnityEngine.Serialization;
6
-
7
- namespace DREditor.Triggers
8
- {
9
- /// <summary>
10
- ///
11
- /// </summary>
12
- [Serializable]
13
- public class Actuator : GenericActuator, IActuatorConvert
14
- {
15
- public Vector3 HitBoxSize;
16
-
17
- [FormerlySerializedAs("stringList")]
18
- public List<string> strings = new();
19
-
20
- public bool boolValue;
21
-
22
-
23
- /// <inheritdoc/>
24
- public virtual bool CanConvert(GenericActuator genericActuator) => false;
25
-
26
- /// <inheritdoc/>
27
- public virtual void Convert(ref GenericActuator genericSubsequents, GenericActuator oldActuator) { }
28
-
29
-
30
- // Kept for archival purposes, as this class will eventually be deleted.
31
- ///// <summary></summary>
32
- ///// <param name="a"></param>
33
- ///// <param name="i"></param>
34
- ///// <returns></returns>
35
- //public static Actuator MergeInstance(Actuator a, Actuator i) // Use data of i to apply instance data
36
- //{
37
- // Actuator act = new();
38
- // act.Type = a.Type;
39
- // act.Triggered = i.Triggered;
40
- // act.position = i.position;
41
- // act.HitBoxSize = i.HitBoxSize;
42
- // act.stringList = i.stringList;
43
- // act.boolValue = i.boolValue;
44
- // return null;
45
- //}
46
- }
1
+ //Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
2
+ using System;
3
+ using System.Collections.Generic;
4
+ using UnityEngine;
5
+ using UnityEngine.Serialization;
6
+
7
+ namespace DREditor.Triggers
8
+ {
9
+ /// <summary>
10
+ ///
11
+ /// </summary>
12
+ [Serializable]
13
+ public class Actuator : GenericActuator, IActuatorConvert
14
+ {
15
+ public Vector3 HitBoxSize;
16
+
17
+ [FormerlySerializedAs("stringList")]
18
+ public List<string> strings = new();
19
+
20
+ public bool boolValue;
21
+
22
+
23
+ /// <inheritdoc/>
24
+ public virtual bool CanConvert(GenericActuator genericActuator) => false;
25
+
26
+ /// <inheritdoc/>
27
+ public virtual void Convert(ref GenericActuator genericSubsequents, GenericActuator oldActuator) { }
28
+
29
+
30
+ // Kept for archival purposes, as this class will eventually be deleted.
31
+ ///// <summary></summary>
32
+ ///// <param name="a"></param>
33
+ ///// <param name="i"></param>
34
+ ///// <returns></returns>
35
+ //public static Actuator MergeInstance(Actuator a, Actuator i) // Use data of i to apply instance data
36
+ //{
37
+ // Actuator act = new();
38
+ // act.Type = a.Type;
39
+ // act.Triggered = i.Triggered;
40
+ // act.position = i.position;
41
+ // act.HitBoxSize = i.HitBoxSize;
42
+ // act.stringList = i.stringList;
43
+ // act.boolValue = i.boolValue;
44
+ // return null;
45
+ //}
46
+ }
47
47
  }
package/Actuator.cs.meta CHANGED
@@ -1,11 +1,11 @@
1
- fileFormatVersion: 2
2
- guid: 9210a4724cb08a741b7011ad7ca0e00b
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: 9210a4724cb08a741b7011ad7ca0e00b
3
+ MonoImporter:
4
+ externalObjects: {}
5
+ serializedVersion: 2
6
+ defaultReferences: []
7
+ executionOrder: 0
8
+ icon: {instanceID: 0}
9
+ userData:
10
+ assetBundleName:
11
+ assetBundleVariant:
@@ -1,62 +1,62 @@
1
- //Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
2
- using DREditor.Services;
3
- using System.Linq;
4
- using UnityEngine;
5
-
6
- namespace DREditor.Triggers
7
- {
8
- /// <summary>
9
- ///
10
- /// </summary>
11
- /// <remarks>
12
- ///
13
- /// </remarks>
14
- public abstract class ActuatorBehaviourBase : MonoBehaviour, IActuatorBehaviour
15
- {
16
- /// <summary>
17
- ///
18
- /// </summary>
19
- protected virtual void Awake()
20
- {
21
- if (ServiceLocator.HasService<TransitionFinishedSubscriber>())
22
- ServiceLocator.GetService<TransitionFinishedSubscriber>().SubscribeToRoomTransitionsFinished(InitializeActuator);
23
- else
24
- UnityEngine.Debug.LogWarning(gameObject.name + " Actuator: ALERT: The service for when the room transition finishes" +
25
- " could not be found, therefore, this actuator will not initialize.");
26
- }
27
-
28
- /// <summary>
29
- ///
30
- /// </summary>
31
- protected virtual void OnDestroy()
32
- {
33
- if (ServiceLocator.HasService<TransitionFinishedSubscriber>())
34
- ServiceLocator.GetService<TransitionFinishedSubscriber>().UnsubscribeToRoomTransitionsFinished(InitializeActuator);
35
- }
36
-
37
- /// <summary>
38
- ///
39
- /// </summary>
40
- protected abstract void InitializeActuator();
41
-
42
-
43
- /// <inheritdoc/>
44
- public abstract object Save();
45
-
46
- /// <inheritdoc/>
47
- public abstract void Load(object ob);
48
-
49
- /// <inheritdoc/>
50
- public virtual void Call()
51
- {
52
- var subsequents = GetSubsequents();
53
-
54
- foreach (ISubsequentBehaviour subsequent in subsequents)
55
- subsequent.Call();
56
- }
57
-
58
- /// <inheritdoc/>
59
- public virtual ISubsequentBehaviour[] GetSubsequents() =>
60
- GetComponents<MonoBehaviour>().OfType<ISubsequentBehaviour>().ToArray();
61
- }
1
+ //Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
2
+ using DREditor.Services;
3
+ using System.Linq;
4
+ using UnityEngine;
5
+
6
+ namespace DREditor.Triggers
7
+ {
8
+ /// <summary>
9
+ ///
10
+ /// </summary>
11
+ /// <remarks>
12
+ ///
13
+ /// </remarks>
14
+ public abstract class ActuatorBehaviourBase : MonoBehaviour, IActuatorBehaviour
15
+ {
16
+ /// <summary>
17
+ ///
18
+ /// </summary>
19
+ protected virtual void Awake()
20
+ {
21
+ if (ServiceLocator.HasService<TransitionFinishedSubscriber>())
22
+ ServiceLocator.GetService<TransitionFinishedSubscriber>().SubscribeToRoomTransitionsFinished(InitializeActuator);
23
+ else
24
+ UnityEngine.Debug.LogWarning(gameObject.name + " Actuator: ALERT: The service for when the room transition finishes" +
25
+ " could not be found, therefore, this actuator will not initialize.");
26
+ }
27
+
28
+ /// <summary>
29
+ ///
30
+ /// </summary>
31
+ protected virtual void OnDestroy()
32
+ {
33
+ if (ServiceLocator.HasService<TransitionFinishedSubscriber>())
34
+ ServiceLocator.GetService<TransitionFinishedSubscriber>().UnsubscribeToRoomTransitionsFinished(InitializeActuator);
35
+ }
36
+
37
+ /// <summary>
38
+ ///
39
+ /// </summary>
40
+ protected abstract void InitializeActuator();
41
+
42
+
43
+ /// <inheritdoc/>
44
+ public abstract object Save();
45
+
46
+ /// <inheritdoc/>
47
+ public abstract void Load(object ob);
48
+
49
+ /// <inheritdoc/>
50
+ public virtual void Call()
51
+ {
52
+ var subsequents = GetSubsequents();
53
+
54
+ foreach (ISubsequentBehaviour subsequent in subsequents)
55
+ subsequent.Call();
56
+ }
57
+
58
+ /// <inheritdoc/>
59
+ public virtual ISubsequentBehaviour[] GetSubsequents() =>
60
+ GetComponents<MonoBehaviour>().OfType<ISubsequentBehaviour>().ToArray();
61
+ }
62
62
  }
@@ -1,11 +1,11 @@
1
- fileFormatVersion: 2
2
- guid: b90021e506def514fb49b7e1657e3859
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: b90021e506def514fb49b7e1657e3859
3
+ MonoImporter:
4
+ externalObjects: {}
5
+ serializedVersion: 2
6
+ defaultReferences: []
7
+ executionOrder: 0
8
+ icon: {instanceID: 0}
9
+ userData:
10
+ assetBundleName:
11
+ assetBundleVariant:
@@ -1,18 +1,18 @@
1
- {
2
- "name": "DREditor.Triggers",
3
- "rootNamespace": "",
4
- "references": [
5
- "DREditor",
6
- "DREditor.LocalDialogues",
7
- "DREditor.Progressing.Handling"
8
- ],
9
- "includePlatforms": [],
10
- "excludePlatforms": [],
11
- "allowUnsafeCode": false,
12
- "overrideReferences": false,
13
- "precompiledReferences": [],
14
- "autoReferenced": true,
15
- "defineConstraints": [],
16
- "versionDefines": [],
17
- "noEngineReferences": false
1
+ {
2
+ "name": "DREditor.Triggers",
3
+ "rootNamespace": "",
4
+ "references": [
5
+ "DREditor",
6
+ "DREditor.LocalDialogues",
7
+ "DREditor.Progressing.Handling"
8
+ ],
9
+ "includePlatforms": [],
10
+ "excludePlatforms": [],
11
+ "allowUnsafeCode": false,
12
+ "overrideReferences": false,
13
+ "precompiledReferences": [],
14
+ "autoReferenced": true,
15
+ "defineConstraints": [],
16
+ "versionDefines": [],
17
+ "noEngineReferences": false
18
18
  }
@@ -1,7 +1,7 @@
1
- fileFormatVersion: 2
2
- guid: 8c8735fc8b802d042a1fa5ef3c3aacf6
3
- AssemblyDefinitionImporter:
4
- externalObjects: {}
5
- userData:
6
- assetBundleName:
7
- assetBundleVariant:
1
+ fileFormatVersion: 2
2
+ guid: 8c8735fc8b802d042a1fa5ef3c3aacf6
3
+ AssemblyDefinitionImporter:
4
+ externalObjects: {}
5
+ userData:
6
+ assetBundleName:
7
+ assetBundleVariant:
@@ -1,113 +1,113 @@
1
- //Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
2
- using DREditor.Dialogues;
3
- using DREditor.Dialogues.Loading;
4
- using DREditor.EventObjects;
5
- using DREditor.Services;
6
- using System;
7
- using System.Collections.Generic;
8
- using UnityEngine;
9
-
10
- namespace DREditor.Triggers
11
- {
12
- /// <summary>
13
- ///
14
- /// </summary>
15
- [ClassHeader(nameof(ISubsequentBehaviour) + ", " + nameof(IDialogueHolder) +
16
- "\n\n")]
17
- public class DialogueSubsequent : MonoBehaviour, ISubsequentBehaviour, IDialogueHolder
18
- {
19
- /// <summary>
20
- ///
21
- /// </summary>
22
- [Tooltip("")]
23
- [SerializeField] protected List<Dialogue> dialogues = new();
24
-
25
-
26
- /// <summary>
27
- ///
28
- /// </summary>
29
- protected ScriptableObjectsSubsequentData data = new();
30
-
31
-
32
- /// <inheritdoc/>
33
- public virtual void Call()
34
- {
35
- GameObject tryActor = null;
36
-
37
- try
38
- {
39
- tryActor = GameObject.Find(dialogues[0].Lines[0].Speaker.FirstName);
40
- }
41
- catch (NullReferenceException)
42
- {
43
- UnityEngine.Debug.Log("REPORT: First Speaker on dialogue is null.");
44
- }
45
- catch (Exception e)
46
- {
47
- UnityEngine.Debug.Log("REPORT: Trouble getting first speaker: " + e.ToString());
48
- }
49
-
50
- SelectableObject actor = null;
51
-
52
- if (tryActor)
53
- tryActor.GetComponent<SelectableObject>();
54
-
55
- UnityEngine.Debug.Log("REPORT: Calling StartDialogue from Subsequent");
56
-
57
- ServiceLocator.GetService<IDialogueManager>().StartDialogue(actor, dialogues.ToArray());
58
- }
59
-
60
- /// <inheritdoc/>
61
- public virtual bool CheckIfSaveDialogue()
62
- {
63
- if (data.scriptableObject is Dialogue dia)
64
- if (ServiceLocator.GetService<IDialogueManager>()
65
- .GetManagerComponent<DialogueLoadIdentifier>()
66
- .CheckDialogue<Line>(dia))
67
- return true;
68
-
69
- foreach (var dialogue in data.scriptableObjects)
70
- if (ServiceLocator.GetService<IDialogueManager>()
71
- .GetManagerComponent<DialogueLoadIdentifier>()
72
- .CheckDialogue<Line>((Dialogue)dialogue))
73
- return true;
74
-
75
- return false;
76
- }
77
-
78
- /// <inheritdoc/>
79
- public virtual object Save()
80
- {
81
- ScriptableObjectsSubsequentData newData = (ScriptableObjectsSubsequentData)data.Clone();
82
-
83
- newData.SetType(GetType().Name);
84
-
85
- newData.SetScriptableObject(data.scriptableObject);
86
-
87
- foreach(var dialogue in dialogues)
88
- if (!newData.scriptableObjects.Contains(dialogue))
89
- newData.scriptableObjects.Add(dialogue);
90
-
91
- return newData;
92
- }
93
-
94
- /// <inheritdoc/>
95
- public virtual void Load(object ob)
96
- {
97
- data = (ScriptableObjectsSubsequentData)Convert.ChangeType(ob, typeof(ScriptableObjectsSubsequentData));
98
-
99
- foreach (var dialogue in data.scriptableObjects)
100
- dialogues.Add((Dialogue)dialogue);
101
-
102
- if (dialogues.Count == 0 && data.scriptableObject != null)
103
- dialogues.Add((Dialogue)data.scriptableObject);
104
- }
105
-
106
-
107
- /// <summary>
108
- ///
109
- /// </summary>
110
- [ContextMenu("Call")]
111
- public void DebugCall() => Call();
112
- }
1
+ //Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
2
+ using DREditor.Dialogues;
3
+ using DREditor.Dialogues.Loading;
4
+ using DREditor.EventObjects;
5
+ using DREditor.Services;
6
+ using System;
7
+ using System.Collections.Generic;
8
+ using UnityEngine;
9
+
10
+ namespace DREditor.Triggers
11
+ {
12
+ /// <summary>
13
+ ///
14
+ /// </summary>
15
+ [ClassHeader(nameof(ISubsequentBehaviour) + ", " + nameof(IDialogueHolder) +
16
+ "\n\n")]
17
+ public class DialogueSubsequent : MonoBehaviour, ISubsequentBehaviour, IDialogueHolder
18
+ {
19
+ /// <summary>
20
+ ///
21
+ /// </summary>
22
+ [Tooltip("")]
23
+ [SerializeField] protected List<Dialogue> dialogues = new();
24
+
25
+
26
+ /// <summary>
27
+ ///
28
+ /// </summary>
29
+ protected ScriptableObjectsSubsequentData data = new();
30
+
31
+
32
+ /// <inheritdoc/>
33
+ public virtual void Call()
34
+ {
35
+ GameObject tryActor = null;
36
+
37
+ try
38
+ {
39
+ tryActor = GameObject.Find(dialogues[0].Lines[0].Speaker.FirstName);
40
+ }
41
+ catch (NullReferenceException)
42
+ {
43
+ UnityEngine.Debug.Log("REPORT: First Speaker on dialogue is null.");
44
+ }
45
+ catch (Exception e)
46
+ {
47
+ UnityEngine.Debug.Log("REPORT: Trouble getting first speaker: " + e.ToString());
48
+ }
49
+
50
+ SelectableObject actor = null;
51
+
52
+ if (tryActor)
53
+ tryActor.GetComponent<SelectableObject>();
54
+
55
+ UnityEngine.Debug.Log("REPORT: Calling StartDialogue from Subsequent");
56
+
57
+ ServiceLocator.GetService<IDialogueManager>().StartDialogue(actor, dialogues.ToArray());
58
+ }
59
+
60
+ /// <inheritdoc/>
61
+ public virtual bool CheckIfSaveDialogue()
62
+ {
63
+ if (data.scriptableObject is Dialogue dia)
64
+ if (ServiceLocator.GetService<IDialogueManager>()
65
+ .GetManagerComponent<DialogueLoadIdentifier>()
66
+ .CheckDialogue<Line>(dia))
67
+ return true;
68
+
69
+ foreach (var dialogue in data.scriptableObjects)
70
+ if (ServiceLocator.GetService<IDialogueManager>()
71
+ .GetManagerComponent<DialogueLoadIdentifier>()
72
+ .CheckDialogue<Line>((Dialogue)dialogue))
73
+ return true;
74
+
75
+ return false;
76
+ }
77
+
78
+ /// <inheritdoc/>
79
+ public virtual object Save()
80
+ {
81
+ ScriptableObjectsSubsequentData newData = (ScriptableObjectsSubsequentData)data.Clone();
82
+
83
+ newData.SetType(GetType().Name);
84
+
85
+ newData.SetScriptableObject(data.scriptableObject);
86
+
87
+ foreach(var dialogue in dialogues)
88
+ if (!newData.scriptableObjects.Contains(dialogue))
89
+ newData.scriptableObjects.Add(dialogue);
90
+
91
+ return newData;
92
+ }
93
+
94
+ /// <inheritdoc/>
95
+ public virtual void Load(object ob)
96
+ {
97
+ data = (ScriptableObjectsSubsequentData)Convert.ChangeType(ob, typeof(ScriptableObjectsSubsequentData));
98
+
99
+ foreach (var dialogue in data.scriptableObjects)
100
+ dialogues.Add((Dialogue)dialogue);
101
+
102
+ if (dialogues.Count == 0 && data.scriptableObject != null)
103
+ dialogues.Add((Dialogue)data.scriptableObject);
104
+ }
105
+
106
+
107
+ /// <summary>
108
+ ///
109
+ /// </summary>
110
+ [ContextMenu("Call")]
111
+ public void DebugCall() => Call();
112
+ }
113
113
  }
@@ -1,11 +1,11 @@
1
- fileFormatVersion: 2
2
- guid: 47efa055387f79a428dbbfeb1c6c6529
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: 47efa055387f79a428dbbfeb1c6c6529
3
+ MonoImporter:
4
+ externalObjects: {}
5
+ serializedVersion: 2
6
+ defaultReferences: []
7
+ executionOrder: 0
8
+ icon: {instanceID: 0}
9
+ userData:
10
+ assetBundleName:
11
+ assetBundleVariant:
package/EventTrigger.cs CHANGED
@@ -1,49 +1,49 @@
1
- //Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
2
- using System;
3
- using System.Collections.Generic;
4
- using UnityEngine;
5
-
6
- namespace DREditor.Triggers
7
- {
8
- /// <summary>
9
- ///
10
- /// </summary>
11
- [Serializable]
12
- public class EventTrigger
13
- {
14
- /// <summary>
15
- ///
16
- /// </summary>
17
- [Header("")]
18
- [Divider]
19
- [Tooltip("")]
20
- [SerializeReference]
21
- public GenericActuator GenericActuator;
22
-
23
- /// <summary>
24
- ///
25
- /// </summary>
26
- [Tooltip("")]
27
- [SerializeReference]
28
- public List<GenericSubsequent> GenericSubsequents = new();
29
-
30
- /// <summary>
31
- ///
32
- /// </summary>
33
- [Tooltip("")]
34
- public Actuator Actuator;
35
-
36
- /// <summary>
37
- ///
38
- /// </summary>
39
- [Tooltip("")]
40
- public List<Subsequent> Subsequents = new();
41
-
42
-
43
- /// <summary>
44
- ///
45
- /// </summary>
46
- /// <param name="GenericActuator"></param>
47
- public virtual void SetActuator(GenericActuator GenericActuator) => this.GenericActuator = GenericActuator;
48
- }
1
+ //Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
2
+ using System;
3
+ using System.Collections.Generic;
4
+ using UnityEngine;
5
+
6
+ namespace DREditor.Triggers
7
+ {
8
+ /// <summary>
9
+ ///
10
+ /// </summary>
11
+ [Serializable]
12
+ public class EventTrigger
13
+ {
14
+ /// <summary>
15
+ ///
16
+ /// </summary>
17
+ [Header("")]
18
+ [Divider]
19
+ [Tooltip("")]
20
+ [SerializeReference]
21
+ public GenericActuator GenericActuator;
22
+
23
+ /// <summary>
24
+ ///
25
+ /// </summary>
26
+ [Tooltip("")]
27
+ [SerializeReference]
28
+ public List<GenericSubsequent> GenericSubsequents = new();
29
+
30
+ /// <summary>
31
+ ///
32
+ /// </summary>
33
+ [Tooltip("")]
34
+ public Actuator Actuator;
35
+
36
+ /// <summary>
37
+ ///
38
+ /// </summary>
39
+ [Tooltip("")]
40
+ public List<Subsequent> Subsequents = new();
41
+
42
+
43
+ /// <summary>
44
+ ///
45
+ /// </summary>
46
+ /// <param name="GenericActuator"></param>
47
+ public virtual void SetActuator(GenericActuator GenericActuator) => this.GenericActuator = GenericActuator;
48
+ }
49
49
  }