net.dreditor.endevents 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 (48) hide show
  1. package/.attestation.p7m +0 -0
  2. package/CustomCallEndEventHandler.cs +57 -57
  3. package/CustomCallEndEventHandler.cs.meta +11 -11
  4. package/DREditor.EndEvents.asmdef +19 -19
  5. package/DREditor.EndEvents.asmdef.meta +7 -7
  6. package/DirectToEndEventHandler.cs +131 -131
  7. package/DirectToEndEventHandler.cs.meta +11 -11
  8. package/DirectToTransitionalEndEventHandler.cs +30 -30
  9. package/DirectToTransitionalEndEventHandler.cs.meta +11 -11
  10. package/MainMenuTransitionEndEventHandler.cs +48 -48
  11. package/MainMenuTransitionEndEventHandler.cs.meta +11 -11
  12. package/PauseOptionEndEventHandler.cs +46 -46
  13. package/PauseOptionEndEventHandler.cs.meta +11 -11
  14. package/PhaseChangeEndEventHandler.cs +55 -55
  15. package/PhaseChangeEndEventHandler.cs.meta +11 -11
  16. package/{Samples → Samples~}/Custom_Call_End_Event_Handler.prefab +47 -47
  17. package/{Samples → Samples~}/Custom_Call_End_Event_Handler.prefab.meta +7 -7
  18. package/{Samples → Samples~}/Direct_To_Transitional_End_Event_Handler.prefab +139 -139
  19. package/{Samples → Samples~}/Direct_To_Transitional_End_Event_Handler.prefab.meta +7 -7
  20. package/{Samples → Samples~}/Main_Menu_Transition_End_Event_Handler.prefab +63 -63
  21. package/{Samples → Samples~}/Main_Menu_Transition_End_Event_Handler.prefab.meta +7 -7
  22. package/{Samples → Samples~}/Pause_Option_End_Event_Handler.prefab +48 -48
  23. package/{Samples → Samples~}/Pause_Option_End_Event_Handler.prefab.meta +7 -7
  24. package/{Samples → Samples~}/PhaseChangeEndEventHandler.prefab +48 -48
  25. package/{Samples → Samples~}/PhaseChangeEndEventHandler.prefab.meta +7 -7
  26. package/{Samples → Samples~}/Scene_Transition_End_Event_Handler.prefab +54 -54
  27. package/{Samples → Samples~}/Scene_Transition_End_Event_Handler.prefab.meta +7 -7
  28. package/{Samples → Samples~}/SkipTrialSequences.asset +21 -21
  29. package/{Samples → Samples~}/SkipTrialSequences.asset.meta +8 -8
  30. package/{Samples → Samples~}/Skip_Sequence_End_Event_Handler.prefab +47 -47
  31. package/{Samples → Samples~}/Skip_Sequence_End_Event_Handler.prefab.meta +7 -7
  32. package/{Samples → Samples~}/Trigger_Flag_End_Event_Handler.prefab +46 -46
  33. package/{Samples → Samples~}/Trigger_Flag_End_Event_Handler.prefab.meta +7 -7
  34. package/{Samples → Samples~}/UpdateDirectTo.asset +15 -15
  35. package/{Samples → Samples~}/UpdateDirectTo.asset.meta +8 -8
  36. package/{Samples → Samples~}/Variable_End_Event_Handler.prefab +49 -49
  37. package/{Samples → Samples~}/Variable_End_Event_Handler.prefab.meta +7 -7
  38. package/SceneTransitionEndEventHandler.cs +169 -169
  39. package/SceneTransitionEndEventHandler.cs.meta +11 -11
  40. package/SkipSequenceEndEventHandler.cs +35 -35
  41. package/SkipSequenceEndEventHandler.cs.meta +11 -11
  42. package/TriggerFlagEndEventHandler.cs +41 -41
  43. package/TriggerFlagEndEventHandler.cs.meta +11 -11
  44. package/VariableEndEventHandler.cs +111 -111
  45. package/VariableEndEventHandler.cs.meta +11 -11
  46. package/package.json +43 -38
  47. package/package.json.meta +7 -7
  48. package/Samples.meta +0 -8
@@ -1,49 +1,49 @@
1
- //Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
2
- using DREditor.Dialogues;
3
- using DREditor.Dialogues.Ending;
4
- using DREditor.EventObjects;
5
- using DREditor.Services;
6
- using System;
7
- using UnityEngine;
8
-
9
- namespace DREditor.EndEvents
10
- {
11
- /// <summary>
12
- ///
13
- /// </summary>
14
- [ClassHeader(nameof(DialogueComponent) + ", " + nameof(IDialogueEndEvent) +
15
- "\n\n")]
16
- public class MainMenuTransitionEndEventHandler : DialogueComponent, IDialogueEndEvent
17
- {
18
- /// <summary>
19
- ///
20
- /// </summary>
21
- [Tooltip("")]
22
- [SerializeField] protected SceneEvent cleanUpDialogueReader = null;
23
-
24
- /// <summary>
25
- ///
26
- /// </summary>
27
- [Tooltip("")]
28
- [SerializeField] protected ReturnToMenuHandler ReturnToMenuHandler = null;
29
-
30
-
31
- /// <inheritdoc/>
32
- public virtual bool EvaluateEndEvent<T>(DialogueBase<T> dialogue, Action<DialogueCore[]> interruptDialogue)
33
- where T : Line
34
- {
35
- if (dialogue is Dialogue currentDialogue &&
36
- currentDialogue.SceneTransition.Enabled &&
37
- currentDialogue.SceneTransition.ToMenu)
38
- {
39
- cleanUpDialogueReader.Raise();
40
-
41
- ReturnToMenuHandler.ReturnToMenu(currentDialogue.SceneTransition.Scene);
42
-
43
- return true;
44
- }
45
-
46
- return false;
47
- }
48
- }
1
+ //Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
2
+ using DREditor.Dialogues;
3
+ using DREditor.Dialogues.Ending;
4
+ using DREditor.EventObjects;
5
+ using DREditor.Services;
6
+ using System;
7
+ using UnityEngine;
8
+
9
+ namespace DREditor.EndEvents
10
+ {
11
+ /// <summary>
12
+ ///
13
+ /// </summary>
14
+ [ClassHeader(nameof(DialogueComponent) + ", " + nameof(IDialogueEndEvent) +
15
+ "\n\n")]
16
+ public class MainMenuTransitionEndEventHandler : DialogueComponent, IDialogueEndEvent
17
+ {
18
+ /// <summary>
19
+ ///
20
+ /// </summary>
21
+ [Tooltip("")]
22
+ [SerializeField] protected SceneEvent cleanUpDialogueReader = null;
23
+
24
+ /// <summary>
25
+ ///
26
+ /// </summary>
27
+ [Tooltip("")]
28
+ [SerializeField] protected ReturnToMenuHandler ReturnToMenuHandler = null;
29
+
30
+
31
+ /// <inheritdoc/>
32
+ public virtual bool EvaluateEndEvent<T>(DialogueBase<T> dialogue, Action<DialogueCore[]> interruptDialogue)
33
+ where T : Line
34
+ {
35
+ if (dialogue is Dialogue currentDialogue &&
36
+ currentDialogue.SceneTransition.Enabled &&
37
+ currentDialogue.SceneTransition.ToMenu)
38
+ {
39
+ cleanUpDialogueReader.Raise();
40
+
41
+ ReturnToMenuHandler.ReturnToMenu(currentDialogue.SceneTransition.Scene);
42
+
43
+ return true;
44
+ }
45
+
46
+ return false;
47
+ }
48
+ }
49
49
  }
@@ -1,11 +1,11 @@
1
- fileFormatVersion: 2
2
- guid: 7f7c94740c338d642a2908ed9184bdd4
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: 7f7c94740c338d642a2908ed9184bdd4
3
+ MonoImporter:
4
+ externalObjects: {}
5
+ serializedVersion: 2
6
+ defaultReferences: []
7
+ executionOrder: 0
8
+ icon: {instanceID: 0}
9
+ userData:
10
+ assetBundleName:
11
+ assetBundleVariant:
@@ -1,47 +1,47 @@
1
- //Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
2
- using DREditor.Dialogues;
3
- using DREditor.Dialogues.Ending;
4
- using DREditor.EventObjects;
5
- using DREditor.UI.Menus;
6
- using System;
7
- using UnityEngine;
8
-
9
- namespace DREditor.EndEvents
10
- {
11
- /// <summary>
12
- ///
13
- /// </summary>
14
- [ClassHeader(nameof(DialogueComponent) + ", " + nameof(IDialogueEndEvent) +
15
- "\n\n")]
16
- public class PauseOptionEndEventHandler : DialogueComponent, IDialogueEndEvent
17
- {
18
- /// <summary>
19
- ///
20
- /// </summary>
21
- [Tooltip("")]
22
- [SerializeField] protected BoolWithEvent pauseAccess = null;
23
-
24
- /// <summary>
25
- ///
26
- /// </summary>
27
- [Tooltip("")]
28
- [SerializeField] protected PauseOptionData pauseData = null;
29
-
30
-
31
- /// <inheritdoc/>
32
- public virtual bool EvaluateEndEvent<T>(DialogueBase<T> currentDialogue, Action<DialogueCore[]> interruptDialogue)
33
- where T : Line
34
- {
35
- if (currentDialogue is Dialogue dialogue && (dialogue.UnlockPause || dialogue.UnlockPauseOption))
36
- {
37
- if (dialogue.UnlockPause)
38
- pauseAccess.SetValue(true);
39
-
40
- if (dialogue.UnlockPauseOption)
41
- pauseData.pauseOptions[dialogue.PauseOptionNum] = true;
42
- }
43
-
44
- return false;
45
- }
46
- }
1
+ //Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
2
+ using DREditor.Dialogues;
3
+ using DREditor.Dialogues.Ending;
4
+ using DREditor.EventObjects;
5
+ using DREditor.UI.Menus;
6
+ using System;
7
+ using UnityEngine;
8
+
9
+ namespace DREditor.EndEvents
10
+ {
11
+ /// <summary>
12
+ ///
13
+ /// </summary>
14
+ [ClassHeader(nameof(DialogueComponent) + ", " + nameof(IDialogueEndEvent) +
15
+ "\n\n")]
16
+ public class PauseOptionEndEventHandler : DialogueComponent, IDialogueEndEvent
17
+ {
18
+ /// <summary>
19
+ ///
20
+ /// </summary>
21
+ [Tooltip("")]
22
+ [SerializeField] protected BoolWithEvent pauseAccess = null;
23
+
24
+ /// <summary>
25
+ ///
26
+ /// </summary>
27
+ [Tooltip("")]
28
+ [SerializeField] protected PauseOptionData pauseData = null;
29
+
30
+
31
+ /// <inheritdoc/>
32
+ public virtual bool EvaluateEndEvent<T>(DialogueBase<T> currentDialogue, Action<DialogueCore[]> interruptDialogue)
33
+ where T : Line
34
+ {
35
+ if (currentDialogue is Dialogue dialogue && (dialogue.UnlockPause || dialogue.UnlockPauseOption))
36
+ {
37
+ if (dialogue.UnlockPause)
38
+ pauseAccess.SetValue(true);
39
+
40
+ if (dialogue.UnlockPauseOption)
41
+ pauseData.pauseOptions[dialogue.PauseOptionNum] = true;
42
+ }
43
+
44
+ return false;
45
+ }
46
+ }
47
47
  }
@@ -1,11 +1,11 @@
1
- fileFormatVersion: 2
2
- guid: 243226bde668aa4428d6d5177cf40556
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: 243226bde668aa4428d6d5177cf40556
3
+ MonoImporter:
4
+ externalObjects: {}
5
+ serializedVersion: 2
6
+ defaultReferences: []
7
+ executionOrder: 0
8
+ icon: {instanceID: 0}
9
+ userData:
10
+ assetBundleName:
11
+ assetBundleVariant:
@@ -1,56 +1,56 @@
1
- //Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
2
- using DREditor.Dialogues;
3
- using DREditor.Dialogues.Ending;
4
- using DREditor.EventObjects;
5
- using System;
6
- using UnityEngine;
7
-
8
- namespace DREditor.EndEvents
9
- {
10
- /// <summary>
11
- ///
12
- /// </summary>
13
- [ClassHeader(nameof(DialogueComponent) + ", " + nameof(IDialogueEndEvent) + ", " + nameof(IPhaseChangeEvent<StartInvestigation>) +
14
- "\n\n")]
15
- public class PhaseChangeEndEventHandler : DialogueComponent, IDialogueEndEvent, IPhaseChangeEvent<StartInvestigation>
16
- {
17
- /// <summary>
18
- ///
19
- /// </summary>
20
- [Tooltip("")]
21
- [SerializeField] protected SceneEvent cleanUpDialogueReader = null;
22
-
23
-
24
- public event Action<StartInvestigation> PhaseChanged;
25
-
26
-
27
- /// <inheritdoc/>
28
- public virtual bool EvaluateEndEvent<T>(DialogueBase<T> currentDialogue, Action<DialogueCore[]> interruptDialogue)
29
- where T : Line
30
- => EvaluateEndPhaseChangeEvent(currentDialogue);
31
-
32
- /// <summary>
33
- ///
34
- /// </summary>
35
- /// <typeparam name="T"></typeparam>
36
- /// <param name="dialogue"></param>
37
- /// <returns></returns>
38
- protected virtual bool EvaluateEndPhaseChangeEvent<T>(DialogueBase<T> dialogue)
39
- where T : Line
40
- {
41
- if (dialogue is Dialogue currentDialogue && currentDialogue != null)
42
- {
43
- if (currentDialogue.StartInvestigation.Enabled)
44
- {
45
- cleanUpDialogueReader.Raise();
46
-
47
- PhaseChanged?.Invoke(currentDialogue.StartInvestigation);
48
- }
49
-
50
- return currentDialogue.StartInvestigation.Enabled;
51
- }
52
-
53
- return false;
54
- }
55
- }
1
+ //Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
2
+ using DREditor.Dialogues;
3
+ using DREditor.Dialogues.Ending;
4
+ using DREditor.EventObjects;
5
+ using System;
6
+ using UnityEngine;
7
+
8
+ namespace DREditor.EndEvents
9
+ {
10
+ /// <summary>
11
+ ///
12
+ /// </summary>
13
+ [ClassHeader(nameof(DialogueComponent) + ", " + nameof(IDialogueEndEvent) + ", " + nameof(IPhaseChangeEvent<StartInvestigation>) +
14
+ "\n\n")]
15
+ public class PhaseChangeEndEventHandler : DialogueComponent, IDialogueEndEvent, IPhaseChangeEvent<StartInvestigation>
16
+ {
17
+ /// <summary>
18
+ ///
19
+ /// </summary>
20
+ [Tooltip("")]
21
+ [SerializeField] protected SceneEvent cleanUpDialogueReader = null;
22
+
23
+
24
+ public event Action<StartInvestigation> PhaseChanged;
25
+
26
+
27
+ /// <inheritdoc/>
28
+ public virtual bool EvaluateEndEvent<T>(DialogueBase<T> currentDialogue, Action<DialogueCore[]> interruptDialogue)
29
+ where T : Line
30
+ => EvaluateEndPhaseChangeEvent(currentDialogue);
31
+
32
+ /// <summary>
33
+ ///
34
+ /// </summary>
35
+ /// <typeparam name="T"></typeparam>
36
+ /// <param name="dialogue"></param>
37
+ /// <returns></returns>
38
+ protected virtual bool EvaluateEndPhaseChangeEvent<T>(DialogueBase<T> dialogue)
39
+ where T : Line
40
+ {
41
+ if (dialogue is Dialogue currentDialogue && currentDialogue != null)
42
+ {
43
+ if (currentDialogue.StartInvestigation.Enabled)
44
+ {
45
+ cleanUpDialogueReader.Raise();
46
+
47
+ PhaseChanged?.Invoke(currentDialogue.StartInvestigation);
48
+ }
49
+
50
+ return currentDialogue.StartInvestigation.Enabled;
51
+ }
52
+
53
+ return false;
54
+ }
55
+ }
56
56
  }
@@ -1,11 +1,11 @@
1
- fileFormatVersion: 2
2
- guid: 1a9d10fe7b0f29a4bbe1dd6a8b1e7740
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: 1a9d10fe7b0f29a4bbe1dd6a8b1e7740
3
+ MonoImporter:
4
+ externalObjects: {}
5
+ serializedVersion: 2
6
+ defaultReferences: []
7
+ executionOrder: 0
8
+ icon: {instanceID: 0}
9
+ userData:
10
+ assetBundleName:
11
+ assetBundleVariant:
@@ -1,47 +1,47 @@
1
- %YAML 1.1
2
- %TAG !u! tag:unity3d.com,2011:
3
- --- !u!1 &5256772734665627556
4
- GameObject:
5
- m_ObjectHideFlags: 0
6
- m_CorrespondingSourceObject: {fileID: 0}
7
- m_PrefabInstance: {fileID: 0}
8
- m_PrefabAsset: {fileID: 0}
9
- serializedVersion: 6
10
- m_Component:
11
- - component: {fileID: 5256772734665627557}
12
- - component: {fileID: 5256772734665627558}
13
- m_Layer: 0
14
- m_Name: Custom_Call_End_Event_Handler
15
- m_TagString: Untagged
16
- m_Icon: {fileID: 0}
17
- m_NavMeshLayer: 0
18
- m_StaticEditorFlags: 0
19
- m_IsActive: 1
20
- --- !u!4 &5256772734665627557
21
- Transform:
22
- m_ObjectHideFlags: 0
23
- m_CorrespondingSourceObject: {fileID: 0}
24
- m_PrefabInstance: {fileID: 0}
25
- m_PrefabAsset: {fileID: 0}
26
- m_GameObject: {fileID: 5256772734665627556}
27
- m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
28
- m_LocalPosition: {x: 0, y: 0, z: 0}
29
- m_LocalScale: {x: 1, y: 1, z: 1}
30
- m_ConstrainProportionsScale: 0
31
- m_Children: []
32
- m_Father: {fileID: 0}
33
- m_RootOrder: 0
34
- m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
35
- --- !u!114 &5256772734665627558
36
- MonoBehaviour:
37
- m_ObjectHideFlags: 0
38
- m_CorrespondingSourceObject: {fileID: 0}
39
- m_PrefabInstance: {fileID: 0}
40
- m_PrefabAsset: {fileID: 0}
41
- m_GameObject: {fileID: 5256772734665627556}
42
- m_Enabled: 1
43
- m_EditorHideFlags: 0
44
- m_Script: {fileID: 11500000, guid: eed47917d358b524996353f5fcb8a383, type: 3}
45
- m_Name:
46
- m_EditorClassIdentifier:
47
- isLeaving: {fileID: 11400000, guid: 6476014b37bc7ed44aea40908531e07e, type: 2}
1
+ %YAML 1.1
2
+ %TAG !u! tag:unity3d.com,2011:
3
+ --- !u!1 &5256772734665627556
4
+ GameObject:
5
+ m_ObjectHideFlags: 0
6
+ m_CorrespondingSourceObject: {fileID: 0}
7
+ m_PrefabInstance: {fileID: 0}
8
+ m_PrefabAsset: {fileID: 0}
9
+ serializedVersion: 6
10
+ m_Component:
11
+ - component: {fileID: 5256772734665627557}
12
+ - component: {fileID: 5256772734665627558}
13
+ m_Layer: 0
14
+ m_Name: Custom_Call_End_Event_Handler
15
+ m_TagString: Untagged
16
+ m_Icon: {fileID: 0}
17
+ m_NavMeshLayer: 0
18
+ m_StaticEditorFlags: 0
19
+ m_IsActive: 1
20
+ --- !u!4 &5256772734665627557
21
+ Transform:
22
+ m_ObjectHideFlags: 0
23
+ m_CorrespondingSourceObject: {fileID: 0}
24
+ m_PrefabInstance: {fileID: 0}
25
+ m_PrefabAsset: {fileID: 0}
26
+ m_GameObject: {fileID: 5256772734665627556}
27
+ m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
28
+ m_LocalPosition: {x: 0, y: 0, z: 0}
29
+ m_LocalScale: {x: 1, y: 1, z: 1}
30
+ m_ConstrainProportionsScale: 0
31
+ m_Children: []
32
+ m_Father: {fileID: 0}
33
+ m_RootOrder: 0
34
+ m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
35
+ --- !u!114 &5256772734665627558
36
+ MonoBehaviour:
37
+ m_ObjectHideFlags: 0
38
+ m_CorrespondingSourceObject: {fileID: 0}
39
+ m_PrefabInstance: {fileID: 0}
40
+ m_PrefabAsset: {fileID: 0}
41
+ m_GameObject: {fileID: 5256772734665627556}
42
+ m_Enabled: 1
43
+ m_EditorHideFlags: 0
44
+ m_Script: {fileID: 11500000, guid: eed47917d358b524996353f5fcb8a383, type: 3}
45
+ m_Name:
46
+ m_EditorClassIdentifier:
47
+ isLeaving: {fileID: 11400000, guid: 6476014b37bc7ed44aea40908531e07e, type: 2}
@@ -1,7 +1,7 @@
1
- fileFormatVersion: 2
2
- guid: 643a2d966a347634997a131d352d1346
3
- PrefabImporter:
4
- externalObjects: {}
5
- userData:
6
- assetBundleName:
7
- assetBundleVariant:
1
+ fileFormatVersion: 2
2
+ guid: 643a2d966a347634997a131d352d1346
3
+ PrefabImporter:
4
+ externalObjects: {}
5
+ userData:
6
+ assetBundleName:
7
+ assetBundleVariant: