Ejemplo n.º 1
0
        public override void JoinGame(IRpcController controller, bnet.protocol.game_master.JoinGameRequest request, Action <bnet.protocol.game_master.JoinGameResponse> done)
        {
            Logger.Trace("Client {0} attempted to join game {1}.", this.Client, request.GameHandle.GameId.Low);
            //var game = GameFactoryManager.FindGameByEntityId(request.GameHandle.GameId);

            var builder = bnet.protocol.game_master.JoinGameResponse.CreateBuilder();

            //.AddConnectInfo(game.GetConnectionInfoForClient(this.Client));

            done(builder.Build());
            //throw new NotImplementedException();
        }
Ejemplo n.º 2
0
 public override void JoinGame(IRpcController controller, bnet.protocol.game_master.JoinGameRequest request, Action <bnet.protocol.game_master.JoinGameResponse> done)
 {
     throw new NotImplementedException();
 }
Ejemplo n.º 3
0
        public static GameFactory JoinGame(LogNetClient client, bnet.protocol.game_master.JoinGameRequest request, ulong requetId)
        {
            var game = FindGameByEntityId(request.GameHandle.GameId);

            return(game);
        }