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