Exemple #1
0
        public override void GetChannelInfo(Google.ProtocolBuffers.IRpcController controller, bnet.protocol.channel.GetChannelInfoRequest request, System.Action <bnet.protocol.channel.GetChannelInfoResponse> done)
        {
            Logger.Trace("GetChannelInfoRequest() to channel {0}:{1} by toon {2}", request.ChannelId.High, request.ChannelId.Low, Client.Account.CurrentGameAccount.CurrentToon.HeroNameField.Value);

            var builder = bnet.protocol.channel.GetChannelInfoResponse.CreateBuilder();
            var channel = ChannelManager.GetChannelByEntityId(request.ChannelId);

            if (channel != null)
            {
                builder.SetChannelInfo(channel.Info);
            }
            else
            {
                Logger.Warn("Channel does not exist!");
            }

            done(builder.Build());
        }
 public override void GetChannelInfo(Google.ProtocolBuffers.IRpcController controller, bnet.protocol.channel.GetChannelInfoRequest request, System.Action <bnet.protocol.channel.GetChannelInfoResponse> done)
 {
     throw new NotImplementedException();
 }