Skip to content

Commit

Permalink
v3.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jheiling committed Dec 2, 2023
1 parent 08b91ca commit cd0bf99
Show file tree
Hide file tree
Showing 149 changed files with 1,202 additions and 1,438 deletions.
8 changes: 0 additions & 8 deletions Common/Scripts/BoolEvent.cs

This file was deleted.

13 changes: 0 additions & 13 deletions Common/Scripts/BoolEvent.cs.meta

This file was deleted.

2 changes: 1 addition & 1 deletion Common/Scripts/BoolSignal.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
namespace Signals.Common
{
[CreateAssetMenu(menuName = nameof(Signals) + "/" + nameof(BoolSignal))]
public class BoolSignal : Signal<bool, BoolEvent> { }
public class BoolSignal : Signal<bool> { }
}
2 changes: 1 addition & 1 deletion Common/Scripts/BoolSignalListener.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
namespace Signals.Common
{
[AddComponentMenu(nameof(Signals) + "/" + nameof(BoolSignalListener))]
public class BoolSignalListener : SignalListener<bool, BoolEvent, BoolSignal> { }
public class BoolSignalListener : SignalListener<bool> { }
}
11 changes: 0 additions & 11 deletions Common/Scripts/BoolValueReference.cs

This file was deleted.

13 changes: 0 additions & 13 deletions Common/Scripts/BoolValueReference.cs.meta

This file was deleted.

8 changes: 0 additions & 8 deletions Common/Scripts/CharEvent.cs

This file was deleted.

13 changes: 0 additions & 13 deletions Common/Scripts/CharEvent.cs.meta

This file was deleted.

2 changes: 1 addition & 1 deletion Common/Scripts/CharSignal.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
namespace Signals.Common
{
[CreateAssetMenu(menuName = nameof(Signals) + "/" + nameof(CharSignal))]
public class CharSignal : Signal<char, CharEvent> { }
public class CharSignal : Signal<char> { }
}
2 changes: 1 addition & 1 deletion Common/Scripts/CharSignalListener.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
namespace Signals.Common
{
[AddComponentMenu(nameof(Signals) + "/" + nameof(CharSignalListener))]
public class CharSignalListener : SignalListener<char, CharEvent, CharSignal> { }
public class CharSignalListener : SignalListener<char> { }
}
11 changes: 0 additions & 11 deletions Common/Scripts/CharValueReference.cs

This file was deleted.

13 changes: 0 additions & 13 deletions Common/Scripts/CharValueReference.cs.meta

This file was deleted.

2 changes: 1 addition & 1 deletion Common/Scripts/Editor/BoolSignalEditor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
namespace Signals.Common
{
[CustomEditor(typeof(BoolSignal), true)]
public class BoolSignalEditor : SignalEditor<bool, BoolEvent>
public class BoolSignalEditor : SignalEditor<bool>
{
protected override bool ValueField(bool value) => EditorGUILayout.Toggle(value);
}
Expand Down
2 changes: 1 addition & 1 deletion Common/Scripts/Editor/BoolValueReferenceDrawer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

namespace Signals.Common
{
[CustomPropertyDrawer(typeof(BoolValueReference))]
[CustomPropertyDrawer(typeof(ValueReference<bool>))]
public class BoolValueReferenceDrawer : ValueReferenceDrawer { }
}
2 changes: 1 addition & 1 deletion Common/Scripts/Editor/CharSignalEditor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
namespace Signals.Common
{
[CustomEditor(typeof(CharSignal), true)]
public class CharSignalEditor : SignalEditor<char, CharEvent>
public class CharSignalEditor : SignalEditor<char>
{
protected override char ValueField(char value)
{
Expand Down
2 changes: 1 addition & 1 deletion Common/Scripts/Editor/CharValueReferenceDrawer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

namespace Signals.Common
{
[CustomPropertyDrawer(typeof(CharValueReference))]
[CustomPropertyDrawer(typeof(ValueReference<char>))]
public class CharValueReferenceDrawer : ValueReferenceDrawer { }
}
2 changes: 1 addition & 1 deletion Common/Scripts/Editor/FloatSignalEditor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
namespace Signals.Common
{
[CustomEditor(typeof(FloatSignal), true)]
public class FloatSignalEditor : SignalEditor<float, FloatEvent>
public class FloatSignalEditor : SignalEditor<float>
{
protected override float ValueField(float value) => EditorGUILayout.DelayedFloatField(value);
}
Expand Down
2 changes: 1 addition & 1 deletion Common/Scripts/Editor/FloatValueReferenceDrawer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

namespace Signals.Common
{
[CustomPropertyDrawer(typeof(FloatValueReference))]
[CustomPropertyDrawer(typeof(ValueReference<float>))]
public class FloatValueReferenceDrawer : ValueReferenceDrawer { }
}
2 changes: 1 addition & 1 deletion Common/Scripts/Editor/IntSignalEditor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
namespace Signals.Common
{
[CustomEditor(typeof(IntSignal), true)]
public class IntSignalEditor : SignalEditor<int, IntEvent>
public class IntSignalEditor : SignalEditor<int>
{
protected override int ValueField(int value) => EditorGUILayout.DelayedIntField(value);
}
Expand Down
2 changes: 1 addition & 1 deletion Common/Scripts/Editor/IntValueReferenceDrawer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

namespace Signals.Common
{
[CustomPropertyDrawer(typeof(IntValueReference))]
[CustomPropertyDrawer(typeof(ValueReference<int>))]
public class IntValueReferenceDrawer : ValueReferenceDrawer { }
}
2 changes: 1 addition & 1 deletion Common/Scripts/Editor/QuaternionSignalEditor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
namespace Signals.Common
{
[CustomEditor(typeof(QuaternionSignal), true)]
public class QuaternionSignalEditor : SignalEditor<Quaternion, QuaternionEvent>
public class QuaternionSignalEditor : SignalEditor<Quaternion>
{
protected override Quaternion ValueField(Quaternion value)
{
Expand Down
6 changes: 3 additions & 3 deletions Common/Scripts/Editor/QuaternionValueReferenceDrawer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@

namespace Signals.Common
{
[CustomPropertyDrawer(typeof(QuaternionValueReference))]
[CustomPropertyDrawer(typeof(ValueReference<Quaternion>))]
public class QuaternionValueReferenceDrawer : ValueReferenceDrawer
{
static Vector4 QuaternionToVector4(Quaternion quaternion) => new Vector4(quaternion.x, quaternion.y, quaternion.z, quaternion.w);
static Vector4 QuaternionToVector4(Quaternion quaternion) => new(quaternion.x, quaternion.y, quaternion.z, quaternion.w);

static Quaternion Vector4ToQuaternion(Vector4 vector) => new Quaternion(vector.x, vector.y, vector.z, vector.w);
static Quaternion Vector4ToQuaternion(Vector4 vector) => new(vector.x, vector.y, vector.z, vector.w);

protected override void LocalValueField(Rect position, SerializedProperty localValue) =>
localValue.quaternionValue = Vector4ToQuaternion(EditorGUI.Vector4Field(position, GUIContent.none, QuaternionToVector4(localValue.quaternionValue)));
Expand Down
1 change: 1 addition & 0 deletions Common/Scripts/Editor/Signals.Common.Editor.asmdef
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "Signals.Common.Editor",
"references": [
"Signals",
"Signals.Editor",
"Signals.Common"
],
Expand Down
2 changes: 1 addition & 1 deletion Common/Scripts/Editor/StringSignalEditor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
namespace Signals.Common
{
[CustomEditor(typeof(StringSignal), true)]
public class StringSignalEditor : SignalEditor<string, StringEvent>
public class StringSignalEditor : SignalEditor<string>
{
protected override string ValueField(string value) => EditorGUILayout.DelayedTextField(value);
}
Expand Down
2 changes: 1 addition & 1 deletion Common/Scripts/Editor/StringValueReferenceDrawer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

namespace Signals.Common
{
[CustomPropertyDrawer(typeof(StringValueReference))]
[CustomPropertyDrawer(typeof(ValueReference<string>))]
public class StringValueReferenceDrawer : ValueReferenceDrawer { }
}
2 changes: 1 addition & 1 deletion Common/Scripts/Editor/Vector2IntSignalEditor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
namespace Signals.Common
{
[CustomEditor(typeof(Vector2IntSignal), true)]
public class Vector2IntSignalEditor : SignalEditor<Vector2Int, Vector2IntEvent>
public class Vector2IntSignalEditor : SignalEditor<Vector2Int>
{
protected override Vector2Int ValueField(Vector2Int value) => EditorGUILayout.Vector2IntField("", value);
}
Expand Down
3 changes: 2 additions & 1 deletion Common/Scripts/Editor/Vector2IntValueReferenceDrawer.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
using UnityEditor;
using UnityEngine;

namespace Signals.Common
{
[CustomPropertyDrawer(typeof(Vector2IntValueReference))]
[CustomPropertyDrawer(typeof(ValueReference<Vector2Int>))]
public class Vector2IntValueReferenceDrawer : ValueReferenceDrawer { }
}
2 changes: 1 addition & 1 deletion Common/Scripts/Editor/Vector2SignalEditor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
namespace Signals.Common
{
[CustomEditor(typeof(Vector2Signal), true)]
public class Vector2SignalEditor : SignalEditor<Vector2, Vector2Event>
public class Vector2SignalEditor : SignalEditor<Vector2>
{
protected override Vector2 ValueField(Vector2 value) => EditorGUILayout.Vector2Field("", value);
}
Expand Down
3 changes: 2 additions & 1 deletion Common/Scripts/Editor/Vector2ValueReferenceDrawer.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
using UnityEngine;
using UnityEditor;

namespace Signals.Common
{
[CustomPropertyDrawer(typeof(Vector2ValueReference))]
[CustomPropertyDrawer(typeof(ValueReference<Vector2>))]
public class Vector2ValueReferenceDrawer : ValueReferenceDrawer { }
}
2 changes: 1 addition & 1 deletion Common/Scripts/Editor/Vector3IntSignalEditor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
namespace Signals.Common
{
[CustomEditor(typeof(Vector3IntSignal), true)]
public class Vector3IntSignalEditor : SignalEditor<Vector3Int, Vector3IntEvent>
public class Vector3IntSignalEditor : SignalEditor<Vector3Int>
{
protected override Vector3Int ValueField(Vector3Int value) => EditorGUILayout.Vector3IntField("", value);
}
Expand Down
3 changes: 2 additions & 1 deletion Common/Scripts/Editor/Vector3IntValueReferenceDrawer.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
using UnityEngine;
using UnityEditor;

namespace Signals.Common
{
[CustomPropertyDrawer(typeof(Vector3IntValueReference))]
[CustomPropertyDrawer(typeof(ValueReference<Vector3Int>))]
public class Vector3IntValueReferenceDrawer : ValueReferenceDrawer { }
}
2 changes: 1 addition & 1 deletion Common/Scripts/Editor/Vector3SignalEditor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
namespace Signals.Common
{
[CustomEditor(typeof(Vector3Signal), true)]
public class Vector3SignalEditor : SignalEditor<Vector3, Vector3Event>
public class Vector3SignalEditor : SignalEditor<Vector3>
{
protected override Vector3 ValueField(Vector3 value) => EditorGUILayout.Vector3Field("", value);
}
Expand Down
5 changes: 3 additions & 2 deletions Common/Scripts/Editor/Vector3ValueReferenceDrawer.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
using UnityEditor;
using UnityEngine;
using UnityEditor;

namespace Signals.Common
{
[CustomPropertyDrawer(typeof(Vector3ValueReference))]
[CustomPropertyDrawer(typeof(ValueReference<Vector3>))]
public class Vector3ValueReferenceDrawer : ValueReferenceDrawer { }
}
2 changes: 1 addition & 1 deletion Common/Scripts/Editor/Vector4SignalEditor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
namespace Signals.Common
{
[CustomEditor(typeof(Vector4Signal), true)]
public class Vector4SignalEditor : SignalEditor<Vector4, Vector4Event>
public class Vector4SignalEditor : SignalEditor<Vector4>
{
protected override Vector4 ValueField(Vector4 value) => EditorGUILayout.Vector4Field("", value);
}
Expand Down
2 changes: 1 addition & 1 deletion Common/Scripts/Editor/Vector4ValueReferenceDrawer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

namespace Signals.Common
{
[CustomPropertyDrawer(typeof(Vector4ValueReference))]
[CustomPropertyDrawer(typeof(ValueReference<Vector4>))]
public class Vector4ValueReferenceDrawer : ValueReferenceDrawer
{
protected override void LocalValueField(Rect position, SerializedProperty localValue) =>
Expand Down
8 changes: 0 additions & 8 deletions Common/Scripts/FloatEvent.cs

This file was deleted.

13 changes: 0 additions & 13 deletions Common/Scripts/FloatEvent.cs.meta

This file was deleted.

2 changes: 1 addition & 1 deletion Common/Scripts/FloatSignal.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
namespace Signals.Common
{
[CreateAssetMenu(menuName = nameof(Signals) + "/" + nameof(FloatSignal))]
public class FloatSignal : Signal<float, FloatEvent> { }
public class FloatSignal : Signal<float> { }
}
2 changes: 1 addition & 1 deletion Common/Scripts/FloatSignalListener.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
namespace Signals.Common
{
[AddComponentMenu(nameof(Signals) + "/" + nameof(FloatSignalListener))]
public class FloatSignalListener : SignalListener<float, FloatEvent, FloatSignal> { }
public class FloatSignalListener : SignalListener<float> { }
}
11 changes: 0 additions & 11 deletions Common/Scripts/FloatValueReference.cs

This file was deleted.

Loading

0 comments on commit cd0bf99

Please sign in to comment.