net.dreditor.flairs 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 (93) hide show
  1. package/.attestation.p7m +0 -0
  2. package/DREditor.Flairs.asmdef +18 -18
  3. package/DREditor.Flairs.asmdef.meta +7 -7
  4. package/DestroyFlairHandler.cs +89 -89
  5. package/DestroyFlairHandler.cs.meta +1 -1
  6. package/DestroyFlairOnDirectorComplete.cs +73 -73
  7. package/DestroyFlairOnDirectorComplete.cs.meta +11 -11
  8. package/DestroyFlairOnNextLine.cs +77 -77
  9. package/DestroyFlairOnNextLine.cs.meta +1 -1
  10. package/Editor/AllCharactersOption.cs +42 -42
  11. package/Editor/AllCharactersOption.cs.meta +1 -1
  12. package/Editor/AllFlairsOneCharacterOption.cs +46 -46
  13. package/Editor/AllFlairsOneCharacterOption.cs.meta +1 -1
  14. package/Editor/AllSpritesOption.cs +53 -53
  15. package/Editor/AllSpritesOption.cs.meta +1 -1
  16. package/Editor/DREditor.Flairs.Editor.asmdef +17 -17
  17. package/Editor/DREditor.Flairs.Editor.asmdef.meta +7 -7
  18. package/Editor/FlairEditorTools.cs +86 -86
  19. package/Editor/FlairEditorTools.cs.meta +1 -1
  20. package/Editor/GenerateFlairDebugDialogue.cs +61 -61
  21. package/Editor/GenerateFlairDebugDialogue.cs.meta +1 -1
  22. package/Editor/GenerateFlairDialogueOptionBase.cs +111 -111
  23. package/Editor/GenerateFlairDialogueOptionBase.cs.meta +1 -1
  24. package/Editor/IGenerateFlairDialogueSetting.cs +18 -18
  25. package/Editor/IGenerateFlairDialogueSetting.cs.meta +1 -1
  26. package/Editor.meta +8 -8
  27. package/EnableFlairCanvas.cs +77 -77
  28. package/EnableFlairCanvas.cs.meta +1 -1
  29. package/FadeFlairDestroyer.cs +58 -58
  30. package/FadeFlairDestroyer.cs.meta +1 -1
  31. package/Flair.cs +31 -31
  32. package/Flair.cs.meta +1 -1
  33. package/FlairDestroyer.cs +26 -26
  34. package/FlairDestroyer.cs.meta +1 -1
  35. package/FlairEvent.cs +45 -45
  36. package/FlairEvent.cs.meta +1 -1
  37. package/FlairEventHandler.cs +33 -33
  38. package/FlairEventHandler.cs.meta +1 -1
  39. package/FlairOffset.cs +47 -47
  40. package/FlairOffset.cs.meta +1 -1
  41. package/FlairSpawner.cs +28 -28
  42. package/FlairSpawner.cs.meta +1 -1
  43. package/FlairSpawnerBase.cs +16 -16
  44. package/FlairSpawnerBase.cs.meta +1 -1
  45. package/FlairStrategy.cs +48 -48
  46. package/FlairStrategy.cs.meta +1 -1
  47. package/FlairStrategyBase.cs +57 -57
  48. package/FlairStrategyBase.cs.meta +1 -1
  49. package/Flair_Question.controller +72 -72
  50. package/Flair_Question.controller.meta +8 -8
  51. package/Flair_QuestionAnim.anim +693 -693
  52. package/Flair_QuestionAnim.anim.meta +8 -8
  53. package/Flair_QuestionTimeline.playable +2198 -2198
  54. package/Flair_QuestionTimeline.playable.meta +8 -8
  55. package/IFlair.cs +16 -16
  56. package/IFlair.cs.meta +1 -1
  57. package/IFlairDestroyable.cs +15 -15
  58. package/IFlairDestroyable.cs.meta +1 -1
  59. package/IFlairEvent.cs +29 -29
  60. package/IFlairEvent.cs.meta +1 -1
  61. package/IFlairSetting.cs +16 -16
  62. package/IFlairSetting.cs.meta +1 -1
  63. package/IFlairSpawnStep.cs +17 -17
  64. package/IFlairSpawnStep.cs.meta +1 -1
  65. package/IFlairStep.cs +17 -17
  66. package/IFlairStep.cs.meta +1 -1
  67. package/LayerFlair.cs +38 -38
  68. package/LayerFlair.cs.meta +1 -1
  69. package/ProtagFlairStrategy.cs +68 -68
  70. package/ProtagFlairStrategy.cs.meta +1 -1
  71. package/{Samples → Samples~}/Flair.prefab +145 -145
  72. package/{Samples → Samples~}/Flair.prefab.meta +7 -7
  73. package/{Samples → Samples~}/Flair_Event_Handler.prefab +238 -238
  74. package/{Samples → Samples~}/Flair_Event_Handler.prefab.meta +7 -7
  75. package/{Samples → Samples~}/Flair_Question.asset +15 -15
  76. package/{Samples → Samples~}/Flair_Question.asset.meta +8 -8
  77. package/{Samples → Samples~}/Flair_Question.prefab +412 -412
  78. package/{Samples → Samples~}/Flair_Question.prefab.meta +7 -7
  79. package/{Samples → Samples~}/Flair_Strategy.prefab +64 -64
  80. package/{Samples → Samples~}/Flair_Strategy.prefab.meta +7 -7
  81. package/{Samples → Samples~}/Protag_Flair_Strategy.prefab +186 -186
  82. package/{Samples → Samples~}/Protag_Flair_Strategy.prefab.meta +7 -7
  83. package/SpawnFlairOnHead.cs +36 -36
  84. package/SpawnFlairOnHead.cs.meta +1 -1
  85. package/SpawnFlairOnParent.cs +24 -24
  86. package/SpawnFlairOnParent.cs.meta +1 -1
  87. package/SpawnFlairStepBase.cs +44 -44
  88. package/SpawnFlairStepBase.cs.meta +1 -1
  89. package/SpawnFlairToParent.cs +38 -38
  90. package/SpawnFlairToParent.cs.meta +1 -1
  91. package/package.json +41 -36
  92. package/package.json.meta +7 -7
  93. package/Samples.meta +0 -8
package/FlairDestroyer.cs CHANGED
@@ -1,27 +1,27 @@
1
- //Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Kill/Cure: Beautiful Vice
2
- using UnityEngine;
3
- using UnityEngine.Events;
4
-
5
- namespace DREditor.Flairs
6
- {
7
- /// <summary>
8
- ///
9
- /// </summary>
10
- public abstract class FlairDestroyer : MonoBehaviour, IFlairDestroyable
11
- {
12
- [Header("")]
13
- [SerializeField] protected UnityEvent<IFlairDestroyable> onFlairDestroyed = null;
14
-
15
-
16
- public virtual UnityEvent<IFlairDestroyable> OnFlairDestroyed => onFlairDestroyed;
17
-
18
-
19
- /// <summary>
20
- ///
21
- /// </summary>
22
- public virtual void DestroyFlair() => Destroy(gameObject);
23
-
24
-
25
- protected virtual void OnDestroy() => OnFlairDestroyed?.Invoke(this);
26
- }
1
+ //Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Kill/Cure: Beautiful Vice
2
+ using UnityEngine;
3
+ using UnityEngine.Events;
4
+
5
+ namespace DREditor.Flairs
6
+ {
7
+ /// <summary>
8
+ ///
9
+ /// </summary>
10
+ public abstract class FlairDestroyer : MonoBehaviour, IFlairDestroyable
11
+ {
12
+ [Header("")]
13
+ [SerializeField] protected UnityEvent<IFlairDestroyable> onFlairDestroyed = null;
14
+
15
+
16
+ public virtual UnityEvent<IFlairDestroyable> OnFlairDestroyed => onFlairDestroyed;
17
+
18
+
19
+ /// <summary>
20
+ ///
21
+ /// </summary>
22
+ public virtual void DestroyFlair() => Destroy(gameObject);
23
+
24
+
25
+ protected virtual void OnDestroy() => OnFlairDestroyed?.Invoke(this);
26
+ }
27
27
  }
@@ -1,2 +1,2 @@
1
- fileFormatVersion: 2
1
+ fileFormatVersion: 2
2
2
  guid: 68e3a9396bfcf4546a6f3d5b208340bd
package/FlairEvent.cs CHANGED
@@ -1,46 +1,46 @@
1
- //Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Kill/Cure: Beautiful Vice
2
- using DREditor.Dialogues.Events;
3
- using System;
4
- using System.Collections.Generic;
5
- using UnityEngine;
6
-
7
- namespace DREditor.Flairs
8
- {
9
- /// <summary>
10
- ///
11
- /// </summary>
12
- [Serializable]
13
- public class FlairEvent : IDialogueEvent, IFlairEvent
14
- {
15
- /// <summary>
16
- ///
17
- /// </summary>
18
- [PropertyButton(nameof(TriggerDialogueEvent))]
19
- [Tooltip("")]
20
- [SerializeField] protected Flair flair;
21
-
22
- /// <summary>
23
- ///
24
- /// </summary>
25
- [SerializeReference, SelectType]
26
- [Tooltip("")]
27
- [SerializeField] protected List<IFlairSetting> settings = new();
28
-
29
-
30
- /// <inheritdoc/>
31
- public virtual void TriggerDialogueEvent() => DialogueEventSystem.TriggerEvent("SpawnFlair", this);
32
-
33
- /// <inheritdoc/>
34
- public virtual IFlair GetFlair() => flair;
35
-
36
- /// <inheritdoc/>
37
- public virtual List<IFlairSetting> GetSettings() => settings;
38
-
39
- /// <inheritdoc/>
40
- public virtual void ApplySettings(GameObject spawnedFlair)
41
- {
42
- foreach (var setting in settings)
43
- setting?.ApplySetting(spawnedFlair);
44
- }
45
- }
1
+ //Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Kill/Cure: Beautiful Vice
2
+ using DREditor.Dialogues.Events;
3
+ using System;
4
+ using System.Collections.Generic;
5
+ using UnityEngine;
6
+
7
+ namespace DREditor.Flairs
8
+ {
9
+ /// <summary>
10
+ ///
11
+ /// </summary>
12
+ [Serializable]
13
+ public class FlairEvent : IDialogueEvent, IFlairEvent
14
+ {
15
+ /// <summary>
16
+ ///
17
+ /// </summary>
18
+ [PropertyButton(nameof(TriggerDialogueEvent))]
19
+ [Tooltip("")]
20
+ [SerializeField] protected Flair flair;
21
+
22
+ /// <summary>
23
+ ///
24
+ /// </summary>
25
+ [SerializeReference, SelectType]
26
+ [Tooltip("")]
27
+ [SerializeField] protected List<IFlairSetting> settings = new();
28
+
29
+
30
+ /// <inheritdoc/>
31
+ public virtual void TriggerDialogueEvent() => DialogueEventSystem.TriggerEvent("SpawnFlair", this);
32
+
33
+ /// <inheritdoc/>
34
+ public virtual IFlair GetFlair() => flair;
35
+
36
+ /// <inheritdoc/>
37
+ public virtual List<IFlairSetting> GetSettings() => settings;
38
+
39
+ /// <inheritdoc/>
40
+ public virtual void ApplySettings(GameObject spawnedFlair)
41
+ {
42
+ foreach (var setting in settings)
43
+ setting?.ApplySetting(spawnedFlair);
44
+ }
45
+ }
46
46
  }
@@ -1,2 +1,2 @@
1
- fileFormatVersion: 2
1
+ fileFormatVersion: 2
2
2
  guid: 2d8f3e59cff00b84c917271221b8e665
@@ -1,34 +1,34 @@
1
- //Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Kill/Cure: Beautiful Vice
2
- using DREditor.DialogueEventHandling;
3
- using UnityEngine;
4
-
5
- namespace DREditor.Flairs
6
- {
7
- /// <summary>
8
- ///
9
- /// </summary>
10
- [ClassHeader(nameof(DialogueEventHandler) +
11
- "\n\n")]
12
- public class FlairEventHandler : DialogueEventHandler
13
- {
14
- /// <summary>
15
- ///
16
- /// </summary>
17
- [Tooltip("")]
18
- [SerializeField] protected FlairSpawnerBase spawner;
19
-
20
-
21
- /// <inheritdoc/>
22
- protected override void OnDialogueEventTriggered(object o = null)
23
- {
24
- if (spawner != null && o is IFlairEvent eventInstance)
25
- spawner.Spawn(eventInstance);
26
- else
27
- UnityEngine.Debug.LogWarning($"ALERT: Either there was no spawner assigned or the event sent was not a {nameof(IFlairEvent)}!");
28
- }
29
-
30
-
31
- [ContextMenu("Set Default Event")]
32
- public void SetDefaultEvent() => SetDefaultEventString("SpawnFlair");
33
- }
1
+ //Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Kill/Cure: Beautiful Vice
2
+ using DREditor.DialogueEventHandling;
3
+ using UnityEngine;
4
+
5
+ namespace DREditor.Flairs
6
+ {
7
+ /// <summary>
8
+ ///
9
+ /// </summary>
10
+ [ClassHeader(nameof(DialogueEventHandler) +
11
+ "\n\n")]
12
+ public class FlairEventHandler : DialogueEventHandler
13
+ {
14
+ /// <summary>
15
+ ///
16
+ /// </summary>
17
+ [Tooltip("")]
18
+ [SerializeField] protected FlairSpawnerBase spawner;
19
+
20
+
21
+ /// <inheritdoc/>
22
+ protected override void OnDialogueEventTriggered(object o = null)
23
+ {
24
+ if (spawner != null && o is IFlairEvent eventInstance)
25
+ spawner.Spawn(eventInstance);
26
+ else
27
+ UnityEngine.Debug.LogWarning($"ALERT: Either there was no spawner assigned or the event sent was not a {nameof(IFlairEvent)}!");
28
+ }
29
+
30
+
31
+ [ContextMenu("Set Default Event")]
32
+ public void SetDefaultEvent() => SetDefaultEventString("SpawnFlair");
33
+ }
34
34
  }
@@ -1,2 +1,2 @@
1
- fileFormatVersion: 2
1
+ fileFormatVersion: 2
2
2
  guid: bc4febfb057f7bb438f4df8088ee3f6e
package/FlairOffset.cs CHANGED
@@ -1,48 +1,48 @@
1
- //Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Kill/Cure: Beautiful Vice
2
- using System;
3
- using UnityEngine;
4
-
5
- namespace DREditor.Flairs
6
- {
7
- /// <summary>
8
- ///
9
- /// </summary>
10
- [Serializable]
11
- public class FlairOffset : IFlairSetting
12
- {
13
- /// <summary>
14
- ///
15
- /// </summary>
16
- [Header("")]
17
- [Header("")]
18
- [Header("")]
19
- [Divider]
20
- [Tooltip("")]
21
- [SerializeField] protected Vector3 position;
22
-
23
- /// <summary>
24
- ///
25
- /// </summary>
26
- [Tooltip("")]
27
- [SerializeField] protected Quaternion rotation = Quaternion.identity;
28
-
29
- /// <summary>
30
- ///
31
- /// </summary>
32
- [Tooltip("")]
33
- [SerializeField] protected Vector3 scale = Vector3.zero;
34
-
35
-
36
- /// <inheritdoc/>
37
- public virtual void ApplySetting(GameObject spawnedFlair)
38
- {
39
- Vector3 newPosition = spawnedFlair.transform.localPosition + position;
40
-
41
- Quaternion newRotation = Quaternion.Euler(spawnedFlair.transform.localRotation.eulerAngles + rotation.eulerAngles);
42
-
43
- spawnedFlair.transform.SetLocalPositionAndRotation(newPosition, newRotation);
44
-
45
- spawnedFlair.transform.localScale += scale;
46
- }
47
- }
1
+ //Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Kill/Cure: Beautiful Vice
2
+ using System;
3
+ using UnityEngine;
4
+
5
+ namespace DREditor.Flairs
6
+ {
7
+ /// <summary>
8
+ ///
9
+ /// </summary>
10
+ [Serializable]
11
+ public class FlairOffset : IFlairSetting
12
+ {
13
+ /// <summary>
14
+ ///
15
+ /// </summary>
16
+ [Header("")]
17
+ [Header("")]
18
+ [Header("")]
19
+ [Divider]
20
+ [Tooltip("")]
21
+ [SerializeField] protected Vector3 position;
22
+
23
+ /// <summary>
24
+ ///
25
+ /// </summary>
26
+ [Tooltip("")]
27
+ [SerializeField] protected Quaternion rotation = Quaternion.identity;
28
+
29
+ /// <summary>
30
+ ///
31
+ /// </summary>
32
+ [Tooltip("")]
33
+ [SerializeField] protected Vector3 scale = Vector3.zero;
34
+
35
+
36
+ /// <inheritdoc/>
37
+ public virtual void ApplySetting(GameObject spawnedFlair)
38
+ {
39
+ Vector3 newPosition = spawnedFlair.transform.localPosition + position;
40
+
41
+ Quaternion newRotation = Quaternion.Euler(spawnedFlair.transform.localRotation.eulerAngles + rotation.eulerAngles);
42
+
43
+ spawnedFlair.transform.SetLocalPositionAndRotation(newPosition, newRotation);
44
+
45
+ spawnedFlair.transform.localScale += scale;
46
+ }
47
+ }
48
48
  }
@@ -1,2 +1,2 @@
1
- fileFormatVersion: 2
1
+ fileFormatVersion: 2
2
2
  guid: 608360d6dff2fe44baaa928dbdc66256
package/FlairSpawner.cs CHANGED
@@ -1,29 +1,29 @@
1
- //Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Kill/Cure: Beautiful Vice
2
- using System.Collections.Generic;
3
- using UnityEngine;
4
-
5
- namespace DREditor.Flairs
6
- {
7
- /// <summary>
8
- ///
9
- /// </summary>
10
- [ClassHeader(nameof(FlairSpawnerBase) +
11
- "\n\n")]
12
- public class FlairSpawner : FlairSpawnerBase
13
- {
14
- /// <summary>
15
- ///
16
- /// </summary>
17
- [Tooltip("")]
18
- [SerializeField] protected List<FlairStrategyBase> strategies = new();
19
-
20
-
21
- /// <inheritdoc/>
22
- public override void Spawn(IFlairEvent eventInstance)
23
- {
24
- foreach (var strategy in strategies)
25
- if (strategy.TryToSpawn(eventInstance))
26
- break;
27
- }
28
- }
1
+ //Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Kill/Cure: Beautiful Vice
2
+ using System.Collections.Generic;
3
+ using UnityEngine;
4
+
5
+ namespace DREditor.Flairs
6
+ {
7
+ /// <summary>
8
+ ///
9
+ /// </summary>
10
+ [ClassHeader(nameof(FlairSpawnerBase) +
11
+ "\n\n")]
12
+ public class FlairSpawner : FlairSpawnerBase
13
+ {
14
+ /// <summary>
15
+ ///
16
+ /// </summary>
17
+ [Tooltip("")]
18
+ [SerializeField] protected List<FlairStrategyBase> strategies = new();
19
+
20
+
21
+ /// <inheritdoc/>
22
+ public override void Spawn(IFlairEvent eventInstance)
23
+ {
24
+ foreach (var strategy in strategies)
25
+ if (strategy.TryToSpawn(eventInstance))
26
+ break;
27
+ }
28
+ }
29
29
  }
@@ -1,2 +1,2 @@
1
- fileFormatVersion: 2
1
+ fileFormatVersion: 2
2
2
  guid: bf16761ada9f7fb48bf0ace46cd5ccc5
@@ -1,17 +1,17 @@
1
- //Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Kill/Cure: Beautiful Vice
2
- using UnityEngine;
3
-
4
- namespace DREditor.Flairs
5
- {
6
- /// <summary>
7
- ///
8
- /// </summary>
9
- public abstract class FlairSpawnerBase : MonoBehaviour
10
- {
11
- /// <summary>
12
- ///
13
- /// </summary>
14
- /// <param name="eventInstance"></param>
15
- public abstract void Spawn(IFlairEvent eventInstance);
16
- }
1
+ //Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Kill/Cure: Beautiful Vice
2
+ using UnityEngine;
3
+
4
+ namespace DREditor.Flairs
5
+ {
6
+ /// <summary>
7
+ ///
8
+ /// </summary>
9
+ public abstract class FlairSpawnerBase : MonoBehaviour
10
+ {
11
+ /// <summary>
12
+ ///
13
+ /// </summary>
14
+ /// <param name="eventInstance"></param>
15
+ public abstract void Spawn(IFlairEvent eventInstance);
16
+ }
17
17
  }
@@ -1,2 +1,2 @@
1
- fileFormatVersion: 2
1
+ fileFormatVersion: 2
2
2
  guid: 03d86e69acd91514b9c6e8781b16afa7
package/FlairStrategy.cs CHANGED
@@ -1,49 +1,49 @@
1
- //Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Kill/Cure: Beautiful Vice
2
- using System.Collections.Generic;
3
- using UnityEngine;
4
-
5
- namespace DREditor.Flairs
6
- {
7
- /// <summary>
8
- ///
9
- /// </summary>
10
- [ClassHeader(nameof(FlairStrategyBase) + ", " + nameof(FlairSpawnerBase) +
11
- "\n\n")]
12
- public class FlairStrategy : FlairStrategyBase
13
- {
14
- /// <summary>
15
- ///
16
- /// </summary>
17
- [SerializeReference, SelectType]
18
- [Tooltip("")]
19
- [SerializeField] protected IFlairSpawnStep spawnStep;
20
-
21
- /// <summary>
22
- ///
23
- /// </summary>
24
- [SerializeReference, SelectType]
25
- [Tooltip("")]
26
- [SerializeField] protected List<IFlairStep> steps = new();
27
-
28
-
29
- /// <inheritdoc/>
30
- protected override void OnSpawnInvoked()
31
- {
32
- GameObject spawnedFlair = spawnStep?.SpawnFlair(eventInstance);
33
-
34
- eventInstance.ApplySettings(spawnedFlair);
35
-
36
- InvokeSteps(spawnedFlair);
37
- }
38
-
39
- /// <summary>
40
- ///
41
- /// </summary>
42
- /// <param name="spawnedFlair"></param>
43
- protected virtual void InvokeSteps(GameObject spawnedFlair)
44
- {
45
- foreach (var step in steps)
46
- step.ApplyStep(eventInstance, spawnedFlair);
47
- }
48
- }
1
+ //Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Kill/Cure: Beautiful Vice
2
+ using System.Collections.Generic;
3
+ using UnityEngine;
4
+
5
+ namespace DREditor.Flairs
6
+ {
7
+ /// <summary>
8
+ ///
9
+ /// </summary>
10
+ [ClassHeader(nameof(FlairStrategyBase) + ", " + nameof(FlairSpawnerBase) +
11
+ "\n\n")]
12
+ public class FlairStrategy : FlairStrategyBase
13
+ {
14
+ /// <summary>
15
+ ///
16
+ /// </summary>
17
+ [SerializeReference, SelectType]
18
+ [Tooltip("")]
19
+ [SerializeField] protected IFlairSpawnStep spawnStep;
20
+
21
+ /// <summary>
22
+ ///
23
+ /// </summary>
24
+ [SerializeReference, SelectType]
25
+ [Tooltip("")]
26
+ [SerializeField] protected List<IFlairStep> steps = new();
27
+
28
+
29
+ /// <inheritdoc/>
30
+ protected override void OnSpawnInvoked()
31
+ {
32
+ GameObject spawnedFlair = spawnStep?.SpawnFlair(eventInstance);
33
+
34
+ eventInstance.ApplySettings(spawnedFlair);
35
+
36
+ InvokeSteps(spawnedFlair);
37
+ }
38
+
39
+ /// <summary>
40
+ ///
41
+ /// </summary>
42
+ /// <param name="spawnedFlair"></param>
43
+ protected virtual void InvokeSteps(GameObject spawnedFlair)
44
+ {
45
+ foreach (var step in steps)
46
+ step.ApplyStep(eventInstance, spawnedFlair);
47
+ }
48
+ }
49
49
  }
@@ -1,2 +1,2 @@
1
- fileFormatVersion: 2
1
+ fileFormatVersion: 2
2
2
  guid: 4a1f5b2a74365d8489fb6c5b798b9f73
@@ -1,58 +1,58 @@
1
- //Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Kill/Cure: Beautiful Vice
2
- namespace DREditor.Flairs
3
- {
4
- /// <summary>
5
- ///
6
- /// </summary>
7
- public abstract class FlairStrategyBase : FlairSpawnerBase
8
- {
9
- /// <summary>
10
- ///
11
- /// </summary>
12
- protected IFlairEvent eventInstance;
13
-
14
-
15
- /// <summary>
16
- ///
17
- /// </summary>
18
- /// <param name="eventInstance"></param>
19
- /// <returns></returns>
20
- public virtual bool TryToSpawn(IFlairEvent eventInstance)
21
- {
22
- InitializeEvent(eventInstance);
23
-
24
- bool result = ShouldBeUsed();
25
-
26
- if (result)
27
- Spawn(eventInstance);
28
-
29
- return result;
30
- }
31
-
32
- /// <summary>
33
- ///
34
- /// </summary>
35
- /// <param name="eventInstance"></param>
36
- protected virtual void InitializeEvent(IFlairEvent eventInstance) => this.eventInstance = eventInstance;
37
-
38
- /// <summary>
39
- ///
40
- /// </summary>
41
- /// <returns></returns>
42
- protected virtual bool ShouldBeUsed() => eventInstance.GetFlair().GetPrefab() != null;
43
-
44
-
45
- /// <inheritdoc/>
46
- public override void Spawn(IFlairEvent eventInstance)
47
- {
48
- InitializeEvent(eventInstance);
49
-
50
- OnSpawnInvoked();
51
- }
52
-
53
- /// <summary>
54
- ///
55
- /// </summary>
56
- protected abstract void OnSpawnInvoked();
57
- }
1
+ //Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Kill/Cure: Beautiful Vice
2
+ namespace DREditor.Flairs
3
+ {
4
+ /// <summary>
5
+ ///
6
+ /// </summary>
7
+ public abstract class FlairStrategyBase : FlairSpawnerBase
8
+ {
9
+ /// <summary>
10
+ ///
11
+ /// </summary>
12
+ protected IFlairEvent eventInstance;
13
+
14
+
15
+ /// <summary>
16
+ ///
17
+ /// </summary>
18
+ /// <param name="eventInstance"></param>
19
+ /// <returns></returns>
20
+ public virtual bool TryToSpawn(IFlairEvent eventInstance)
21
+ {
22
+ InitializeEvent(eventInstance);
23
+
24
+ bool result = ShouldBeUsed();
25
+
26
+ if (result)
27
+ Spawn(eventInstance);
28
+
29
+ return result;
30
+ }
31
+
32
+ /// <summary>
33
+ ///
34
+ /// </summary>
35
+ /// <param name="eventInstance"></param>
36
+ protected virtual void InitializeEvent(IFlairEvent eventInstance) => this.eventInstance = eventInstance;
37
+
38
+ /// <summary>
39
+ ///
40
+ /// </summary>
41
+ /// <returns></returns>
42
+ protected virtual bool ShouldBeUsed() => eventInstance.GetFlair().GetPrefab() != null;
43
+
44
+
45
+ /// <inheritdoc/>
46
+ public override void Spawn(IFlairEvent eventInstance)
47
+ {
48
+ InitializeEvent(eventInstance);
49
+
50
+ OnSpawnInvoked();
51
+ }
52
+
53
+ /// <summary>
54
+ ///
55
+ /// </summary>
56
+ protected abstract void OnSpawnInvoked();
57
+ }
58
58
  }
@@ -1,2 +1,2 @@
1
- fileFormatVersion: 2
1
+ fileFormatVersion: 2
2
2
  guid: 51780c7c6cdbb9a48a16f6107af1252b