mirror of
https://github.com/project-redbud/FunGame-Core.git
synced 2025-12-05 08:09:02 +00:00
commit
6039b89241
@ -2,15 +2,15 @@
|
|||||||
{
|
{
|
||||||
public class ConnectEventArgs : GeneralEventArgs
|
public class ConnectEventArgs : GeneralEventArgs
|
||||||
{
|
{
|
||||||
public string ServerIP { get; set; } = "";
|
public string ServerIP { get; set; } = "127.0.0.1";
|
||||||
public string ServerPort { get; set; } = "";
|
public int ServerPort { get; set; } = 22222;
|
||||||
|
|
||||||
public ConnectEventArgs(params object[]? objs)
|
public ConnectEventArgs(params object[]? objs)
|
||||||
{
|
{
|
||||||
if (objs != null)
|
if (objs != null)
|
||||||
{
|
{
|
||||||
if (objs.Length > 0) ServerIP = (string)objs[0];
|
if (objs.Length > 0) ServerIP = (string)objs[0];
|
||||||
if (objs.Length > 1) ServerPort = (string)objs[1];
|
if (objs.Length > 1) ServerPort = (int)objs[1];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user