Skip to content

Commit 34eca6b

Browse files
authored
Merge branch 'main' into 7-add-vector4-gameevent
2 parents 51034eb + e9d4964 commit 34eca6b

File tree

61 files changed

+662
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+662
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
using UnityEditor;
2+
3+
namespace RaCoding.GameEvents
4+
{
5+
[CustomEditor(typeof(GameEvent<double>), editorForChildClasses: true)]
6+
public class DoubleGameEventEditor : GameEventEditor<double>
7+
{
8+
protected override double GetValue()
9+
{
10+
return EditorGUILayout.DoubleField(1);
11+
}
12+
}
13+
}

Packages/SOGameEvents/Editor/DoubleGameEventEditor.cs.meta

+11
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
using UnityEditor;
2+
3+
namespace RaCoding.GameEvents
4+
{
5+
[CustomEditor(typeof(GameEvent<sbyte>), editorForChildClasses: true)]
6+
public class SByteGameEventEditor : GameEventEditor<sbyte>
7+
{
8+
protected override sbyte GetValue()
9+
{
10+
return (sbyte)EditorGUILayout.IntField(1);
11+
}
12+
}
13+
}

Packages/SOGameEvents/Editor/SByteGameEventEditor.cs.meta

+11
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
using UnityEditor;
2+
3+
namespace RaCoding.GameEvents
4+
{
5+
[CustomEditor(typeof(GameEvent<uint>), editorForChildClasses: true)]
6+
public class UIntGameEventEditor : GameEventEditor<uint>
7+
{
8+
protected override uint GetValue()
9+
{
10+
return (uint)EditorGUILayout.IntField(1);
11+
}
12+
}
13+
}

Packages/SOGameEvents/Editor/UIntGameEventEditor.cs.meta

+11
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
using UnityEditor;
2+
3+
namespace RaCoding.GameEvents
4+
{
5+
[CustomEditor(typeof(GameEvent<ushort>), editorForChildClasses: true)]
6+
public class UShortGameEventEditor : GameEventEditor<ushort>
7+
{
8+
protected override ushort GetValue()
9+
{
10+
return (ushort)EditorGUILayout.IntField(1);
11+
}
12+
}
13+
}

Packages/SOGameEvents/Editor/UShortGameEventEditor.cs.meta

+11
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
using UnityEditor;
2+
using UnityEngine;
3+
4+
namespace RaCoding.GameEvents
5+
{
6+
[CustomEditor(typeof(GameEvent<Vector2Int>), editorForChildClasses: true)]
7+
public class Vector2IntGameEventEditor : GameEventEditor<Vector2Int>
8+
{
9+
public Object source;
10+
11+
protected override Vector2Int GetValue()
12+
{
13+
return EditorGUILayout.Vector2IntField("Vector2Int", new Vector2Int(1, 1));
14+
}
15+
}
16+
}

Packages/SOGameEvents/Editor/Vector2IntGameEventEditor.cs.meta

+11
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
using UnityEditor;
2+
using UnityEngine;
3+
4+
namespace RaCoding.GameEvents
5+
{
6+
[CustomEditor(typeof(GameEvent<Vector3Int>), editorForChildClasses: true)]
7+
public class Vector3IntGameEventEditor : GameEventEditor<Vector3Int>
8+
{
9+
public Object source;
10+
11+
protected override Vector3Int GetValue()
12+
{
13+
return EditorGUILayout.Vector3IntField("Vector3Int", new Vector3Int(1, 1, 1));
14+
}
15+
}
16+
}

Packages/SOGameEvents/Editor/Vector3IntGameEventEditor.cs.meta

+11
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
using UnityEngine;
2+
3+
namespace RaCoding.GameEvents
4+
{
5+
[CreateAssetMenu(fileName = "DoubleGameEvent", menuName = "RaCoding/GameEvent/Create new double game event")]
6+
public class DoubleGameEvent : GameEvent<double> { }
7+
}

Packages/SOGameEvents/Runtime/Events/DoubleGameEvent.cs.meta

+11
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
using UnityEngine;
2+
3+
namespace RaCoding.GameEvents
4+
{
5+
[CreateAssetMenu(fileName = "SByteGameEvent", menuName = "RaCoding/GameEvent/Create new sbyte game event")]
6+
public class SByteGameEvent : GameEvent<sbyte> { }
7+
}

Packages/SOGameEvents/Runtime/Events/SByteGameEvent.cs.meta

+11
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
using UnityEngine;
2+
3+
namespace RaCoding.GameEvents
4+
{
5+
[CreateAssetMenu(fileName = "UIntGameEvent", menuName = "RaCoding/GameEvent/Create new uint game event")]
6+
public class UIntGameEvent : GameEvent<uint> { }
7+
}

Packages/SOGameEvents/Runtime/Events/UIntGameEvent.cs.meta

+11
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
using UnityEngine;
2+
3+
namespace RaCoding.GameEvents
4+
{
5+
[CreateAssetMenu(fileName = "UShortGameEvent", menuName = "RaCoding/GameEvent/Create new ushort game event")]
6+
public class UShortGameEvent : GameEvent<ushort> { }
7+
}

Packages/SOGameEvents/Runtime/Events/UShortGameEvent.cs.meta

+11
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
using UnityEngine.Events;
2+
3+
namespace RaCoding.GameEvents
4+
{
5+
[System.Serializable]
6+
public class DoubleUnityEvent : UnityEvent<double> { }
7+
}

Packages/SOGameEvents/Runtime/Events/UnityEvents/DoubleUnityEvent.cs.meta

+11
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
using UnityEngine.Events;
2+
3+
namespace RaCoding.GameEvents
4+
{
5+
[System.Serializable]
6+
public class SByteUnityEvent : UnityEvent<sbyte> { }
7+
}

Packages/SOGameEvents/Runtime/Events/UnityEvents/SByteUnityEvent.cs.meta

+11
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
using UnityEngine.Events;
2+
3+
namespace RaCoding.GameEvents
4+
{
5+
[System.Serializable]
6+
public class UIntUnityEvent : UnityEvent<uint> { }
7+
}

Packages/SOGameEvents/Runtime/Events/UnityEvents/UIntUnityEvent.cs.meta

+11
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
using UnityEngine.Events;
2+
3+
namespace RaCoding.GameEvents
4+
{
5+
[System.Serializable]
6+
public class UShortUnityEvent : UnityEvent<ushort> { }
7+
}

Packages/SOGameEvents/Runtime/Events/UnityEvents/UShortUnityEvent.cs.meta

+11
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
using UnityEngine;
2+
using UnityEngine.Events;
3+
4+
namespace RaCoding.GameEvents
5+
{
6+
[System.Serializable]
7+
public class Vector2IntUnityEvent : UnityEvent<Vector2Int> { }
8+
}

Packages/SOGameEvents/Runtime/Events/UnityEvents/Vector2IntUnityEvent.cs.meta

+11
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
using UnityEngine;
2+
using UnityEngine.Events;
3+
4+
namespace RaCoding.GameEvents
5+
{
6+
[System.Serializable]
7+
public class Vector3IntUnityEvent : UnityEvent<Vector3Int> { }
8+
}

Packages/SOGameEvents/Runtime/Events/UnityEvents/Vector3IntUnityEvent.cs.meta

+11
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
using UnityEngine;
2+
3+
namespace RaCoding.GameEvents
4+
{
5+
[CreateAssetMenu(fileName = "Vector2IntGameEvent", menuName = "RaCoding/GameEvent/Create new vector2int game event")]
6+
public class Vector2IntGameEvent : GameEvent<Vector2Int> { }
7+
}

Packages/SOGameEvents/Runtime/Events/Vector2IntGameEvent.cs.meta

+11
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)