Exemplo n.º 1
0
 public CGameSession(FreelancerGame g, IPacketConnection connection)
 {
     Game            = g;
     this.connection = connection;
     rpcServer       = new RemoteServerPlayer(connection, this);
     ResponseHandler = new NetResponseHandler();
 }
Exemplo n.º 2
0
 public Player(IPacketClient client, GameServer game, Guid playerGuid)
 {
     this.Client     = client;
     this.Game       = game;
     this.playerGuid = playerGuid;
     ID = Interlocked.Increment(ref _gid);
     ResponseHandler = new NetResponseHandler();
     rpcClient       = new RemoteClientPlayer(this);
 }