コード例 #1
0
ファイル: GameCreator.cs プロジェクト: Jonsevc/mooege
        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();
        }
コード例 #2
0
ファイル: ChannelManager.cs プロジェクト: alvarotg/mooege
 public static void AddGameChannel(Channel channel)
 {
     Channels.Add(channel.DynamicId, channel);
 }
コード例 #3
0
ファイル: ChannelManager.cs プロジェクト: alvarotg/mooege
 public static Channel CreateNewChannel(MooNetClient client, ulong remoteObjectId)
 {
     var channel = new Channel(client, remoteObjectId);
     Channels.Add(channel.DynamicId, channel);
     return channel;
 }
コード例 #4
0
ファイル: GameCreatorManager.cs プロジェクト: rosebud/mooege
        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;
        }