FunGame-Core/FunGame.Core/Entity/Event/GeneralEventArgs.cs
2022-10-18 23:33:21 +08:00

30 lines
711 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Milimoe.FunGame.Core.Entity.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 class GeneralEvent<T>
{
public T Instance { get; set; }
public GeneralEvent()
{
Instance = System.Activator.CreateInstance<T>();
}
}
}