Ejemplo n.º 1
0
        public GameCreator(Channel channel)
        {
            this.Channel = channel;

            this.FactoryID = 14249086168335147635;
            this.BnetEntityId = bnet.protocol.EntityId.CreateBuilder().SetHigh((ulong)EntityIdHelper.HighIdType.GameId).SetLow(this.DynamicId).Build();
            this.GameHandle = bnet.protocol.game_master.GameHandle.CreateBuilder().SetFactoryId(this.FactoryID).SetGameId(this.BnetEntityId).Build();
        }
Ejemplo n.º 2
0
 public static void AddGameChannel(Channel channel)
 {
     Channels.Add(channel.DynamicId, channel);
 }
Ejemplo n.º 3
0
 public static Channel CreateNewChannel(MooNetClient client, ulong remoteObjectId)
 {
     var channel = new Channel(client, remoteObjectId);
     Channels.Add(channel.DynamicId, channel);
     return channel;
 }
Ejemplo n.º 4
0
        public static ulong RequestIdCounter = 0; // request Id counter for find game responses.

        public static GameCreator CreateGame(Channel channel)
        {
            var game = new GameCreator(channel);
            GameCreators.Add(game.DynamicId, game);
            return game;
        }