mirror of
https://github.com/project-redbud/FunGame-Core.git
synced 2025-04-22 20:19:34 +08:00
19 lines
624 B
C#
19 lines
624 B
C#
using Milimoe.FunGame.Core.Library.Constant;
|
|
|
|
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 ConnectResult ConnectResult { get; set; } = ConnectResult.Success;
|
|
|
|
public ConnectEventArgs(string ip = "", int port = 0, ConnectResult result = ConnectResult.Success)
|
|
{
|
|
if (ip.Trim() != "") ServerIP = ip;
|
|
if (port != 0) ServerPort = port;
|
|
ConnectResult = result;
|
|
}
|
|
}
|
|
}
|