Example #1
0
        private static void Main(string[] args)
        {
            bool amService = false;

            if (args.Length > 0)
            {
                bool.TryParse(args[0], out amService);
            }

            ServerProgram server = new ServerProgram(amService);

            server.Run();
        }
Example #2
0
 public Player(ServerProgram server, int clientVersion)
 {
     this.gameManager   = server;
     this.ClientVersion = clientVersion;
     this.Id            = Interlocked.Increment(ref PlayerCounter);
 }