コード例 #1
0
        public override void JoinChannel(Google.ProtocolBuffers.IRpcController controller, bnet.protocol.channel.JoinChannelRequest request, System.Action <bnet.protocol.channel.JoinChannelResponse> done)
        {
            Logger.Trace("JoinChannel()");

            var builder = bnet.protocol.channel.JoinChannelResponse.CreateBuilder().SetObjectId(67122); // should be fixed with the actual joined channel object id.

            done(builder.Build());
        }
コード例 #2
0
ファイル: ChannelOwnerService.cs プロジェクト: DZilli/mooege
        public override void JoinChannel(Google.ProtocolBuffers.IRpcController controller, bnet.protocol.channel.JoinChannelRequest request, System.Action <bnet.protocol.channel.JoinChannelResponse> done)
        {
            Logger.Warn("ChannelOwnerService:JoinChannel()");

            var channel = ChannelManager.GetChannelByEntityId(request.ChannelId);

            channel.Join(this.Client, request.ObjectId);
            var builder = bnet.protocol.channel.JoinChannelResponse.CreateBuilder().SetObjectId(channel.DynamicId);

            done(builder.Build());
        }
コード例 #3
0
 public override void JoinChannel(Google.ProtocolBuffers.IRpcController controller, bnet.protocol.channel.JoinChannelRequest request, System.Action <bnet.protocol.channel.JoinChannelResponse> done)
 {
     Logger.Trace("JoinChannel()");
     throw new NotImplementedException();
 }