Skip to content

Commit 448129f

Browse files
committed
Add uint gameevent
1 parent 4580498 commit 448129f

File tree

11 files changed

+117
-0
lines changed

11 files changed

+117
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
using System.Collections;
2+
using System.Collections.Generic;
3+
using UnityEngine;
4+
5+
namespace RaCoding.GameEvents
6+
{
7+
public class UIntGameEventEditor : MonoBehaviour
8+
{
9+
// Start is called before the first frame update
10+
void Start()
11+
{
12+
13+
}
14+
15+
// Update is called once per frame
16+
void Update()
17+
{
18+
19+
}
20+
}
21+
}

Packages/SOGameEvents/Editor/UIntGameEventEditor.cs.meta

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 7 additions & 0 deletions
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

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 7 additions & 0 deletions
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

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
using UnityEngine;
2+
3+
namespace RaCoding.GameEvents
4+
{
5+
[AddComponentMenu("RaCoding/GameEvents/UIntGameEventListener")]
6+
public class UIntComponentGameEventListener : ComponentGameEventListener<UIntGameEventListener, uint> { }
7+
}

Packages/SOGameEvents/Runtime/Listener/Component/UIntComponentGameEventListener.cs.meta

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
using UnityEngine;
2+
using UnityEngine.Events;
3+
4+
namespace RaCoding.GameEvents
5+
{
6+
[System.Serializable]
7+
public class UIntGameEventListener : GameEventListener<uint>
8+
{
9+
public UIntGameEventListener() : base() { }
10+
11+
public UIntGameEventListener(IRegisterListener registerListener) : base(registerListener) { }
12+
13+
[SerializeField] private UIntGameEvent uintEvent;
14+
[SerializeField] private UIntUnityEvent uintResponse;
15+
16+
public override GameEvent<uint> Event => uintEvent;
17+
public override UnityEvent<uint> Response => uintResponse;
18+
}
19+
}

Packages/SOGameEvents/Runtime/Listener/UIntGameEventListener.cs.meta

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)