Пример #1
0
 public static void Update(GameServer server)
 {
     if (Commands.LineAvailable) {
         string Command = Commands.ReadLine();
         ProcessCommand(server, Command.ToLower());
     }
 }
Пример #2
0
 private static void ProcessCommand(GameServer server, string Command)
 {
     if (Command == "save") {
         Console.WriteLine("Saving Game...");
         server.Resources.Save();
         Console.WriteLine("Game Saved!");
     }
 }
Пример #3
0
 static void Main(string[] args)
 {
     GameServer Server = new GameServer();
     Server.Run();
 }