NoSugarNet/Sample/NoSugarNet.ServerCli/Program.cs
2024-01-23 17:06:47 +08:00

24 lines
551 B
C#

using ServerCore.Manager;
namespace NoSugarNet.ServerCli
{
internal class Program
{
static void Main(string[] args)
{
Console.ForegroundColor = ConsoleColor.Green;
if (!Config.LoadConfig())
{
Console.WriteLine("配置文件错误");
Console.ReadLine();
return;
}
ServerManager.InitServer(1000,Config.Cfgs);
while (true)
{
Console.ReadLine();
}
}
}
}