32 lines
762 B
C#
32 lines
762 B
C#
using GameFramework;
|
|
using GameFramework.Event;
|
|
|
|
namespace Event
|
|
{
|
|
public class BgTransitionCompletedEventArgs : GameEventArgs
|
|
{
|
|
public static readonly int EventId = typeof(BgTransitionCompletedEventArgs).GetHashCode();
|
|
|
|
public override int Id => EventId;
|
|
|
|
public int RequestId { get; private set; }
|
|
|
|
public BgTransitionCompletedEventArgs()
|
|
{
|
|
RequestId = 0;
|
|
}
|
|
|
|
public static BgTransitionCompletedEventArgs Create(int requestId)
|
|
{
|
|
var args = ReferencePool.Acquire<BgTransitionCompletedEventArgs>();
|
|
args.RequestId = requestId;
|
|
return args;
|
|
}
|
|
|
|
public override void Clear()
|
|
{
|
|
RequestId = 0;
|
|
}
|
|
}
|
|
}
|