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(); }
public static void AddGameChannel(Channel channel) { Channels.Add(channel.DynamicId, channel); }
public static Channel CreateNewChannel(MooNetClient client, ulong remoteObjectId) { var channel = new Channel(client, remoteObjectId); Channels.Add(channel.DynamicId, channel); return channel; }
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; }