biography-of-lijie/Assets/GameMain/Scripts/Event/Story/ChapterTitleCompletedEventA...

36 lines
949 B
C#

using GameFramework;
using GameFramework.Event;
namespace Event
{
public class ChapterTitleCompletedEventArgs : GameEventArgs
{
public static readonly int EventId = typeof(ChapterTitleCompletedEventArgs).GetHashCode();
public override int Id => EventId;
public int ChapterId { get; private set; }
public int RequestId { get; private set; }
public ChapterTitleCompletedEventArgs()
{
ChapterId = 0;
RequestId = 0;
}
public static ChapterTitleCompletedEventArgs Create(int chapterId, int requestId)
{
ChapterTitleCompletedEventArgs args = ReferencePool.Acquire<ChapterTitleCompletedEventArgs>();
args.ChapterId = chapterId;
args.RequestId = requestId;
return args;
}
public override void Clear()
{
ChapterId = 0;
RequestId = 0;
}
}
}