コード例 #1
0
ファイル: ChannelOwnerService.cs プロジェクト: DZilli/mooege
        public override void CreateChannel(Google.ProtocolBuffers.IRpcController controller, bnet.protocol.channel.CreateChannelRequest request, System.Action <bnet.protocol.channel.CreateChannelResponse> done)
        {
            var channel = ChannelManager.CreateNewChannel(this.Client, request.ObjectId);
            var builder = bnet.protocol.channel.CreateChannelResponse.CreateBuilder()
                          .SetObjectId(channel.DynamicId)
                          .SetChannelId(channel.BnetEntityId);

            Logger.Trace("CreateChannel() {0} for {1}", channel, Client.Account.CurrentGameAccount.CurrentToon);

            done(builder.Build());
            channel.SetOwner(Client); // Set the client that requested the creation of channel as the owner
        }
コード例 #2
0
 public override void CreateChannel(Google.ProtocolBuffers.IRpcController controller, bnet.protocol.channel.CreateChannelRequest request, System.Action <bnet.protocol.channel.CreateChannelResponse> done)
 {
     throw new NotImplementedException();
 }