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(); args.ChapterId = chapterId; return args; } public override void Clear() { ChapterId = 0; } } }