43 lines
1.0 KiB
C#
43 lines
1.0 KiB
C#
using GameFramework;
|
|
using GameFramework.Event;
|
|
|
|
namespace Event
|
|
{
|
|
public class DialogCompletedEventArgs : GameEventArgs
|
|
{
|
|
public static readonly int EventId = typeof(DialogCompletedEventArgs).GetHashCode();
|
|
|
|
public override int Id => EventId;
|
|
|
|
public int ChapterId { get; private set; }
|
|
|
|
public int DialogId { get; private set; }
|
|
|
|
public int LastLineId { get; private set; }
|
|
|
|
public DialogCompletedEventArgs()
|
|
{
|
|
ChapterId = 0;
|
|
DialogId = 0;
|
|
LastLineId = 0;
|
|
}
|
|
|
|
public static DialogCompletedEventArgs Create(int chapterId, int dialogId, int lastLineId)
|
|
{
|
|
var args = ReferencePool.Acquire<DialogCompletedEventArgs>();
|
|
|
|
args.ChapterId = chapterId;
|
|
args.DialogId = dialogId;
|
|
args.LastLineId = lastLineId;
|
|
return args;
|
|
}
|
|
|
|
public override void Clear()
|
|
{
|
|
ChapterId = 0;
|
|
DialogId = 0;
|
|
LastLineId = 0;
|
|
}
|
|
}
|
|
}
|