static void test1() { var c = new BaseLoginTest(); var userName = Guid.NewGuid().ToString().Substring(0, 4); c.Start(userName, "111"); }
private static void Main(string[] args) { Logs.AddConsoleAppender(); GameServerService.StartTaskThread(); var c = new BaseLoginTest(); var userName = Guid.NewGuid().ToString().Substring(0, 4); c.Start(userName, "111"); while (true) { if (Console.ReadKey(false).Key == ConsoleKey.Escape) break; Thread.Sleep(100); } GameServerService.RunType = ServerStateType.Closing; }