34 lines
812 B
C#
34 lines
812 B
C#
using GameFramework;
|
|
using GameFramework.Event;
|
|
|
|
namespace GeometryTD.CustomEvent
|
|
{
|
|
public enum TestMenuNodeType : byte
|
|
{
|
|
Combat = 1,
|
|
Event = 2,
|
|
Shop = 3
|
|
}
|
|
|
|
public class TestMenuNodeClickEventArgs : GameEventArgs
|
|
{
|
|
public static int EventId => typeof(TestMenuNodeClickEventArgs).GetHashCode();
|
|
|
|
public override int Id => EventId;
|
|
|
|
public TestMenuNodeType NodeType { get; private set; }
|
|
|
|
public static TestMenuNodeClickEventArgs Create(TestMenuNodeType nodeType)
|
|
{
|
|
TestMenuNodeClickEventArgs args = ReferencePool.Acquire<TestMenuNodeClickEventArgs>();
|
|
args.NodeType = nodeType;
|
|
return args;
|
|
}
|
|
|
|
public override void Clear()
|
|
{
|
|
NodeType = 0;
|
|
}
|
|
}
|
|
}
|