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(); }
public Player(ServerProgram server, int clientVersion) { this.gameManager = server; this.ClientVersion = clientVersion; this.Id = Interlocked.Increment(ref PlayerCounter); }