mirror of
https://github.com/project-redbud/FunGame-Core.git
synced 2025-04-22 20:19:34 +08:00
29 lines
724 B
C#
29 lines
724 B
C#
namespace Milimoe.FunGame.Core.Library.Common.Event
|
|
{
|
|
public class GeneralEventArgs : EventArgs
|
|
{
|
|
public string EventMsg { get; set; } = "";
|
|
public object[]? Parameters { get; set; } = null;
|
|
|
|
public GeneralEventArgs(string EventMsg = "", object[]? Parameters = null)
|
|
{
|
|
this.EventMsg = EventMsg;
|
|
this.Parameters = Parameters;
|
|
}
|
|
|
|
public GeneralEventArgs(params object[]? Parameters)
|
|
{
|
|
this.Parameters = Parameters;
|
|
}
|
|
}
|
|
|
|
public class GeneralEvent<T>
|
|
{
|
|
public T Instance { get; set; }
|
|
public GeneralEvent()
|
|
{
|
|
Instance = Activator.CreateInstance<T>();
|
|
}
|
|
}
|
|
}
|