FunGame-Core/Library/Common/Event/ConnectEventArgs.cs
2023-04-01 13:09:32 +08:00

18 lines
494 B
C#

namespace Milimoe.FunGame.Core.Library.Common.Event
{
public class ConnectEventArgs : GeneralEventArgs
{
public string ServerIP { get; set; } = "";
public string ServerPort { get; set; } = "";
public ConnectEventArgs(params object[]? objs)
{
if (objs != null)
{
if (objs.Length > 0) ServerIP = (string)objs[0];
if (objs.Length > 1) ServerPort = (string)objs[1];
}
}
}
}