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

18 lines
500 B
C#

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