HaoYueTunnel/Server/Program.cs

19 lines
516 B
C#
Raw Normal View History

2023-05-23 17:57:24 +08:00
using ServerCore;
ServerManager.InitServer(23846);
while (true)
{
string CommandStr = Console.ReadLine();
string Command = "";
Command = ((CommandStr.IndexOf(" ") <= 0) ? CommandStr : CommandStr.Substring(0, CommandStr.IndexOf(" ")));
switch (Command)
{
case "list":
2023-05-25 13:24:51 +08:00
Console.WriteLine("当前在线:" + ServerManager.g_ClientMgr.GetOnlineClient());
2023-05-23 17:57:24 +08:00
break;
default:
Console.WriteLine("未知命令" + CommandStr);
break;
}
}