Example #1
0
 /// <summary>Creates a new remote client, which can connect to remote games.</summary>
 /// <param name="game">The game to create the client for.</param>
 public GameClient(Program game)
     : base(game)
 {
     Controller = ControllerFactory.CreateRemoteClient(game);
 }
Example #2
0
 /// <summary>Creates a new local client, which will be coupled to the given server.</summary>
 /// <param name="game">The game to create the client for.</param>
 /// <param name="server">The server to join.</param>
 public GameClient(Program game, GameServer server)
     : base(game)
 {
     Controller = ControllerFactory.CreateLocalClient(game, server.Controller);
 }