net.dreditor.triggers 0.1.6 → 0.1.8

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
@@ -1,58 +1,58 @@
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 ScriptableObjectsSubsequentData : GenericSubsequent, ISubsequentConvert
13
- {
14
- /// <summary>
15
- ///
16
- /// </summary>
17
- [Tooltip("")]
18
- public ScriptableObject scriptableObject;
19
-
20
- /// <summary>
21
- ///
22
- /// </summary>
23
- [Tooltip("")]
24
- public List<ScriptableObject> scriptableObjects = new();
25
-
26
-
27
- /// <summary>
28
- ///
29
- /// </summary>
30
- /// <param name="scriptableObject"></param>
31
- /// <remarks></remarks>
32
- public virtual void SetScriptableObject(ScriptableObject scriptableObject) => this.scriptableObject = scriptableObject;
33
-
34
-
35
- /// <inheritdoc/>
36
- public virtual bool CanConvert(GenericSubsequent genericSubsequent)
37
- => ((Subsequent)genericSubsequent).ScriptableObject != null || ((Subsequent)genericSubsequent).ScriptableObjects.Count > 0;
38
-
39
- /// <inheritdoc/>
40
- public virtual void Convert(List<GenericSubsequent> genericSubsequents, GenericSubsequent genericSubsequent)
41
- {
42
- var subsequent = (Subsequent)genericSubsequent;
43
-
44
- var newData = new ScriptableObjectsSubsequentData(subsequent.Type) {
45
- scriptableObjects = subsequent.ScriptableObjects, scriptableObject = subsequent.ScriptableObject };
46
-
47
- genericSubsequents.Add(newData);
48
- }
49
-
50
- /// <inheritdoc/>
51
- public override GenericSubsequent MergeInstance(GenericSubsequent instance) => this;
52
-
53
-
54
- public ScriptableObjectsSubsequentData() { }
55
-
56
- public ScriptableObjectsSubsequentData(string Type) : base(Type) { }
57
- }
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 ScriptableObjectsSubsequentData : GenericSubsequent, ISubsequentConvert
13
+ {
14
+ /// <summary>
15
+ ///
16
+ /// </summary>
17
+ [Tooltip("")]
18
+ public ScriptableObject scriptableObject;
19
+
20
+ /// <summary>
21
+ ///
22
+ /// </summary>
23
+ [Tooltip("")]
24
+ public List<ScriptableObject> scriptableObjects = new();
25
+
26
+
27
+ /// <summary>
28
+ ///
29
+ /// </summary>
30
+ /// <param name="scriptableObject"></param>
31
+ /// <remarks></remarks>
32
+ public virtual void SetScriptableObject(ScriptableObject scriptableObject) => this.scriptableObject = scriptableObject;
33
+
34
+
35
+ /// <inheritdoc/>
36
+ public virtual bool CanConvert(GenericSubsequent genericSubsequent)
37
+ => ((Subsequent)genericSubsequent).ScriptableObject != null || ((Subsequent)genericSubsequent).ScriptableObjects.Count > 0;
38
+
39
+ /// <inheritdoc/>
40
+ public virtual void Convert(List<GenericSubsequent> genericSubsequents, GenericSubsequent genericSubsequent)
41
+ {
42
+ var subsequent = (Subsequent)genericSubsequent;
43
+
44
+ var newData = new ScriptableObjectsSubsequentData(subsequent.Type) {
45
+ scriptableObjects = subsequent.ScriptableObjects, scriptableObject = subsequent.ScriptableObject };
46
+
47
+ genericSubsequents.Add(newData);
48
+ }
49
+
50
+ /// <inheritdoc/>
51
+ public override GenericSubsequent MergeInstance(GenericSubsequent instance) => this;
52
+
53
+
54
+ public ScriptableObjectsSubsequentData() { }
55
+
56
+ public ScriptableObjectsSubsequentData(string Type) : base(Type) { }
57
+ }
58
58
  }
@@ -1,11 +1,11 @@
1
- fileFormatVersion: 2
2
- guid: 763f0b1950f092f4f9c5f8ed34ac3d04
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: 763f0b1950f092f4f9c5f8ed34ac3d04
3
+ MonoImporter:
4
+ externalObjects: {}
5
+ serializedVersion: 2
6
+ defaultReferences: []
7
+ executionOrder: 0
8
+ icon: {instanceID: 0}
9
+ userData:
10
+ assetBundleName:
11
+ assetBundleVariant:
@@ -1,29 +1,29 @@
1
- //Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
2
- using System;
3
- using UnityEngine;
4
-
5
- namespace DREditor.Triggers
6
- {
7
- /// <summary>
8
- ///
9
- /// </summary>
10
- [Serializable]
11
- public class SimpleActuatorData : GenericActuator, IActuatorConvert
12
- {
13
- /// <inheritdoc/>
14
- public virtual bool CanConvert(GenericActuator oldActuator) => oldActuator.Type == nameof(OnLoadActuator);
15
-
16
- /// <inheritdoc/>
17
- public virtual void Convert(ref GenericActuator genericActuator, GenericActuator oldActuator)
18
- {
19
- var newData = new SimpleActuatorData(oldActuator.Type, oldActuator.Triggered, oldActuator.position);
20
-
21
- genericActuator = newData;
22
- }
23
-
24
-
25
- public SimpleActuatorData() { }
26
-
27
- public SimpleActuatorData(string Type, bool Triggered, Vector3 position) : base(Type, Triggered, position) { }
28
- }
1
+ //Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
2
+ using System;
3
+ using UnityEngine;
4
+
5
+ namespace DREditor.Triggers
6
+ {
7
+ /// <summary>
8
+ ///
9
+ /// </summary>
10
+ [Serializable]
11
+ public class SimpleActuatorData : GenericActuator, IActuatorConvert
12
+ {
13
+ /// <inheritdoc/>
14
+ public virtual bool CanConvert(GenericActuator oldActuator) => oldActuator.Type == nameof(OnLoadActuator);
15
+
16
+ /// <inheritdoc/>
17
+ public virtual void Convert(ref GenericActuator genericActuator, GenericActuator oldActuator)
18
+ {
19
+ var newData = new SimpleActuatorData(oldActuator.Type, oldActuator.Triggered, oldActuator.position);
20
+
21
+ genericActuator = newData;
22
+ }
23
+
24
+
25
+ public SimpleActuatorData() { }
26
+
27
+ public SimpleActuatorData(string Type, bool Triggered, Vector3 position) : base(Type, Triggered, position) { }
28
+ }
29
29
  }
@@ -1,11 +1,11 @@
1
- fileFormatVersion: 2
2
- guid: a354651efa5d6a84383c858aaf01b409
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: a354651efa5d6a84383c858aaf01b409
3
+ MonoImporter:
4
+ externalObjects: {}
5
+ serializedVersion: 2
6
+ defaultReferences: []
7
+ executionOrder: 0
8
+ icon: {instanceID: 0}
9
+ userData:
10
+ assetBundleName:
11
+ assetBundleVariant:
package/Subsequent.cs CHANGED
@@ -1,44 +1,44 @@
1
- //Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
2
- using DREditor.LocalDialogues;
3
- using System;
4
- using System.Collections.Generic;
5
- using UnityEngine;
6
- using UnityEngine.Serialization;
7
-
8
- namespace DREditor.Triggers
9
- {
10
- /// <summary>
11
- ///
12
- /// </summary>
13
- [Serializable]
14
- public class Subsequent : GenericSubsequent, ISubsequentConvert
15
- {
16
- public ScriptableObject ScriptableObject;
17
-
18
- [FormerlySerializedAs("ScriptableObjectList")]
19
- public List<ScriptableObject> ScriptableObjects = new();
20
-
21
- public bool Locked = false;
22
-
23
- public string String;
24
-
25
- public Vector3 position;
26
-
27
- public Quaternion rotation;
28
-
29
- public LocalDialogue localDialogue;
30
-
31
-
32
- /// <inheritdoc/>
33
- public virtual bool CanConvert(GenericSubsequent genericSubsequent) => false;
34
-
35
- /// <inheritdoc/>
36
- public virtual void Convert(List<GenericSubsequent> genericSubsequents, GenericSubsequent genericSubsequent) { }
37
-
38
- /// <inheritdoc/>
39
- public override GenericSubsequent MergeInstance(GenericSubsequent instance) => this;
40
-
41
- public Subsequent() { }
42
- public Subsequent(string Type) : base(Type) { }
43
- }
1
+ //Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
2
+ using DREditor.LocalDialogues;
3
+ using System;
4
+ using System.Collections.Generic;
5
+ using UnityEngine;
6
+ using UnityEngine.Serialization;
7
+
8
+ namespace DREditor.Triggers
9
+ {
10
+ /// <summary>
11
+ ///
12
+ /// </summary>
13
+ [Serializable]
14
+ public class Subsequent : GenericSubsequent, ISubsequentConvert
15
+ {
16
+ public ScriptableObject ScriptableObject;
17
+
18
+ [FormerlySerializedAs("ScriptableObjectList")]
19
+ public List<ScriptableObject> ScriptableObjects = new();
20
+
21
+ public bool Locked = false;
22
+
23
+ public string String;
24
+
25
+ public Vector3 position;
26
+
27
+ public Quaternion rotation;
28
+
29
+ public LocalDialogue localDialogue;
30
+
31
+
32
+ /// <inheritdoc/>
33
+ public virtual bool CanConvert(GenericSubsequent genericSubsequent) => false;
34
+
35
+ /// <inheritdoc/>
36
+ public virtual void Convert(List<GenericSubsequent> genericSubsequents, GenericSubsequent genericSubsequent) { }
37
+
38
+ /// <inheritdoc/>
39
+ public override GenericSubsequent MergeInstance(GenericSubsequent instance) => this;
40
+
41
+ public Subsequent() { }
42
+ public Subsequent(string Type) : base(Type) { }
43
+ }
44
44
  }
@@ -1,11 +1,11 @@
1
- fileFormatVersion: 2
2
- guid: a088fbf01b9b15d4182a79e0c30ccc5b
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: a088fbf01b9b15d4182a79e0c30ccc5b
3
+ MonoImporter:
4
+ externalObjects: {}
5
+ serializedVersion: 2
6
+ defaultReferences: []
7
+ executionOrder: 0
8
+ icon: {instanceID: 0}
9
+ userData:
10
+ assetBundleName:
11
+ assetBundleVariant:
@@ -1,40 +1,40 @@
1
- //Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
2
- using DREditor.Services;
3
- using UnityEngine.Events;
4
- using UnityEngine;
5
- using DREditor.EventObjects;
6
-
7
- namespace DREditor.Triggers
8
- {
9
- /// <summary>
10
- ///
11
- /// </summary>
12
- /// <remarks>
13
- ///
14
- /// </remarks>
15
- [ClassHeader(nameof(ServiceHolder<TransitionFinishedSubscriber>) + " for type: " + nameof(TransitionFinishedSubscriber) +
16
- "\n\n")]
17
- public class TransitionFinishedSubscriber : ServiceHolder<TransitionFinishedSubscriber>
18
- {
19
- /// <summary>
20
- ///
21
- /// </summary>
22
- [Tooltip("")]
23
- [SerializeField] protected SceneEventListener onFinishedRoomTransitionsListener = null;
24
-
25
-
26
- /// <summary>
27
- ///
28
- /// </summary>
29
- /// <param name="action"></param>
30
- public virtual void SubscribeToRoomTransitionsFinished(UnityAction action)
31
- => onFinishedRoomTransitionsListener.Response.AddListener(action);
32
-
33
- /// <summary>
34
- ///
35
- /// </summary>
36
- /// <param name="action"></param>
37
- public virtual void UnsubscribeToRoomTransitionsFinished(UnityAction action)
38
- => onFinishedRoomTransitionsListener.Response.RemoveListener(action);
39
- }
1
+ //Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
2
+ using DREditor.Services;
3
+ using UnityEngine.Events;
4
+ using UnityEngine;
5
+ using DREditor.EventObjects;
6
+
7
+ namespace DREditor.Triggers
8
+ {
9
+ /// <summary>
10
+ ///
11
+ /// </summary>
12
+ /// <remarks>
13
+ ///
14
+ /// </remarks>
15
+ [ClassHeader(nameof(ServiceHolder<TransitionFinishedSubscriber>) + " for type: " + nameof(TransitionFinishedSubscriber) +
16
+ "\n\n")]
17
+ public class TransitionFinishedSubscriber : ServiceHolder<TransitionFinishedSubscriber>
18
+ {
19
+ /// <summary>
20
+ ///
21
+ /// </summary>
22
+ [Tooltip("")]
23
+ [SerializeField] protected SceneEventListener onFinishedRoomTransitionsListener = null;
24
+
25
+
26
+ /// <summary>
27
+ ///
28
+ /// </summary>
29
+ /// <param name="action"></param>
30
+ public virtual void SubscribeToRoomTransitionsFinished(UnityAction action)
31
+ => onFinishedRoomTransitionsListener.Response.AddListener(action);
32
+
33
+ /// <summary>
34
+ ///
35
+ /// </summary>
36
+ /// <param name="action"></param>
37
+ public virtual void UnsubscribeToRoomTransitionsFinished(UnityAction action)
38
+ => onFinishedRoomTransitionsListener.Response.RemoveListener(action);
39
+ }
40
40
  }
@@ -1,11 +1,11 @@
1
- fileFormatVersion: 2
2
- guid: 3144c25b57942d64cb66596ea40479b6
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: 3144c25b57942d64cb66596ea40479b6
3
+ MonoImporter:
4
+ externalObjects: {}
5
+ serializedVersion: 2
6
+ defaultReferences: []
7
+ executionOrder: 0
8
+ icon: {instanceID: 0}
9
+ userData:
10
+ assetBundleName:
11
+ assetBundleVariant:
package/package.json CHANGED
@@ -1,36 +1,41 @@
1
- {
2
- "name": "net.dreditor.triggers",
3
- "version": "0.1.6",
4
- "displayName": "DREditor Triggers",
5
- "description": "The beta for DREditor. A tool to create death game style projects without having to code.",
6
- "unity": "6000.4",
7
- "dependencies": {
8
- "net.dreditor.core": "0.1.6",
9
- "net.dreditor.localdialogues": "0.1.6",
10
- "net.dreditor.progressing.handling": "0.1.6"
11
- },
12
- "publishConfig": {
13
- "access": "public"
14
- },
15
- "author": {
16
- "name": "Benjamin \"Sweden\" Jillson",
17
- "email": "dreditortool@gmail.com",
18
- "url": "https://dreditor.net"
19
- },
20
- "keywords": [
21
- "editor",
22
- "tool",
23
- "dreditor"
24
- ],
25
- "samples": [
26
- {
27
- "displayName": "Samples",
28
- "description": "",
29
- "path": "Samples~"
30
- }
31
- ],
32
- "documentationUrl": "https://dreditor.net",
33
- "license": "Apache-2.0",
34
- "licensesUrl": "https://dreditor.net/docs/LICENSE.html",
35
- "changelogUrl": "https://dreditor.net/docs/CHANGELOG.html"
36
- }
1
+ {
2
+ "name": "net.dreditor.triggers",
3
+ "version": "0.1.8",
4
+ "displayName": "DREditor Triggers",
5
+ "description": "The beta for DREditor. A tool to create death game style projects without having to code.",
6
+ "unity": "6000.4",
7
+ "dependencies": {
8
+ "net.dreditor.core": "0.1.8",
9
+ "net.dreditor.localdialogues": "0.1.8",
10
+ "net.dreditor.progressing.handling": "0.1.8"
11
+ },
12
+ "publishConfig": {
13
+ "access": "public"
14
+ },
15
+ "author": {
16
+ "name": "Benjamin \"Sweden\" Jillson",
17
+ "email": "dreditortool@gmail.com",
18
+ "url": "https://dreditor.net"
19
+ },
20
+ "keywords": [
21
+ "editor",
22
+ "tool",
23
+ "dreditor"
24
+ ],
25
+ "samples": [
26
+ {
27
+ "displayName": "Samples",
28
+ "description": "",
29
+ "path": "Samples~"
30
+ }
31
+ ],
32
+ "documentationUrl": "https://dreditor.net",
33
+ "license": "Apache-2.0",
34
+ "licensesUrl": "https://dreditor.net/docs/LICENSE.html",
35
+ "changelogUrl": "https://dreditor.net/docs/CHANGELOG.html",
36
+ "repository": {
37
+ "url": "https://github.com/CertifiedSharp/DREditor",
38
+ "type": "git",
39
+ "revision": "416b18f937fb917bf3f595362a1082ed97457744"
40
+ }
41
+ }
package/package.json.meta CHANGED
@@ -1,7 +1,7 @@
1
- fileFormatVersion: 2
2
- guid: affcdff7be4e6504bb76b6bcc988887d
3
- TextScriptImporter:
4
- externalObjects: {}
5
- userData:
6
- assetBundleName:
7
- assetBundleVariant:
1
+ fileFormatVersion: 2
2
+ guid: affcdff7be4e6504bb76b6bcc988887d
3
+ TextScriptImporter:
4
+ externalObjects: {}
5
+ userData:
6
+ assetBundleName:
7
+ assetBundleVariant:
package/Samples.meta DELETED
@@ -1,8 +0,0 @@
1
- fileFormatVersion: 2
2
- guid: 530d7c1b3b06f1c46bc4c29c92c145d1
3
- folderAsset: yes
4
- DefaultImporter:
5
- externalObjects: {}
6
- userData:
7
- assetBundleName:
8
- assetBundleVariant: