mirror of
https://github.com/project-redbud/FunGame-Core.git
synced 2025-04-23 20:49:33 +08:00
30 lines
711 B
C#
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>();
|
|
}
|
|
}
|
|
}
|