Example #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());
        }
Example #2
0
        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());
        }
Example #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();
 }