// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: common.proto
#pragma warning disable 1591, 0612, 3021
#region Designer generated code
using pb = global::Google.Protobuf;
using pbc = global::Google.Protobuf.Collections;
using pbr = global::Google.Protobuf.Reflection;
using scg = global::System.Collections.Generic;
namespace Protobuf {
/// Holder for reflection information generated from common.proto
public static partial class CommonReflection {
#region Descriptor
/// File descriptor for common.proto
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static CommonReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"Cgxjb21tb24ucHJvdG8SCHByb3RvYnVmIjUKBkdlbU1zZxINCgVnZW1JZBgB",
"IAEoBRINCgVsZXZlbBgCIAEoBRINCgVjb3VudBgDIAEoBSL4AgoLVXNlckRh",
"dGFNc2cSEAoIdXNlcm5hbWUYASABKAkSEAoIbmlja25hbWUYAiABKAkSDwoH",
"aGVhZGltZxgDIAEoBRIRCglzaW5nYXR1cmUYBCABKAkSDQoFbGV2ZWwYBSAB",
"KAUSDAoEcmFuaxgGIAEoBRINCgVzY29yZRgHIAEoBRILCgNleHAYCCABKAUS",
"DQoFbW9uZXkYCSABKAUSDAoEZ29sZBgKIAEoBRIeCgRnZW1zGAsgAygLMhAu",
"cHJvdG9idWYuR2VtTXNnEhAKCGdlbWRlY2sxGAwgAygFEhAKCGdlbWRlY2sy",
"GA0gAygFEhAKCGdlbWRlY2szGA4gAygFEg4KBmRlY2tpZBgPIAEoBRIUCgxh",
"Y2NlcHRmcmllbmQYECABKAgSFAoMbmFtZWRjaGFuZ2VkGBEgASgIEg8KB2Fy",
"ZWFleHAYEiABKAUSKAoJYXJlYWJveGVzGBMgAygLMhUucHJvdG9idWYuQXJl",
"bmFCb3hNc2cinwEKCUZyaWVuZE1zZxIQCgh1c2VybmFtZRgBIAEoCRIQCghu",
"aWNrbmFtZRgCIAEoCRIPCgdoZWFkaW1nGAMgASgFEg0KBWxldmVsGAUgASgF",
"EgwKBHJhbmsYBiABKAUSDQoFc2NvcmUYByABKAUSDgoGb25saW5lGAggASgI",
"EiEKB2dlbWRlY2sYCSADKAsyEC5wcm90b2J1Zi5HZW1Nc2ciVgoMU3RvcmVB",
"cmVhTXNnEgoKAmlkGAEgASgFEhMKC3JlZnJlc2hUaW1lGAIgASgFEiUKBWl0",
"ZW1zGAMgAygLMhYucHJvdG9idWYuU3RvcmVJdGVtTXNnIiwKDFN0b3JlSXRl",
"bU1zZxIKCgJpZBgBIAEoBRIQCghidXlDb3VudBgCIAEoBSI4Cg1SZXdhcmRJ",
"dGVtTXNnEgwKBHR5cGUYASABKAUSCgoCaWQYAiABKAUSDQoFY291bnQYAyAB",
"KAUiPQoLQXJlbmFCb3hNc2cSCwoDcG9zGAEgASgFEg0KBWJveGlkGAIgASgF",
"EhIKCmV4cGlyZVRpbWUYAyABKAUqXAoIQ1VSUkVOQ1kSEgoOQ1VSUkVOQ1lf",
"QkVHSU4QABIJCgVNT05FWRABEggKBEdPTEQQAhIHCgNSTUIQAxIHCgNHRU0Q",
"BBIHCgNCT1gQBRIMCghBUkVOQUVYUBAGKiYKCUNoYW5uZWxJRBIRCg1DSEFO",
"TkVMX0JFR0lOEAASBgoCR00QASqNBQoJRXJyb3JDb2RlEgsKB1N1Y2Nlc3MQ",
"ABIVChFDaGFubmVsSWRfTm9FeGlzdBABEhQKEFVzZXJOYW1lX0ludmFsaWQQ",
"AhIYChRVc2VyUGFzc1dvcmRfSW52YWxpZBADEhAKDFVua25vd19FcnJvchAE",
"EhEKDUlucHV0X0ludmFsaWQQBRILCgdUaW1lb3V0EAYSFgoSU2Vzc2lvbktl",
"eV9JbnZhbGlkEAcSEAoMTG9naW5fTm9Vc2VyEAgSEwoPTm90RW5vdWdoX01v",
"bmV5EAkSEgoOTm90RW5vdWdoX0dvbGQQChIRCg1Ob3RFbm91Z2hfR2VtEAsS",
"EwoPTm90Rm91bmRfRnJpZW5kEAwSEgoOQWxyZWFkeV9GcmllbmQQDRISCg5J",
"bkJsb2NrX0ZyaWVuZBAOEg4KCk1heF9GcmllbmQQDxIQCgxNYXhfTmlja05h",
"bWUQEBIUChBJbnZhbGlkX05pY2tOYW1lEBESEgoOTWF4X1N0b3JlTGltaXQQ",
"EhIWChJOb3RFbm91Z2hfU3RvcmVCdXkQExIUChBOb3RPcGVuX1Bhc3NQb3J0",
"EBQSFAoQQWxyZWFkeV9QYXNzUG9ydBAVEhwKGE5lZWRWaXBfUGFzc1BvcnRU",
"YWtlSXRlbRAWEh4KGk5lZWRMZXZlbF9QYXNzUG9ydFRha2VJdGVtEBcSHAoY",
"QWxyZWFkeV9QYXNzUG9ydFRha2VJdGVtEBgSHAoYSW52YWxpZF9QYXNzUG9y",
"dEJ1eUxldmVsEBkSFgoSSGFzVW5sb2NrX0FyZW5hQm94EBoSGwoXT3RoZXJV",
"bmxvY2tpbmdfQXJlbmFCb3gQGxIYChROb3RUaW1lVGFrZV9BcmVuYUJveBAc",
"YgZwcm90bzM="));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { },
new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Protobuf.CURRENCY), typeof(global::Protobuf.ChannelID), typeof(global::Protobuf.ErrorCode), }, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::Protobuf.GemMsg), global::Protobuf.GemMsg.Parser, new[]{ "GemId", "Level", "Count" }, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Protobuf.UserDataMsg), global::Protobuf.UserDataMsg.Parser, new[]{ "Username", "Nickname", "Headimg", "Singature", "Level", "Rank", "Score", "Exp", "Money", "Gold", "Gems", "Gemdeck1", "Gemdeck2", "Gemdeck3", "Deckid", "Acceptfriend", "Namedchanged", "Areaexp", "Areaboxes" }, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Protobuf.FriendMsg), global::Protobuf.FriendMsg.Parser, new[]{ "Username", "Nickname", "Headimg", "Level", "Rank", "Score", "Online", "Gemdeck" }, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Protobuf.StoreAreaMsg), global::Protobuf.StoreAreaMsg.Parser, new[]{ "Id", "RefreshTime", "Items" }, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Protobuf.StoreItemMsg), global::Protobuf.StoreItemMsg.Parser, new[]{ "Id", "BuyCount" }, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Protobuf.RewardItemMsg), global::Protobuf.RewardItemMsg.Parser, new[]{ "Type", "Id", "Count" }, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Protobuf.ArenaBoxMsg), global::Protobuf.ArenaBoxMsg.Parser, new[]{ "Pos", "Boxid", "ExpireTime" }, null, null, null)
}));
}
#endregion
}
#region Enums
///
/// *货币类型
/// 在这里添加完毕后,还有到H_货币类型表.xlsx里面添加一行
///
public enum CURRENCY {
[pbr::OriginalName("CURRENCY_BEGIN")] Begin = 0,
///
/// *金币
///
[pbr::OriginalName("MONEY")] Money = 1,
///
/// *钻石
///
[pbr::OriginalName("GOLD")] Gold = 2,
///
/// RMB
///
[pbr::OriginalName("RMB")] Rmb = 3,
///
/// !卡牌
///
[pbr::OriginalName("GEM")] Gem = 4,
///
/// ! 宝箱
///
[pbr::OriginalName("BOX")] Box = 5,
///
/// !竞技场经验
///
[pbr::OriginalName("ARENAEXP")] Arenaexp = 6,
}
///
/// *
/// 渠道ID
///
public enum ChannelID {
[pbr::OriginalName("CHANNEL_BEGIN")] ChannelBegin = 0,
///
/// * 账号密码登录
///
[pbr::OriginalName("GM")] Gm = 1,
}
///
/// *
/// 错误代码,返回给客户端使用,
/// 中心服务器和登陆服务器都用这个表
///
public enum ErrorCode {
[pbr::OriginalName("Success")] Success = 0,
///
/// 渠道ID不存在
///
[pbr::OriginalName("ChannelId_NoExist")] ChannelIdNoExist = 1,
///
/// * 账号名太短
///
[pbr::OriginalName("UserName_Invalid")] UserNameInvalid = 2,
///
/// * 账号密码不正确
///
[pbr::OriginalName("UserPassWord_Invalid")] UserPassWordInvalid = 3,
///
/// * 内部错误
///
[pbr::OriginalName("Unknow_Error")] UnknowError = 4,
///
/// * 参数错误
///
[pbr::OriginalName("Input_Invalid")] InputInvalid = 5,
///
/// * 超时
///
[pbr::OriginalName("Timeout")] Timeout = 6,
///
/// * 登陆失败,SessionKey错误
///
[pbr::OriginalName("SessionKey_Invalid")] SessionKeyInvalid = 7,
///
/// *没有角色,请创建
///
[pbr::OriginalName("Login_NoUser")] LoginNoUser = 8,
///
/// *金币不足
///
[pbr::OriginalName("NotEnough_Money")] NotEnoughMoney = 9,
///
/// *钻石不足
///
[pbr::OriginalName("NotEnough_Gold")] NotEnoughGold = 10,
///
/// *宝石不足
///
[pbr::OriginalName("NotEnough_Gem")] NotEnoughGem = 11,
///
/// *好友没有找到
///
[pbr::OriginalName("NotFound_Friend")] NotFoundFriend = 12,
///
/// *已经是好友了
///
[pbr::OriginalName("Already_Friend")] AlreadyFriend = 13,
///
/// *黑名单不能添加好友
///
[pbr::OriginalName("InBlock_Friend")] InBlockFriend = 14,
///
/// *好友已经达到上限
///
[pbr::OriginalName("Max_Friend")] MaxFriend = 15,
///
/// 昵称大于最大长度
///
[pbr::OriginalName("Max_NickName")] MaxNickName = 16,
///
/// !昵称有非法字符
///
[pbr::OriginalName("Invalid_NickName")] InvalidNickName = 17,
///
/// !购买失败,超过最大限制
///
[pbr::OriginalName("Max_StoreLimit")] MaxStoreLimit = 18,
///
/// !购买失败,货币不足
///
[pbr::OriginalName("NotEnough_StoreBuy")] NotEnoughStoreBuy = 19,
///
/// !高级通行证购买失败,活动未开启
///
[pbr::OriginalName("NotOpen_PassPort")] NotOpenPassPort = 20,
///
/// !高级通行证购买失败,已经购买了
///
[pbr::OriginalName("Already_PassPort")] AlreadyPassPort = 21,
///
/// !领取通行证奖励失败,不是高级通行证
///
[pbr::OriginalName("NeedVip_PassPortTakeItem")] NeedVipPassPortTakeItem = 22,
///
/// !领取通行证奖励失败,等级不足
///
[pbr::OriginalName("NeedLevel_PassPortTakeItem")] NeedLevelPassPortTakeItem = 23,
///
/// !领取通行证奖励失败,已经领取了
///
[pbr::OriginalName("Already_PassPortTakeItem")] AlreadyPassPortTakeItem = 24,
///
/// !购买通行证等级失败,购买等级小于当前等级
///
[pbr::OriginalName("Invalid_PassPortBuyLevel")] InvalidPassPortBuyLevel = 25,
///
/// ! 解锁失败,已经解锁了
///
[pbr::OriginalName("HasUnlock_ArenaBox")] HasUnlockArenaBox = 26,
///
/// ! 解锁失败,另一个在解锁中
///
[pbr::OriginalName("OtherUnlocking_ArenaBox")] OtherUnlockingArenaBox = 27,
///
/// ! 开宝箱失败,时间没到
///
[pbr::OriginalName("NotTimeTake_ArenaBox")] NotTimeTakeArenaBox = 28,
}
#endregion
#region Messages
///
/// 宝石
///
public sealed partial class GemMsg : pb::IMessage {
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GemMsg());
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::Protobuf.CommonReflection.Descriptor.MessageTypes[0]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public GemMsg() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public GemMsg(GemMsg other) : this() {
gemId_ = other.gemId_;
level_ = other.level_;
count_ = other.count_;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public GemMsg Clone() {
return new GemMsg(this);
}
/// Field number for the "gemId" field.
public const int GemIdFieldNumber = 1;
private int gemId_;
///
/// *配表ID,也是宝石的唯一ID
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int GemId {
get { return gemId_; }
set {
gemId_ = value;
}
}
/// Field number for the "level" field.
public const int LevelFieldNumber = 2;
private int level_;
///
/// *宝石等级
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int Level {
get { return level_; }
set {
level_ = value;
}
}
/// Field number for the "count" field.
public const int CountFieldNumber = 3;
private int count_;
///
/// *宝石碎片个数
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int Count {
get { return count_; }
set {
count_ = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as GemMsg);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(GemMsg other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (GemId != other.GemId) return false;
if (Level != other.Level) return false;
if (Count != other.Count) return false;
return true;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (GemId != 0) hash ^= GemId.GetHashCode();
if (Level != 0) hash ^= Level.GetHashCode();
if (Count != 0) hash ^= Count.GetHashCode();
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void WriteTo(pb::CodedOutputStream output) {
if (GemId != 0) {
output.WriteRawTag(8);
output.WriteInt32(GemId);
}
if (Level != 0) {
output.WriteRawTag(16);
output.WriteInt32(Level);
}
if (Count != 0) {
output.WriteRawTag(24);
output.WriteInt32(Count);
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (GemId != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(GemId);
}
if (Level != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Level);
}
if (Count != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Count);
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(GemMsg other) {
if (other == null) {
return;
}
if (other.GemId != 0) {
GemId = other.GemId;
}
if (other.Level != 0) {
Level = other.Level;
}
if (other.Count != 0) {
Count = other.Count;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(pb::CodedInputStream input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
input.SkipLastField();
break;
case 8: {
GemId = input.ReadInt32();
break;
}
case 16: {
Level = input.ReadInt32();
break;
}
case 24: {
Count = input.ReadInt32();
break;
}
}
}
}
}
///
/// 玩家详细信息
///
public sealed partial class UserDataMsg : pb::IMessage {
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UserDataMsg());
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::Protobuf.CommonReflection.Descriptor.MessageTypes[1]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public UserDataMsg() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public UserDataMsg(UserDataMsg other) : this() {
username_ = other.username_;
nickname_ = other.nickname_;
headimg_ = other.headimg_;
singature_ = other.singature_;
level_ = other.level_;
rank_ = other.rank_;
score_ = other.score_;
exp_ = other.exp_;
money_ = other.money_;
gold_ = other.gold_;
gems_ = other.gems_.Clone();
gemdeck1_ = other.gemdeck1_.Clone();
gemdeck2_ = other.gemdeck2_.Clone();
gemdeck3_ = other.gemdeck3_.Clone();
deckid_ = other.deckid_;
acceptfriend_ = other.acceptfriend_;
namedchanged_ = other.namedchanged_;
areaexp_ = other.areaexp_;
areaboxes_ = other.areaboxes_.Clone();
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public UserDataMsg Clone() {
return new UserDataMsg(this);
}
/// Field number for the "username" field.
public const int UsernameFieldNumber = 1;
private string username_ = "";
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public string Username {
get { return username_; }
set {
username_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// Field number for the "nickname" field.
public const int NicknameFieldNumber = 2;
private string nickname_ = "";
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public string Nickname {
get { return nickname_; }
set {
nickname_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// Field number for the "headimg" field.
public const int HeadimgFieldNumber = 3;
private int headimg_;
///
/// bool gender =3;
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int Headimg {
get { return headimg_; }
set {
headimg_ = value;
}
}
/// Field number for the "singature" field.
public const int SingatureFieldNumber = 4;
private string singature_ = "";
///
/// 签名
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public string Singature {
get { return singature_; }
set {
singature_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// Field number for the "level" field.
public const int LevelFieldNumber = 5;
private int level_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int Level {
get { return level_; }
set {
level_ = value;
}
}
/// Field number for the "rank" field.
public const int RankFieldNumber = 6;
private int rank_;
///
/// 段位
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int Rank {
get { return rank_; }
set {
rank_ = value;
}
}
/// Field number for the "score" field.
public const int ScoreFieldNumber = 7;
private int score_;
///
/// 分数
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int Score {
get { return score_; }
set {
score_ = value;
}
}
/// Field number for the "exp" field.
public const int ExpFieldNumber = 8;
private int exp_;
///
/// !经验
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int Exp {
get { return exp_; }
set {
exp_ = value;
}
}
/// Field number for the "money" field.
public const int MoneyFieldNumber = 9;
private int money_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int Money {
get { return money_; }
set {
money_ = value;
}
}
/// Field number for the "gold" field.
public const int GoldFieldNumber = 10;
private int gold_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int Gold {
get { return gold_; }
set {
gold_ = value;
}
}
/// Field number for the "gems" field.
public const int GemsFieldNumber = 11;
private static readonly pb::FieldCodec _repeated_gems_codec
= pb::FieldCodec.ForMessage(90, global::Protobuf.GemMsg.Parser);
private readonly pbc::RepeatedField gems_ = new pbc::RepeatedField();
///
/// *已有宝石列表
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public pbc::RepeatedField Gems {
get { return gems_; }
}
/// Field number for the "gemdeck1" field.
public const int Gemdeck1FieldNumber = 12;
private static readonly pb::FieldCodec _repeated_gemdeck1_codec
= pb::FieldCodec.ForInt32(98);
private readonly pbc::RepeatedField gemdeck1_ = new pbc::RepeatedField();
///
/// 编队
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public pbc::RepeatedField Gemdeck1 {
get { return gemdeck1_; }
}
/// Field number for the "gemdeck2" field.
public const int Gemdeck2FieldNumber = 13;
private static readonly pb::FieldCodec _repeated_gemdeck2_codec
= pb::FieldCodec.ForInt32(106);
private readonly pbc::RepeatedField gemdeck2_ = new pbc::RepeatedField();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public pbc::RepeatedField Gemdeck2 {
get { return gemdeck2_; }
}
/// Field number for the "gemdeck3" field.
public const int Gemdeck3FieldNumber = 14;
private static readonly pb::FieldCodec _repeated_gemdeck3_codec
= pb::FieldCodec.ForInt32(114);
private readonly pbc::RepeatedField gemdeck3_ = new pbc::RepeatedField();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public pbc::RepeatedField Gemdeck3 {
get { return gemdeck3_; }
}
/// Field number for the "deckid" field.
public const int DeckidFieldNumber = 15;
private int deckid_;
///
/// 默认编队索引0,1,2
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int Deckid {
get { return deckid_; }
set {
deckid_ = value;
}
}
/// Field number for the "acceptfriend" field.
public const int AcceptfriendFieldNumber = 16;
private bool acceptfriend_;
///
/// 是否接受好友申请
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Acceptfriend {
get { return acceptfriend_; }
set {
acceptfriend_ = value;
}
}
/// Field number for the "namedchanged" field.
public const int NamedchangedFieldNumber = 17;
private bool namedchanged_;
///
/// true 表示改过名字,false没有改过
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Namedchanged {
get { return namedchanged_; }
set {
namedchanged_ = value;
}
}
/// Field number for the "areaexp" field.
public const int AreaexpFieldNumber = 18;
private int areaexp_;
///
/// !竞技场经验
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int Areaexp {
get { return areaexp_; }
set {
areaexp_ = value;
}
}
/// Field number for the "areaboxes" field.
public const int AreaboxesFieldNumber = 19;
private static readonly pb::FieldCodec _repeated_areaboxes_codec
= pb::FieldCodec.ForMessage(154, global::Protobuf.ArenaBoxMsg.Parser);
private readonly pbc::RepeatedField areaboxes_ = new pbc::RepeatedField();
///
/// !竞技宝箱列表
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public pbc::RepeatedField Areaboxes {
get { return areaboxes_; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as UserDataMsg);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(UserDataMsg other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (Username != other.Username) return false;
if (Nickname != other.Nickname) return false;
if (Headimg != other.Headimg) return false;
if (Singature != other.Singature) return false;
if (Level != other.Level) return false;
if (Rank != other.Rank) return false;
if (Score != other.Score) return false;
if (Exp != other.Exp) return false;
if (Money != other.Money) return false;
if (Gold != other.Gold) return false;
if(!gems_.Equals(other.gems_)) return false;
if(!gemdeck1_.Equals(other.gemdeck1_)) return false;
if(!gemdeck2_.Equals(other.gemdeck2_)) return false;
if(!gemdeck3_.Equals(other.gemdeck3_)) return false;
if (Deckid != other.Deckid) return false;
if (Acceptfriend != other.Acceptfriend) return false;
if (Namedchanged != other.Namedchanged) return false;
if (Areaexp != other.Areaexp) return false;
if(!areaboxes_.Equals(other.areaboxes_)) return false;
return true;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (Username.Length != 0) hash ^= Username.GetHashCode();
if (Nickname.Length != 0) hash ^= Nickname.GetHashCode();
if (Headimg != 0) hash ^= Headimg.GetHashCode();
if (Singature.Length != 0) hash ^= Singature.GetHashCode();
if (Level != 0) hash ^= Level.GetHashCode();
if (Rank != 0) hash ^= Rank.GetHashCode();
if (Score != 0) hash ^= Score.GetHashCode();
if (Exp != 0) hash ^= Exp.GetHashCode();
if (Money != 0) hash ^= Money.GetHashCode();
if (Gold != 0) hash ^= Gold.GetHashCode();
hash ^= gems_.GetHashCode();
hash ^= gemdeck1_.GetHashCode();
hash ^= gemdeck2_.GetHashCode();
hash ^= gemdeck3_.GetHashCode();
if (Deckid != 0) hash ^= Deckid.GetHashCode();
if (Acceptfriend != false) hash ^= Acceptfriend.GetHashCode();
if (Namedchanged != false) hash ^= Namedchanged.GetHashCode();
if (Areaexp != 0) hash ^= Areaexp.GetHashCode();
hash ^= areaboxes_.GetHashCode();
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void WriteTo(pb::CodedOutputStream output) {
if (Username.Length != 0) {
output.WriteRawTag(10);
output.WriteString(Username);
}
if (Nickname.Length != 0) {
output.WriteRawTag(18);
output.WriteString(Nickname);
}
if (Headimg != 0) {
output.WriteRawTag(24);
output.WriteInt32(Headimg);
}
if (Singature.Length != 0) {
output.WriteRawTag(34);
output.WriteString(Singature);
}
if (Level != 0) {
output.WriteRawTag(40);
output.WriteInt32(Level);
}
if (Rank != 0) {
output.WriteRawTag(48);
output.WriteInt32(Rank);
}
if (Score != 0) {
output.WriteRawTag(56);
output.WriteInt32(Score);
}
if (Exp != 0) {
output.WriteRawTag(64);
output.WriteInt32(Exp);
}
if (Money != 0) {
output.WriteRawTag(72);
output.WriteInt32(Money);
}
if (Gold != 0) {
output.WriteRawTag(80);
output.WriteInt32(Gold);
}
gems_.WriteTo(output, _repeated_gems_codec);
gemdeck1_.WriteTo(output, _repeated_gemdeck1_codec);
gemdeck2_.WriteTo(output, _repeated_gemdeck2_codec);
gemdeck3_.WriteTo(output, _repeated_gemdeck3_codec);
if (Deckid != 0) {
output.WriteRawTag(120);
output.WriteInt32(Deckid);
}
if (Acceptfriend != false) {
output.WriteRawTag(128, 1);
output.WriteBool(Acceptfriend);
}
if (Namedchanged != false) {
output.WriteRawTag(136, 1);
output.WriteBool(Namedchanged);
}
if (Areaexp != 0) {
output.WriteRawTag(144, 1);
output.WriteInt32(Areaexp);
}
areaboxes_.WriteTo(output, _repeated_areaboxes_codec);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (Username.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Username);
}
if (Nickname.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Nickname);
}
if (Headimg != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Headimg);
}
if (Singature.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Singature);
}
if (Level != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Level);
}
if (Rank != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Rank);
}
if (Score != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Score);
}
if (Exp != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Exp);
}
if (Money != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Money);
}
if (Gold != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Gold);
}
size += gems_.CalculateSize(_repeated_gems_codec);
size += gemdeck1_.CalculateSize(_repeated_gemdeck1_codec);
size += gemdeck2_.CalculateSize(_repeated_gemdeck2_codec);
size += gemdeck3_.CalculateSize(_repeated_gemdeck3_codec);
if (Deckid != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Deckid);
}
if (Acceptfriend != false) {
size += 2 + 1;
}
if (Namedchanged != false) {
size += 2 + 1;
}
if (Areaexp != 0) {
size += 2 + pb::CodedOutputStream.ComputeInt32Size(Areaexp);
}
size += areaboxes_.CalculateSize(_repeated_areaboxes_codec);
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(UserDataMsg other) {
if (other == null) {
return;
}
if (other.Username.Length != 0) {
Username = other.Username;
}
if (other.Nickname.Length != 0) {
Nickname = other.Nickname;
}
if (other.Headimg != 0) {
Headimg = other.Headimg;
}
if (other.Singature.Length != 0) {
Singature = other.Singature;
}
if (other.Level != 0) {
Level = other.Level;
}
if (other.Rank != 0) {
Rank = other.Rank;
}
if (other.Score != 0) {
Score = other.Score;
}
if (other.Exp != 0) {
Exp = other.Exp;
}
if (other.Money != 0) {
Money = other.Money;
}
if (other.Gold != 0) {
Gold = other.Gold;
}
gems_.Add(other.gems_);
gemdeck1_.Add(other.gemdeck1_);
gemdeck2_.Add(other.gemdeck2_);
gemdeck3_.Add(other.gemdeck3_);
if (other.Deckid != 0) {
Deckid = other.Deckid;
}
if (other.Acceptfriend != false) {
Acceptfriend = other.Acceptfriend;
}
if (other.Namedchanged != false) {
Namedchanged = other.Namedchanged;
}
if (other.Areaexp != 0) {
Areaexp = other.Areaexp;
}
areaboxes_.Add(other.areaboxes_);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(pb::CodedInputStream input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
input.SkipLastField();
break;
case 10: {
Username = input.ReadString();
break;
}
case 18: {
Nickname = input.ReadString();
break;
}
case 24: {
Headimg = input.ReadInt32();
break;
}
case 34: {
Singature = input.ReadString();
break;
}
case 40: {
Level = input.ReadInt32();
break;
}
case 48: {
Rank = input.ReadInt32();
break;
}
case 56: {
Score = input.ReadInt32();
break;
}
case 64: {
Exp = input.ReadInt32();
break;
}
case 72: {
Money = input.ReadInt32();
break;
}
case 80: {
Gold = input.ReadInt32();
break;
}
case 90: {
gems_.AddEntriesFrom(input, _repeated_gems_codec);
break;
}
case 98:
case 96: {
gemdeck1_.AddEntriesFrom(input, _repeated_gemdeck1_codec);
break;
}
case 106:
case 104: {
gemdeck2_.AddEntriesFrom(input, _repeated_gemdeck2_codec);
break;
}
case 114:
case 112: {
gemdeck3_.AddEntriesFrom(input, _repeated_gemdeck3_codec);
break;
}
case 120: {
Deckid = input.ReadInt32();
break;
}
case 128: {
Acceptfriend = input.ReadBool();
break;
}
case 136: {
Namedchanged = input.ReadBool();
break;
}
case 144: {
Areaexp = input.ReadInt32();
break;
}
case 154: {
areaboxes_.AddEntriesFrom(input, _repeated_areaboxes_codec);
break;
}
}
}
}
}
///
/// *好友信息
///
public sealed partial class FriendMsg : pb::IMessage {
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FriendMsg());
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::Protobuf.CommonReflection.Descriptor.MessageTypes[2]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public FriendMsg() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public FriendMsg(FriendMsg other) : this() {
username_ = other.username_;
nickname_ = other.nickname_;
headimg_ = other.headimg_;
level_ = other.level_;
rank_ = other.rank_;
score_ = other.score_;
online_ = other.online_;
gemdeck_ = other.gemdeck_.Clone();
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public FriendMsg Clone() {
return new FriendMsg(this);
}
/// Field number for the "username" field.
public const int UsernameFieldNumber = 1;
private string username_ = "";
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public string Username {
get { return username_; }
set {
username_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// Field number for the "nickname" field.
public const int NicknameFieldNumber = 2;
private string nickname_ = "";
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public string Nickname {
get { return nickname_; }
set {
nickname_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// Field number for the "headimg" field.
public const int HeadimgFieldNumber = 3;
private int headimg_;
///
/// bool gender =3;
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int Headimg {
get { return headimg_; }
set {
headimg_ = value;
}
}
/// Field number for the "level" field.
public const int LevelFieldNumber = 5;
private int level_;
///
/// string singature =4;
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int Level {
get { return level_; }
set {
level_ = value;
}
}
/// Field number for the "rank" field.
public const int RankFieldNumber = 6;
private int rank_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int Rank {
get { return rank_; }
set {
rank_ = value;
}
}
/// Field number for the "score" field.
public const int ScoreFieldNumber = 7;
private int score_;
///
/// 分数
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int Score {
get { return score_; }
set {
score_ = value;
}
}
/// Field number for the "online" field.
public const int OnlineFieldNumber = 8;
private bool online_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Online {
get { return online_; }
set {
online_ = value;
}
}
/// Field number for the "gemdeck" field.
public const int GemdeckFieldNumber = 9;
private static readonly pb::FieldCodec _repeated_gemdeck_codec
= pb::FieldCodec.ForMessage(74, global::Protobuf.GemMsg.Parser);
private readonly pbc::RepeatedField gemdeck_ = new pbc::RepeatedField();
///
/// 玩家当前的编组
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public pbc::RepeatedField Gemdeck {
get { return gemdeck_; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as FriendMsg);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(FriendMsg other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (Username != other.Username) return false;
if (Nickname != other.Nickname) return false;
if (Headimg != other.Headimg) return false;
if (Level != other.Level) return false;
if (Rank != other.Rank) return false;
if (Score != other.Score) return false;
if (Online != other.Online) return false;
if(!gemdeck_.Equals(other.gemdeck_)) return false;
return true;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (Username.Length != 0) hash ^= Username.GetHashCode();
if (Nickname.Length != 0) hash ^= Nickname.GetHashCode();
if (Headimg != 0) hash ^= Headimg.GetHashCode();
if (Level != 0) hash ^= Level.GetHashCode();
if (Rank != 0) hash ^= Rank.GetHashCode();
if (Score != 0) hash ^= Score.GetHashCode();
if (Online != false) hash ^= Online.GetHashCode();
hash ^= gemdeck_.GetHashCode();
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void WriteTo(pb::CodedOutputStream output) {
if (Username.Length != 0) {
output.WriteRawTag(10);
output.WriteString(Username);
}
if (Nickname.Length != 0) {
output.WriteRawTag(18);
output.WriteString(Nickname);
}
if (Headimg != 0) {
output.WriteRawTag(24);
output.WriteInt32(Headimg);
}
if (Level != 0) {
output.WriteRawTag(40);
output.WriteInt32(Level);
}
if (Rank != 0) {
output.WriteRawTag(48);
output.WriteInt32(Rank);
}
if (Score != 0) {
output.WriteRawTag(56);
output.WriteInt32(Score);
}
if (Online != false) {
output.WriteRawTag(64);
output.WriteBool(Online);
}
gemdeck_.WriteTo(output, _repeated_gemdeck_codec);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (Username.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Username);
}
if (Nickname.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Nickname);
}
if (Headimg != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Headimg);
}
if (Level != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Level);
}
if (Rank != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Rank);
}
if (Score != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Score);
}
if (Online != false) {
size += 1 + 1;
}
size += gemdeck_.CalculateSize(_repeated_gemdeck_codec);
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(FriendMsg other) {
if (other == null) {
return;
}
if (other.Username.Length != 0) {
Username = other.Username;
}
if (other.Nickname.Length != 0) {
Nickname = other.Nickname;
}
if (other.Headimg != 0) {
Headimg = other.Headimg;
}
if (other.Level != 0) {
Level = other.Level;
}
if (other.Rank != 0) {
Rank = other.Rank;
}
if (other.Score != 0) {
Score = other.Score;
}
if (other.Online != false) {
Online = other.Online;
}
gemdeck_.Add(other.gemdeck_);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(pb::CodedInputStream input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
input.SkipLastField();
break;
case 10: {
Username = input.ReadString();
break;
}
case 18: {
Nickname = input.ReadString();
break;
}
case 24: {
Headimg = input.ReadInt32();
break;
}
case 40: {
Level = input.ReadInt32();
break;
}
case 48: {
Rank = input.ReadInt32();
break;
}
case 56: {
Score = input.ReadInt32();
break;
}
case 64: {
Online = input.ReadBool();
break;
}
case 74: {
gemdeck_.AddEntriesFrom(input, _repeated_gemdeck_codec);
break;
}
}
}
}
}
///
/// 商店大区
///
public sealed partial class StoreAreaMsg : pb::IMessage {
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StoreAreaMsg());
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::Protobuf.CommonReflection.Descriptor.MessageTypes[3]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public StoreAreaMsg() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public StoreAreaMsg(StoreAreaMsg other) : this() {
id_ = other.id_;
refreshTime_ = other.refreshTime_;
items_ = other.items_.Clone();
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public StoreAreaMsg Clone() {
return new StoreAreaMsg(this);
}
/// Field number for the "id" field.
public const int IdFieldNumber = 1;
private int id_;
///
/// !storearea配表里面的大区id
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int Id {
get { return id_; }
set {
id_ = value;
}
}
/// Field number for the "refreshTime" field.
public const int RefreshTimeFieldNumber = 2;
private int refreshTime_;
///
/// UNIX时间戳,单位秒。如果为0-不显示刷新,否则表示在指定的时刻刷新.
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int RefreshTime {
get { return refreshTime_; }
set {
refreshTime_ = value;
}
}
/// Field number for the "items" field.
public const int ItemsFieldNumber = 3;
private static readonly pb::FieldCodec _repeated_items_codec
= pb::FieldCodec.ForMessage(26, global::Protobuf.StoreItemMsg.Parser);
private readonly pbc::RepeatedField items_ = new pbc::RepeatedField();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public pbc::RepeatedField Items {
get { return items_; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as StoreAreaMsg);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(StoreAreaMsg other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (Id != other.Id) return false;
if (RefreshTime != other.RefreshTime) return false;
if(!items_.Equals(other.items_)) return false;
return true;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (Id != 0) hash ^= Id.GetHashCode();
if (RefreshTime != 0) hash ^= RefreshTime.GetHashCode();
hash ^= items_.GetHashCode();
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void WriteTo(pb::CodedOutputStream output) {
if (Id != 0) {
output.WriteRawTag(8);
output.WriteInt32(Id);
}
if (RefreshTime != 0) {
output.WriteRawTag(16);
output.WriteInt32(RefreshTime);
}
items_.WriteTo(output, _repeated_items_codec);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (Id != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id);
}
if (RefreshTime != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(RefreshTime);
}
size += items_.CalculateSize(_repeated_items_codec);
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(StoreAreaMsg other) {
if (other == null) {
return;
}
if (other.Id != 0) {
Id = other.Id;
}
if (other.RefreshTime != 0) {
RefreshTime = other.RefreshTime;
}
items_.Add(other.items_);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(pb::CodedInputStream input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
input.SkipLastField();
break;
case 8: {
Id = input.ReadInt32();
break;
}
case 16: {
RefreshTime = input.ReadInt32();
break;
}
case 26: {
items_.AddEntriesFrom(input, _repeated_items_codec);
break;
}
}
}
}
}
///
/// !商店名字
///
public sealed partial class StoreItemMsg : pb::IMessage {
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StoreItemMsg());
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::Protobuf.CommonReflection.Descriptor.MessageTypes[4]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public StoreItemMsg() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public StoreItemMsg(StoreItemMsg other) : this() {
id_ = other.id_;
buyCount_ = other.buyCount_;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public StoreItemMsg Clone() {
return new StoreItemMsg(this);
}
/// Field number for the "id" field.
public const int IdFieldNumber = 1;
private int id_;
///
/// store表ID
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int Id {
get { return id_; }
set {
id_ = value;
}
}
/// Field number for the "buyCount" field.
public const int BuyCountFieldNumber = 2;
private int buyCount_;
///
/// 如果是限时大区,表示购买个数,
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int BuyCount {
get { return buyCount_; }
set {
buyCount_ = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as StoreItemMsg);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(StoreItemMsg other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (Id != other.Id) return false;
if (BuyCount != other.BuyCount) return false;
return true;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (Id != 0) hash ^= Id.GetHashCode();
if (BuyCount != 0) hash ^= BuyCount.GetHashCode();
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void WriteTo(pb::CodedOutputStream output) {
if (Id != 0) {
output.WriteRawTag(8);
output.WriteInt32(Id);
}
if (BuyCount != 0) {
output.WriteRawTag(16);
output.WriteInt32(BuyCount);
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (Id != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id);
}
if (BuyCount != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(BuyCount);
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(StoreItemMsg other) {
if (other == null) {
return;
}
if (other.Id != 0) {
Id = other.Id;
}
if (other.BuyCount != 0) {
BuyCount = other.BuyCount;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(pb::CodedInputStream input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
input.SkipLastField();
break;
case 8: {
Id = input.ReadInt32();
break;
}
case 16: {
BuyCount = input.ReadInt32();
break;
}
}
}
}
}
///
/// !物品奖励结构体
///
public sealed partial class RewardItemMsg : pb::IMessage {
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RewardItemMsg());
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::Protobuf.CommonReflection.Descriptor.MessageTypes[5]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public RewardItemMsg() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public RewardItemMsg(RewardItemMsg other) : this() {
type_ = other.type_;
id_ = other.id_;
count_ = other.count_;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public RewardItemMsg Clone() {
return new RewardItemMsg(this);
}
/// Field number for the "type" field.
public const int TypeFieldNumber = 1;
private int type_;
///
/// @see CURRENCY
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int Type {
get { return type_; }
set {
type_ = value;
}
}
/// Field number for the "id" field.
public const int IdFieldNumber = 2;
private int id_;
///
/// !如果是gem表示卡牌id
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int Id {
get { return id_; }
set {
id_ = value;
}
}
/// Field number for the "count" field.
public const int CountFieldNumber = 3;
private int count_;
///
/// !货币或卡牌个数
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int Count {
get { return count_; }
set {
count_ = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as RewardItemMsg);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(RewardItemMsg other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (Type != other.Type) return false;
if (Id != other.Id) return false;
if (Count != other.Count) return false;
return true;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (Type != 0) hash ^= Type.GetHashCode();
if (Id != 0) hash ^= Id.GetHashCode();
if (Count != 0) hash ^= Count.GetHashCode();
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void WriteTo(pb::CodedOutputStream output) {
if (Type != 0) {
output.WriteRawTag(8);
output.WriteInt32(Type);
}
if (Id != 0) {
output.WriteRawTag(16);
output.WriteInt32(Id);
}
if (Count != 0) {
output.WriteRawTag(24);
output.WriteInt32(Count);
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (Type != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Type);
}
if (Id != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id);
}
if (Count != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Count);
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(RewardItemMsg other) {
if (other == null) {
return;
}
if (other.Type != 0) {
Type = other.Type;
}
if (other.Id != 0) {
Id = other.Id;
}
if (other.Count != 0) {
Count = other.Count;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(pb::CodedInputStream input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
input.SkipLastField();
break;
case 8: {
Type = input.ReadInt32();
break;
}
case 16: {
Id = input.ReadInt32();
break;
}
case 24: {
Count = input.ReadInt32();
break;
}
}
}
}
}
///
/// !竞技场掉落的宝箱,可以用时间解锁,或者钻石购买
///
public sealed partial class ArenaBoxMsg : pb::IMessage {
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ArenaBoxMsg());
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::Protobuf.CommonReflection.Descriptor.MessageTypes[6]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public ArenaBoxMsg() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public ArenaBoxMsg(ArenaBoxMsg other) : this() {
pos_ = other.pos_;
boxid_ = other.boxid_;
expireTime_ = other.expireTime_;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public ArenaBoxMsg Clone() {
return new ArenaBoxMsg(this);
}
/// Field number for the "pos" field.
public const int PosFieldNumber = 1;
private int pos_;
///
/// ! 宝箱位置0,1,2,3 四个值
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int Pos {
get { return pos_; }
set {
pos_ = value;
}
}
/// Field number for the "boxid" field.
public const int BoxidFieldNumber = 2;
private int boxid_;
///
/// !@see box 表示宝箱id
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int Boxid {
get { return boxid_; }
set {
boxid_ = value;
}
}
/// Field number for the "expireTime" field.
public const int ExpireTimeFieldNumber = 3;
private int expireTime_;
///
/// !过期时间戳
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int ExpireTime {
get { return expireTime_; }
set {
expireTime_ = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as ArenaBoxMsg);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(ArenaBoxMsg other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (Pos != other.Pos) return false;
if (Boxid != other.Boxid) return false;
if (ExpireTime != other.ExpireTime) return false;
return true;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (Pos != 0) hash ^= Pos.GetHashCode();
if (Boxid != 0) hash ^= Boxid.GetHashCode();
if (ExpireTime != 0) hash ^= ExpireTime.GetHashCode();
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void WriteTo(pb::CodedOutputStream output) {
if (Pos != 0) {
output.WriteRawTag(8);
output.WriteInt32(Pos);
}
if (Boxid != 0) {
output.WriteRawTag(16);
output.WriteInt32(Boxid);
}
if (ExpireTime != 0) {
output.WriteRawTag(24);
output.WriteInt32(ExpireTime);
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (Pos != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Pos);
}
if (Boxid != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Boxid);
}
if (ExpireTime != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(ExpireTime);
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(ArenaBoxMsg other) {
if (other == null) {
return;
}
if (other.Pos != 0) {
Pos = other.Pos;
}
if (other.Boxid != 0) {
Boxid = other.Boxid;
}
if (other.ExpireTime != 0) {
ExpireTime = other.ExpireTime;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(pb::CodedInputStream input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
input.SkipLastField();
break;
case 8: {
Pos = input.ReadInt32();
break;
}
case 16: {
Boxid = input.ReadInt32();
break;
}
case 24: {
ExpireTime = input.ReadInt32();
break;
}
}
}
}
}
#endregion
}
#endregion Designer generated code