static void Main(string[] args) { Server.Server server = new Server.Server(); server.Initialize(); Console.WriteLine(); }
static void Main() { Console.SetWindowSize(80, 50); Log.Initialize(@"D:\Temp\BombermanLogs","Server.log"); Server server = new Server(); server.Initialize(); IBombermanService service = new BombermanService(server); Log.WriteLine(Log.LogLevels.Info, "Server Started at " + DateTime.Now.ToShortTimeString()); DumpHelp(); bool stop = false; while (!stop) { if (!Console.KeyAvailable) continue; ConsoleKeyInfo read = Console.ReadKey(true); switch (read.Key) { case ConsoleKey.M: //if (server.GameCreated != null && server.GameCreated.Map != null) // DumpMap(server.GameCreated.Map); //else Console.WriteLine("No map"); break; case ConsoleKey.P: DumpPlayers(server); break; case ConsoleKey.X: stop = true; break; default: DumpHelp(); break; } } }