fr.jeanf.eventsystem 0.1.91 → 0.1.93

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 (71) hide show
  1. package/Runtime/Listeners/Advanced/DecimalBoolEventListener.cs +49 -0
  2. package/Runtime/Listeners/Advanced/DecimalBoolEventListener.cs.meta +11 -0
  3. package/Runtime/Listeners/Advanced/DecimalDecimalEventListener.cs +49 -0
  4. package/Runtime/Listeners/Advanced/DecimalDecimalEventListener.cs.meta +11 -0
  5. package/Runtime/Listeners/Advanced/DecimalFloatEventListener.cs +49 -0
  6. package/Runtime/Listeners/Advanced/DecimalFloatEventListener.cs.meta +11 -0
  7. package/Runtime/Listeners/Advanced/DecimalGameObjectEventListener.cs +49 -0
  8. package/Runtime/Listeners/Advanced/DecimalGameObjectEventListener.cs.meta +11 -0
  9. package/Runtime/Listeners/Advanced/DecimalIntEventListener.cs +49 -0
  10. package/Runtime/Listeners/Advanced/DecimalIntEventListener.cs.meta +11 -0
  11. package/Runtime/Listeners/Advanced/DecimalStringEventListener.cs +49 -0
  12. package/Runtime/Listeners/Advanced/DecimalStringEventListener.cs.meta +11 -0
  13. package/Runtime/Listeners/Advanced.meta +8 -0
  14. package/Runtime/ScriptableObjects/Advanced/DecimalBoolEventChannelSO.cs +17 -0
  15. package/Runtime/ScriptableObjects/Advanced/DecimalBoolEventChannelSO.cs.meta +11 -0
  16. package/Runtime/ScriptableObjects/Advanced/DecimalDecimalEventChannelSO.cs +17 -0
  17. package/Runtime/ScriptableObjects/Advanced/DecimalDecimalEventChannelSO.cs.meta +11 -0
  18. package/Runtime/ScriptableObjects/Advanced/DecimalFloatEventChannelSO.cs +17 -0
  19. package/Runtime/ScriptableObjects/Advanced/DecimalFloatEventChannelSO.cs.meta +11 -0
  20. package/Runtime/ScriptableObjects/Advanced/DecimalGameObjectEventChannelSO.cs +17 -0
  21. package/Runtime/ScriptableObjects/Advanced/DecimalGameObjectEventChannelSO.cs.meta +11 -0
  22. package/Runtime/ScriptableObjects/Advanced/DecimalIntEventChannelSO.cs +17 -0
  23. package/Runtime/ScriptableObjects/Advanced/DecimalIntEventChannelSO.cs.meta +11 -0
  24. package/Runtime/ScriptableObjects/Advanced/DecimalStringEventChannelSO.cs +17 -0
  25. package/Runtime/ScriptableObjects/Advanced/DecimalStringEventChannelSO.cs.meta +11 -0
  26. package/Runtime/SenderInterfaces/Advanced/DecimalBoolEventSender.cs +22 -0
  27. package/Runtime/SenderInterfaces/Advanced/DecimalBoolEventSender.cs.meta +11 -0
  28. package/Runtime/SenderInterfaces/Advanced/DecimalDecimalEventSender.cs +22 -0
  29. package/Runtime/SenderInterfaces/Advanced/DecimalDecimalEventSender.cs.meta +11 -0
  30. package/Runtime/SenderInterfaces/Advanced/DecimalFloatEventSender.cs +23 -0
  31. package/Runtime/SenderInterfaces/Advanced/DecimalFloatEventSender.cs.meta +11 -0
  32. package/Runtime/SenderInterfaces/Advanced/DecimalGameObjectEventSender.cs +21 -0
  33. package/Runtime/SenderInterfaces/Advanced/DecimalGameObjectEventSender.cs.meta +11 -0
  34. package/Runtime/SenderInterfaces/Advanced/DecimalIntEventSender.cs +22 -0
  35. package/Runtime/SenderInterfaces/Advanced/DecimalIntEventSender.cs.meta +11 -0
  36. package/Runtime/SenderInterfaces/Advanced/DecimalStringEventSender.cs +22 -0
  37. package/Runtime/SenderInterfaces/Advanced/DecimalStringEventSender.cs.meta +11 -0
  38. package/Runtime/SenderInterfaces/Advanced.meta +8 -0
  39. package/package.json +1 -1
  40. /package/Runtime/Listeners/{IntBoolEventListener.cs → Advanced/IntBoolEventListener.cs} +0 -0
  41. /package/Runtime/Listeners/{IntBoolEventListener.cs.meta → Advanced/IntBoolEventListener.cs.meta} +0 -0
  42. /package/Runtime/Listeners/{IntFloatEventListener.cs → Advanced/IntFloatEventListener.cs} +0 -0
  43. /package/Runtime/Listeners/{IntFloatEventListener.cs.meta → Advanced/IntFloatEventListener.cs.meta} +0 -0
  44. /package/Runtime/Listeners/{IntGameObjectEventListener.cs → Advanced/IntGameObjectEventListener.cs} +0 -0
  45. /package/Runtime/Listeners/{IntGameObjectEventListener.cs.meta → Advanced/IntGameObjectEventListener.cs.meta} +0 -0
  46. /package/Runtime/Listeners/{IntIntEventListener.cs → Advanced/IntIntEventListener.cs} +0 -0
  47. /package/Runtime/Listeners/{IntIntEventListener.cs.meta → Advanced/IntIntEventListener.cs.meta} +0 -0
  48. /package/Runtime/Listeners/{IntStringEventListener.cs → Advanced/IntStringEventListener.cs} +0 -0
  49. /package/Runtime/Listeners/{IntStringEventListener.cs.meta → Advanced/IntStringEventListener.cs.meta} +0 -0
  50. /package/Runtime/Listeners/{StringBoolEventListener.cs → Advanced/StringBoolEventListener.cs} +0 -0
  51. /package/Runtime/Listeners/{StringBoolEventListener.cs.meta → Advanced/StringBoolEventListener.cs.meta} +0 -0
  52. /package/Runtime/Listeners/{StringFloatEventListener.cs → Advanced/StringFloatEventListener.cs} +0 -0
  53. /package/Runtime/Listeners/{StringFloatEventListener.cs.meta → Advanced/StringFloatEventListener.cs.meta} +0 -0
  54. /package/Runtime/Listeners/{StringStringEventListener.cs → Advanced/StringStringEventListener.cs} +0 -0
  55. /package/Runtime/Listeners/{StringStringEventListener.cs.meta → Advanced/StringStringEventListener.cs.meta} +0 -0
  56. /package/Runtime/SenderInterfaces/{IntBoolEventSender.cs → Advanced/IntBoolEventSender.cs} +0 -0
  57. /package/Runtime/SenderInterfaces/{IntBoolEventSender.cs.meta → Advanced/IntBoolEventSender.cs.meta} +0 -0
  58. /package/Runtime/SenderInterfaces/{IntFloatEventSender.cs → Advanced/IntFloatEventSender.cs} +0 -0
  59. /package/Runtime/SenderInterfaces/{IntFloatEventSender.cs.meta → Advanced/IntFloatEventSender.cs.meta} +0 -0
  60. /package/Runtime/SenderInterfaces/{IntGameObjectEventSender.cs → Advanced/IntGameObjectEventSender.cs} +0 -0
  61. /package/Runtime/SenderInterfaces/{IntGameObjectEventSender.cs.meta → Advanced/IntGameObjectEventSender.cs.meta} +0 -0
  62. /package/Runtime/SenderInterfaces/{IntIntEventSender.cs → Advanced/IntIntEventSender.cs} +0 -0
  63. /package/Runtime/SenderInterfaces/{IntIntEventSender.cs.meta → Advanced/IntIntEventSender.cs.meta} +0 -0
  64. /package/Runtime/SenderInterfaces/{IntStringEventSender.cs → Advanced/IntStringEventSender.cs} +0 -0
  65. /package/Runtime/SenderInterfaces/{IntStringEventSender.cs.meta → Advanced/IntStringEventSender.cs.meta} +0 -0
  66. /package/Runtime/SenderInterfaces/{StringBoolEventSender.cs → Advanced/StringBoolEventSender.cs} +0 -0
  67. /package/Runtime/SenderInterfaces/{StringBoolEventSender.cs.meta → Advanced/StringBoolEventSender.cs.meta} +0 -0
  68. /package/Runtime/SenderInterfaces/{StringFloatEventSender.cs → Advanced/StringFloatEventSender.cs} +0 -0
  69. /package/Runtime/SenderInterfaces/{StringFloatEventSender.cs.meta → Advanced/StringFloatEventSender.cs.meta} +0 -0
  70. /package/Runtime/SenderInterfaces/{StringStringEventSender.cs → Advanced/StringStringEventSender.cs} +0 -0
  71. /package/Runtime/SenderInterfaces/{StringStringEventSender.cs.meta → Advanced/StringStringEventSender.cs.meta} +0 -0
@@ -0,0 +1,49 @@
1
+ using UnityEngine;
2
+ using UnityEngine.Events;
3
+
4
+ /// <summary>
5
+ /// To use a generic UnityEvent type you must override the generic type.
6
+ /// </summary>
7
+ namespace jeanf.EventSystem
8
+ {
9
+ [System.Serializable]
10
+ public class DecimalBoolEvent : UnityEvent<decimal, bool>
11
+ {
12
+
13
+ }
14
+
15
+ /// <summary>
16
+ /// A flexible handler for int events in the form of a MonoBehaviour. Responses can be connected directly from the Unity Inspector.
17
+ /// </summary>
18
+ public class DecimalBoolEventListener : MonoBehaviour, IDebugBehaviour
19
+ {
20
+ public bool isDebug
21
+ {
22
+ get => _isDebug;
23
+ set => _isDebug = value;
24
+ }
25
+ [SerializeField] private bool _isDebug = false;
26
+
27
+ [SerializeField] private DecimalBoolEventChannelSO _channel = default;
28
+
29
+ public DecimalBoolEvent OnEventRaised;
30
+
31
+ private void OnEnable()
32
+ {
33
+ if (_channel != null)
34
+ _channel.OnEventRaised += Respond;
35
+ }
36
+
37
+ private void OnDisable()
38
+ {
39
+ if (_channel != null)
40
+ _channel.OnEventRaised -= Respond;
41
+ }
42
+
43
+ private void Respond(decimal nb, bool value)
44
+ {
45
+ OnEventRaised?.Invoke(nb, value);
46
+ if(isDebug) Debug.Log($" decimal-bool event raised: <{nb},{value}>");
47
+ }
48
+ }
49
+ }
@@ -0,0 +1,11 @@
1
+ fileFormatVersion: 2
2
+ guid: a31c26627a4030444ac1d22cb61e18a4
3
+ MonoImporter:
4
+ externalObjects: {}
5
+ serializedVersion: 2
6
+ defaultReferences: []
7
+ executionOrder: 0
8
+ icon: {instanceID: 0}
9
+ userData:
10
+ assetBundleName:
11
+ assetBundleVariant:
@@ -0,0 +1,49 @@
1
+ using UnityEngine;
2
+ using UnityEngine.Events;
3
+
4
+ /// <summary>
5
+ /// To use a generic UnityEvent type you must override the generic type.
6
+ /// </summary>
7
+ namespace jeanf.EventSystem
8
+ {
9
+ [System.Serializable]
10
+ public class DecimalDecimalEvent : UnityEvent<decimal, decimal>
11
+ {
12
+
13
+ }
14
+
15
+ /// <summary>
16
+ /// A flexible handler for int events in the form of a MonoBehaviour. Responses can be connected directly from the Unity Inspector.
17
+ /// </summary>
18
+ public class DecimalDecimalEventListener : MonoBehaviour, IDebugBehaviour
19
+ {
20
+ public bool isDebug
21
+ {
22
+ get => _isDebug;
23
+ set => _isDebug = value;
24
+ }
25
+ [SerializeField] private bool _isDebug = false;
26
+
27
+ [SerializeField] private DecimalDecimalEventChannelSO _channel = default;
28
+
29
+ public DecimalDecimalEvent OnEventRaised;
30
+
31
+ private void OnEnable()
32
+ {
33
+ if (_channel != null)
34
+ _channel.OnEventRaised += Respond;
35
+ }
36
+
37
+ private void OnDisable()
38
+ {
39
+ if (_channel != null)
40
+ _channel.OnEventRaised -= Respond;
41
+ }
42
+
43
+ private void Respond(decimal nb, decimal value)
44
+ {
45
+ OnEventRaised?.Invoke(nb, value);
46
+ if(isDebug) Debug.Log($" int-bool event raised: <{nb},{value}>");
47
+ }
48
+ }
49
+ }
@@ -0,0 +1,11 @@
1
+ fileFormatVersion: 2
2
+ guid: 90605458d98898140ae3143a7eeca07d
3
+ MonoImporter:
4
+ externalObjects: {}
5
+ serializedVersion: 2
6
+ defaultReferences: []
7
+ executionOrder: 0
8
+ icon: {instanceID: 0}
9
+ userData:
10
+ assetBundleName:
11
+ assetBundleVariant:
@@ -0,0 +1,49 @@
1
+ using UnityEngine;
2
+ using UnityEngine.Events;
3
+
4
+ /// <summary>
5
+ /// To use a generic UnityEvent type you must override the generic type.
6
+ /// </summary>
7
+ namespace jeanf.EventSystem
8
+ {
9
+ [System.Serializable]
10
+ public class DecimalFloatEvent : UnityEvent<decimal, float>
11
+ {
12
+
13
+ }
14
+
15
+ /// <summary>
16
+ /// A flexible handler for int events in the form of a MonoBehaviour. Responses can be connected directly from the Unity Inspector.
17
+ /// </summary>
18
+ public class DecimalFloatEventListener : MonoBehaviour, IDebugBehaviour
19
+ {
20
+ public bool isDebug
21
+ {
22
+ get => _isDebug;
23
+ set => _isDebug = value;
24
+ }
25
+ [SerializeField] private bool _isDebug = false;
26
+
27
+ [SerializeField] private DecimalFloatEventChannelSO _channel = default;
28
+
29
+ public DecimalFloatEvent OnEventRaised;
30
+
31
+ private void OnEnable()
32
+ {
33
+ if (_channel != null)
34
+ _channel.OnEventRaised += Respond;
35
+ }
36
+
37
+ private void OnDisable()
38
+ {
39
+ if (_channel != null)
40
+ _channel.OnEventRaised -= Respond;
41
+ }
42
+
43
+ private void Respond(decimal nb, float value)
44
+ {
45
+ OnEventRaised?.Invoke(nb, value);
46
+ if(isDebug) Debug.Log($" decimal-float event raised: <{nb},{value}>");
47
+ }
48
+ }
49
+ }
@@ -0,0 +1,11 @@
1
+ fileFormatVersion: 2
2
+ guid: c80955d7e24e975438fbb1509d74e5c7
3
+ MonoImporter:
4
+ externalObjects: {}
5
+ serializedVersion: 2
6
+ defaultReferences: []
7
+ executionOrder: 0
8
+ icon: {instanceID: 0}
9
+ userData:
10
+ assetBundleName:
11
+ assetBundleVariant:
@@ -0,0 +1,49 @@
1
+ using UnityEngine;
2
+ using UnityEngine.Events;
3
+
4
+ /// <summary>
5
+ /// To use a generic UnityEvent type you must override the generic type.
6
+ /// </summary>
7
+ namespace jeanf.EventSystem
8
+ {
9
+ [System.Serializable]
10
+ public class DecimalGameObjectEvent : UnityEvent<decimal, GameObject>
11
+ {
12
+
13
+ }
14
+
15
+ /// <summary>
16
+ /// A flexible handler for int events in the form of a MonoBehaviour. Responses can be connected directly from the Unity Inspector.
17
+ /// </summary>
18
+ public class DecimalGameObjectEventListener : MonoBehaviour, IDebugBehaviour
19
+ {
20
+ public bool isDebug
21
+ {
22
+ get => _isDebug;
23
+ set => _isDebug = value;
24
+ }
25
+ [SerializeField] private bool _isDebug = false;
26
+
27
+ [SerializeField] private DecimalGameObjectEventChannelSO _channel = default;
28
+
29
+ public DecimalGameObjectEvent OnEventRaised;
30
+
31
+ private void OnEnable()
32
+ {
33
+ if (_channel != null)
34
+ _channel.OnEventRaised += Respond;
35
+ }
36
+
37
+ private void OnDisable()
38
+ {
39
+ if (_channel != null)
40
+ _channel.OnEventRaised -= Respond;
41
+ }
42
+
43
+ private void Respond(decimal nb, GameObject value)
44
+ {
45
+ OnEventRaised?.Invoke(nb, value);
46
+ if(isDebug) Debug.Log($" decimal-gameObject event raised: <{nb},{value}>");
47
+ }
48
+ }
49
+ }
@@ -0,0 +1,11 @@
1
+ fileFormatVersion: 2
2
+ guid: 874f8953009360448a0ac4ee9ab5a04f
3
+ MonoImporter:
4
+ externalObjects: {}
5
+ serializedVersion: 2
6
+ defaultReferences: []
7
+ executionOrder: 0
8
+ icon: {instanceID: 0}
9
+ userData:
10
+ assetBundleName:
11
+ assetBundleVariant:
@@ -0,0 +1,49 @@
1
+ using UnityEngine;
2
+ using UnityEngine.Events;
3
+
4
+ /// <summary>
5
+ /// To use a generic UnityEvent type you must override the generic type.
6
+ /// </summary>
7
+ namespace jeanf.EventSystem
8
+ {
9
+ [System.Serializable]
10
+ public class DecimalIntEvent : UnityEvent<decimal, int>
11
+ {
12
+
13
+ }
14
+
15
+ /// <summary>
16
+ /// A flexible handler for int events in the form of a MonoBehaviour. Responses can be connected directly from the Unity Inspector.
17
+ /// </summary>
18
+ public class DecimalIntEventListener : MonoBehaviour, IDebugBehaviour
19
+ {
20
+ public bool isDebug
21
+ {
22
+ get => _isDebug;
23
+ set => _isDebug = value;
24
+ }
25
+ [SerializeField] private bool _isDebug = false;
26
+
27
+ [SerializeField] private DecimalIntEventChannelSO _channel = default;
28
+
29
+ public DecimalIntEvent OnEventRaised;
30
+
31
+ private void OnEnable()
32
+ {
33
+ if (_channel != null)
34
+ _channel.OnEventRaised += Respond;
35
+ }
36
+
37
+ private void OnDisable()
38
+ {
39
+ if (_channel != null)
40
+ _channel.OnEventRaised -= Respond;
41
+ }
42
+
43
+ private void Respond(decimal nb, int value)
44
+ {
45
+ OnEventRaised?.Invoke(nb, value);
46
+ if(isDebug) Debug.Log($" int-bool event raised: <{nb},{value}>");
47
+ }
48
+ }
49
+ }
@@ -0,0 +1,11 @@
1
+ fileFormatVersion: 2
2
+ guid: c2d5bd6b18d773a4cba500bc6221ff10
3
+ MonoImporter:
4
+ externalObjects: {}
5
+ serializedVersion: 2
6
+ defaultReferences: []
7
+ executionOrder: 0
8
+ icon: {instanceID: 0}
9
+ userData:
10
+ assetBundleName:
11
+ assetBundleVariant:
@@ -0,0 +1,49 @@
1
+ using UnityEngine;
2
+ using UnityEngine.Events;
3
+
4
+ /// <summary>
5
+ /// To use a generic UnityEvent type you must override the generic type.
6
+ /// </summary>
7
+ namespace jeanf.EventSystem
8
+ {
9
+ [System.Serializable]
10
+ public class DecimalStringEvent : UnityEvent<decimal, string>
11
+ {
12
+
13
+ }
14
+
15
+ /// <summary>
16
+ /// A flexible handler for int events in the form of a MonoBehaviour. Responses can be connected directly from the Unity Inspector.
17
+ /// </summary>
18
+ public class DecimalStringEventListener : MonoBehaviour, IDebugBehaviour
19
+ {
20
+ public bool isDebug
21
+ {
22
+ get => _isDebug;
23
+ set => _isDebug = value;
24
+ }
25
+ [SerializeField] private bool _isDebug = false;
26
+
27
+ [SerializeField] private DecimalStringEventChannelSO _channel = default;
28
+
29
+ public DecimalStringEvent OnEventRaised;
30
+
31
+ private void OnEnable()
32
+ {
33
+ if (_channel != null)
34
+ _channel.OnEventRaised += Respond;
35
+ }
36
+
37
+ private void OnDisable()
38
+ {
39
+ if (_channel != null)
40
+ _channel.OnEventRaised -= Respond;
41
+ }
42
+
43
+ private void Respond(decimal nb, string value)
44
+ {
45
+ OnEventRaised?.Invoke(nb, value);
46
+ if(isDebug) Debug.Log($" decimal-bool event raised: <{nb},{value}>");
47
+ }
48
+ }
49
+ }
@@ -0,0 +1,11 @@
1
+ fileFormatVersion: 2
2
+ guid: 1f3df4042ea13c94ba9ca30870b7fd18
3
+ MonoImporter:
4
+ externalObjects: {}
5
+ serializedVersion: 2
6
+ defaultReferences: []
7
+ executionOrder: 0
8
+ icon: {instanceID: 0}
9
+ userData:
10
+ assetBundleName:
11
+ assetBundleVariant:
@@ -0,0 +1,8 @@
1
+ fileFormatVersion: 2
2
+ guid: f1f85dba53ea19746801d830b3e5f285
3
+ folderAsset: yes
4
+ DefaultImporter:
5
+ externalObjects: {}
6
+ userData:
7
+ assetBundleName:
8
+ assetBundleVariant:
@@ -0,0 +1,17 @@
1
+ using UnityEngine;
2
+ using UnityEngine.Events;
3
+
4
+ namespace jeanf.EventSystem
5
+ {
6
+ [CreateAssetMenu(menuName = "Events/Advanced/<Decimal,Bool> Event Channel")]
7
+
8
+ public class DecimalBoolEventChannelSO : DescriptionBaseSO
9
+ {
10
+ public UnityAction<decimal, bool> OnEventRaised;
11
+
12
+ public void RaiseEvent(decimal nb, bool value)
13
+ {
14
+ OnEventRaised?.Invoke(nb, value);
15
+ }
16
+ }
17
+ }
@@ -0,0 +1,11 @@
1
+ fileFormatVersion: 2
2
+ guid: 64824495fa572774abc34150da99e937
3
+ MonoImporter:
4
+ externalObjects: {}
5
+ serializedVersion: 2
6
+ defaultReferences: []
7
+ executionOrder: 0
8
+ icon: {instanceID: 0}
9
+ userData:
10
+ assetBundleName:
11
+ assetBundleVariant:
@@ -0,0 +1,17 @@
1
+ using UnityEngine;
2
+ using UnityEngine.Events;
3
+
4
+ namespace jeanf.EventSystem
5
+ {
6
+ [CreateAssetMenu(menuName = "Events/Advanced/<Decimal,Decimal> Event Channel")]
7
+
8
+ public class DecimalDecimalEventChannelSO : DescriptionBaseSO
9
+ {
10
+ public UnityAction<decimal, decimal> OnEventRaised;
11
+
12
+ public void RaiseEvent(decimal nb, decimal value)
13
+ {
14
+ OnEventRaised?.Invoke(nb, value);
15
+ }
16
+ }
17
+ }
@@ -0,0 +1,11 @@
1
+ fileFormatVersion: 2
2
+ guid: 035ff2faa3db2f94d9b191dcb6fa93b7
3
+ MonoImporter:
4
+ externalObjects: {}
5
+ serializedVersion: 2
6
+ defaultReferences: []
7
+ executionOrder: 0
8
+ icon: {instanceID: 0}
9
+ userData:
10
+ assetBundleName:
11
+ assetBundleVariant:
@@ -0,0 +1,17 @@
1
+ using UnityEngine;
2
+ using UnityEngine.Events;
3
+
4
+ namespace jeanf.EventSystem
5
+ {
6
+ [CreateAssetMenu(menuName = "Events/Advanced/<Decimal,Float> Event Channel")]
7
+
8
+ public class DecimalFloatEventChannelSO : DescriptionBaseSO
9
+ {
10
+ public UnityAction<decimal, float> OnEventRaised;
11
+
12
+ public void RaiseEvent(decimal nb, float value)
13
+ {
14
+ OnEventRaised?.Invoke(nb, value);
15
+ }
16
+ }
17
+ }
@@ -0,0 +1,11 @@
1
+ fileFormatVersion: 2
2
+ guid: 20a4f7fa46042334ab7ab2c0ddf45df1
3
+ MonoImporter:
4
+ externalObjects: {}
5
+ serializedVersion: 2
6
+ defaultReferences: []
7
+ executionOrder: 0
8
+ icon: {instanceID: 0}
9
+ userData:
10
+ assetBundleName:
11
+ assetBundleVariant:
@@ -0,0 +1,17 @@
1
+ using UnityEngine;
2
+ using UnityEngine.Events;
3
+
4
+ namespace jeanf.EventSystem
5
+ {
6
+ [CreateAssetMenu(menuName = "Events/Advanced/<Decimal,GameObject> Event Channel")]
7
+
8
+ public class DecimalGameObjectEventChannelSO : DescriptionBaseSO
9
+ {
10
+ public UnityAction<decimal, GameObject> OnEventRaised;
11
+
12
+ public void RaiseEvent(decimal nb, GameObject value)
13
+ {
14
+ OnEventRaised?.Invoke(nb, value);
15
+ }
16
+ }
17
+ }
@@ -0,0 +1,11 @@
1
+ fileFormatVersion: 2
2
+ guid: 0e43aa80e5b1ca04bacf45f60a5f1a60
3
+ MonoImporter:
4
+ externalObjects: {}
5
+ serializedVersion: 2
6
+ defaultReferences: []
7
+ executionOrder: 0
8
+ icon: {instanceID: 0}
9
+ userData:
10
+ assetBundleName:
11
+ assetBundleVariant:
@@ -0,0 +1,17 @@
1
+ using UnityEngine;
2
+ using UnityEngine.Events;
3
+
4
+ namespace jeanf.EventSystem
5
+ {
6
+ [CreateAssetMenu(menuName = "Events/Advanced/<Decimal,Int> Event Channel")]
7
+
8
+ public class DecimalIntEventChannelSO : DescriptionBaseSO
9
+ {
10
+ public UnityAction<decimal, int> OnEventRaised;
11
+
12
+ public void RaiseEvent(decimal nb, int value)
13
+ {
14
+ OnEventRaised?.Invoke(nb, value);
15
+ }
16
+ }
17
+ }
@@ -0,0 +1,11 @@
1
+ fileFormatVersion: 2
2
+ guid: 27026707d33dc54498b645d1a8b94db8
3
+ MonoImporter:
4
+ externalObjects: {}
5
+ serializedVersion: 2
6
+ defaultReferences: []
7
+ executionOrder: 0
8
+ icon: {instanceID: 0}
9
+ userData:
10
+ assetBundleName:
11
+ assetBundleVariant:
@@ -0,0 +1,17 @@
1
+ using UnityEngine;
2
+ using UnityEngine.Events;
3
+
4
+ namespace jeanf.EventSystem
5
+ {
6
+ [CreateAssetMenu(menuName = "Events/Advanced/<Decimal,String> Event Channel")]
7
+
8
+ public class DecimalStringEventChannelSO : DescriptionBaseSO
9
+ {
10
+ public UnityAction<decimal, string> OnEventRaised;
11
+
12
+ public void RaiseEvent(decimal nb, string value)
13
+ {
14
+ OnEventRaised?.Invoke(nb, value);
15
+ }
16
+ }
17
+ }
@@ -0,0 +1,11 @@
1
+ fileFormatVersion: 2
2
+ guid: 967966f58c6cbbd4bb51fdc60e103a35
3
+ MonoImporter:
4
+ externalObjects: {}
5
+ serializedVersion: 2
6
+ defaultReferences: []
7
+ executionOrder: 0
8
+ icon: {instanceID: 0}
9
+ userData:
10
+ assetBundleName:
11
+ assetBundleVariant:
@@ -0,0 +1,22 @@
1
+ using UnityEngine;
2
+
3
+ namespace jeanf.EventSystem
4
+ {
5
+ public class DecimalBoolEventSender : MonoBehaviour, IDebugBehaviour
6
+ {
7
+ public bool isDebug
8
+ {
9
+ get => _isDebug;
10
+ set => _isDebug = value;
11
+ }
12
+ [SerializeField] private bool _isDebug = false;
13
+
14
+ [field: Header("Broadcasting on:")] public DecimalBoolEventChannelSO boolMessageChannel;
15
+
16
+ public void SendIntBool(decimal nb, bool value)
17
+ {
18
+ boolMessageChannel.RaiseEvent(nb, value);
19
+ }
20
+ }
21
+ }
22
+
@@ -0,0 +1,11 @@
1
+ fileFormatVersion: 2
2
+ guid: 20599e253253ecf448604343253119e2
3
+ MonoImporter:
4
+ externalObjects: {}
5
+ serializedVersion: 2
6
+ defaultReferences: []
7
+ executionOrder: 0
8
+ icon: {instanceID: 0}
9
+ userData:
10
+ assetBundleName:
11
+ assetBundleVariant:
@@ -0,0 +1,22 @@
1
+ using UnityEngine;
2
+
3
+ namespace jeanf.EventSystem
4
+ {
5
+ public class DecimalDecimalEventSender : MonoBehaviour, IDebugBehaviour
6
+ {
7
+ public bool isDebug
8
+ {
9
+ get => _isDebug;
10
+ set => _isDebug = value;
11
+ }
12
+ [SerializeField] private bool _isDebug = false;
13
+
14
+ [field: Header("Broadcasting on:")] public DecimalDecimalEventChannelSO _channel;
15
+
16
+ public void SendIntInt(decimal nb, decimal value)
17
+ {
18
+ _channel.RaiseEvent(nb, value);
19
+ }
20
+ }
21
+ }
22
+
@@ -0,0 +1,11 @@
1
+ fileFormatVersion: 2
2
+ guid: 2428d50bc9ad09342a7e8f67414aee6f
3
+ MonoImporter:
4
+ externalObjects: {}
5
+ serializedVersion: 2
6
+ defaultReferences: []
7
+ executionOrder: 0
8
+ icon: {instanceID: 0}
9
+ userData:
10
+ assetBundleName:
11
+ assetBundleVariant:
@@ -0,0 +1,23 @@
1
+ using UnityEngine;
2
+ using UnityEngine.Serialization;
3
+
4
+ namespace jeanf.EventSystem
5
+ {
6
+ public class DecimalFloatEventSender : MonoBehaviour, IDebugBehaviour
7
+ {
8
+ public bool isDebug
9
+ {
10
+ get => _isDebug;
11
+ set => _isDebug = value;
12
+ }
13
+ [SerializeField] private bool _isDebug = false;
14
+
15
+ [field: Header("Broadcasting on:")] public DecimalFloatEventChannelSO channel;
16
+
17
+ public void SendIntFloat(int nb, float value)
18
+ {
19
+ channel.RaiseEvent(nb, value);
20
+ }
21
+ }
22
+ }
23
+
@@ -0,0 +1,11 @@
1
+ fileFormatVersion: 2
2
+ guid: 4d245a3bf1d68674a81e723e9c9a97e5
3
+ MonoImporter:
4
+ externalObjects: {}
5
+ serializedVersion: 2
6
+ defaultReferences: []
7
+ executionOrder: 0
8
+ icon: {instanceID: 0}
9
+ userData:
10
+ assetBundleName:
11
+ assetBundleVariant:
@@ -0,0 +1,21 @@
1
+ using UnityEngine;
2
+
3
+ namespace jeanf.EventSystem
4
+ {
5
+ public class DecimalGameObjectEventSender : MonoBehaviour, IDebugBehaviour
6
+ {
7
+ public bool isDebug
8
+ {
9
+ get => _isDebug;
10
+ set => _isDebug = value;
11
+ }
12
+ [SerializeField] private bool _isDebug = false;
13
+
14
+ [field: Header("Broadcasting on:")] public DecimalGameObjectEventChannelSO gameObjectMessageChannel;
15
+
16
+ public void SendIntBool(decimal nb, GameObject value)
17
+ {
18
+ gameObjectMessageChannel.RaiseEvent(nb, value);
19
+ }
20
+ }
21
+ }
@@ -0,0 +1,11 @@
1
+ fileFormatVersion: 2
2
+ guid: e2c18e7e1b347804e9cd5a63a151d9cf
3
+ MonoImporter:
4
+ externalObjects: {}
5
+ serializedVersion: 2
6
+ defaultReferences: []
7
+ executionOrder: 0
8
+ icon: {instanceID: 0}
9
+ userData:
10
+ assetBundleName:
11
+ assetBundleVariant:
@@ -0,0 +1,22 @@
1
+ using UnityEngine;
2
+
3
+ namespace jeanf.EventSystem
4
+ {
5
+ public class DecimalIntEventSender : MonoBehaviour, IDebugBehaviour
6
+ {
7
+ public bool isDebug
8
+ {
9
+ get => _isDebug;
10
+ set => _isDebug = value;
11
+ }
12
+ [SerializeField] private bool _isDebug = false;
13
+
14
+ [field: Header("Broadcasting on:")] public DecimalIntEventChannelSO _channel;
15
+
16
+ public void SendDecimalInt(int nb, int value)
17
+ {
18
+ _channel.RaiseEvent(nb, value);
19
+ }
20
+ }
21
+ }
22
+
@@ -0,0 +1,11 @@
1
+ fileFormatVersion: 2
2
+ guid: c3a8c0299a3ac4947995876d6b2e68ca
3
+ MonoImporter:
4
+ externalObjects: {}
5
+ serializedVersion: 2
6
+ defaultReferences: []
7
+ executionOrder: 0
8
+ icon: {instanceID: 0}
9
+ userData:
10
+ assetBundleName:
11
+ assetBundleVariant:
@@ -0,0 +1,22 @@
1
+ using UnityEngine;
2
+
3
+ namespace jeanf.EventSystem
4
+ {
5
+ public class DecimalStringEventSender : MonoBehaviour, IDebugBehaviour
6
+ {
7
+ public bool isDebug
8
+ {
9
+ get => _isDebug;
10
+ set => _isDebug = value;
11
+ }
12
+ [SerializeField] private bool _isDebug = false;
13
+
14
+ [field: Header("Broadcasting on:")] public DecimalStringEventChannelSO _channel;
15
+
16
+ public void SendIntString(decimal nb, string value)
17
+ {
18
+ _channel.RaiseEvent(nb, value);
19
+ }
20
+ }
21
+ }
22
+
@@ -0,0 +1,11 @@
1
+ fileFormatVersion: 2
2
+ guid: 1096e4260f9bf6746890018a1a333b30
3
+ MonoImporter:
4
+ externalObjects: {}
5
+ serializedVersion: 2
6
+ defaultReferences: []
7
+ executionOrder: 0
8
+ icon: {instanceID: 0}
9
+ userData:
10
+ assetBundleName:
11
+ assetBundleVariant:
@@ -0,0 +1,8 @@
1
+ fileFormatVersion: 2
2
+ guid: f2d8a4281c76aa74ea825cc12aaf25eb
3
+ folderAsset: yes
4
+ DefaultImporter:
5
+ externalObjects: {}
6
+ userData:
7
+ assetBundleName:
8
+ assetBundleVariant:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fr.jeanf.eventsystem",
3
- "version": "0.1.91",
3
+ "version": "0.1.93",
4
4
  "displayName": "Event System",
5
5
  "description": "This package contains a basic Event System based on Scriptable Objects as communication medium",
6
6
  "unity": "2021.3",