diff --git a/Command/Command/Cmd/CommandRelic.cs b/Command/Command/Cmd/CommandRelic.cs index 3d2c7024..8002cc69 100644 --- a/Command/Command/Cmd/CommandRelic.cs +++ b/Command/Command/Cmd/CommandRelic.cs @@ -1,7 +1,4 @@ -using EggLink.DanhengServer.Data; -using EggLink.DanhengServer.Database.Inventory; -using EggLink.DanhengServer.Internationalization; -using EggLink.DanhengServer.Util; +using EggLink.DanhengServer.Internationalization; namespace EggLink.DanhengServer.Command.Command.Cmd; @@ -24,128 +21,61 @@ public class CommandRelic : ICommand return; } + // Parse character arg.CharacterArgs.TryGetValue("x", out var str); arg.CharacterArgs.TryGetValue("l", out var levelStr); str ??= "1"; - levelStr ??= "1"; + levelStr ??= "0"; if (!int.TryParse(str, out var amount) || !int.TryParse(levelStr, out var level)) { await arg.SendMsg(I18NManager.Translate("Game.Command.Notice.InvalidArguments")); return; } - GameData.RelicConfigData.TryGetValue(int.Parse(arg.BasicArgs[0]), out var itemConfig); - GameData.ItemConfigData.TryGetValue(int.Parse(arg.BasicArgs[0]), out var itemConfigExcel); - if (itemConfig == null || itemConfigExcel == null) - { - await arg.SendMsg(I18NManager.Translate("Game.Command.Relic.RelicNotFound")); - return; - } - - GameData.RelicSubAffixData.TryGetValue(itemConfig.SubAffixGroup, out var subAffixConfig); - GameData.RelicMainAffixData.TryGetValue(itemConfig.MainAffixGroup, out var mainAffixConfig); - if (subAffixConfig == null || mainAffixConfig == null) - { - await arg.SendMsg(I18NManager.Translate("Game.Command.Relic.RelicNotFound")); - return; - } - + // Parse main affix var startIndex = 1; - int mainAffixId; - if (arg.BasicArgs[1].Contains(':')) - { - // random main affix - mainAffixId = mainAffixConfig.Keys.ToList().RandomElement(); - } - else + var mainAffixId = 0; + if (!arg.BasicArgs[1].Contains(':')) { mainAffixId = int.Parse(arg.BasicArgs[1]); - if (!mainAffixConfig.ContainsKey(mainAffixId)) - { - await arg.SendMsg(I18NManager.Translate("Game.Command.Relic.InvalidMainAffixId")); - return; - } - startIndex++; } - var mainAffixGroup = itemConfig.MainAffixGroup; - var mainAffixGroupConfig = GameData.RelicMainAffixData[mainAffixGroup]; - var mainProperty = mainAffixGroupConfig[mainAffixId].Property; + // Parse sub affixes + var subAffixes = new List<(int, int)>(); + for (var ii = startIndex; ii < arg.BasicArgs.Count; ii++) + { + var subAffix = arg.BasicArgs[ii].Split(':'); + if (subAffix.Length != 2 || !int.TryParse(subAffix[0], out var subId) || + !int.TryParse(subAffix[1], out var subLevel)) + { + await arg.SendMsg(I18NManager.Translate("Game.Command.Notice.InvalidArguments")); + return; + } + subAffixes.Add((subId, subLevel)); + } for (var i = 0; i < amount; i++) { - var remainLevel = 5; - var subAffixes = new List<(int, int)>(); + (var ret, var _) = await player.InventoryManager!.HandleRelic( + int.Parse(arg.BasicArgs[0]), ++player.InventoryManager!.Data.NextUniqueId, + level, mainAffixId, subAffixes); - for (var ii = startIndex; ii < arg.BasicArgs.Count; ii++) + switch (ret) { - var subAffix = arg.BasicArgs[ii].Split(':'); - if (subAffix.Length != 2 || !int.TryParse(subAffix[0], out var subId) || - !int.TryParse(subAffix[1], out var subLevel)) - { - await arg.SendMsg(I18NManager.Translate("Game.Command.Notice.InvalidArguments")); + case 1: + await arg.SendMsg(I18NManager.Translate("Game.Command.Relic.RelicNotFound")); return; - } - - if (!subAffixConfig.ContainsKey(subId)) - { + case 2: + await arg.SendMsg(I18NManager.Translate("Game.Command.Relic.InvalidMainAffixId")); + return; + case 3: await arg.SendMsg(I18NManager.Translate("Game.Command.Relic.InvalidSubAffixId")); return; - } - - subAffixes.Add((subId, subLevel)); - remainLevel -= subLevel - 1; } - - if (subAffixes.Count < 4) - { - // random sub affix - var subAffixGroup = itemConfig.SubAffixGroup; - var subAffixGroupConfig = GameData.RelicSubAffixData[subAffixGroup]; - var subAffixGroupKeys = subAffixGroupConfig.Keys.ToList(); - while (subAffixes.Count < 4) - { - var subId = subAffixGroupKeys.RandomElement(); - if (subAffixes.Any(x => x.Item1 == subId)) continue; - if (subAffixGroupConfig[subId] != null && - subAffixGroupConfig[subId].Property == mainProperty) continue; - - if (remainLevel <= 0) - { - subAffixes.Add((subId, 1)); - } - else - { - var subLevel = Random.Shared.Next(1, Math.Min(remainLevel + 1, 5)) + 1; - subAffixes.Add((subId, subLevel)); - remainLevel -= subLevel - 1; - } - } - } - - var itemData = new ItemData - { - ItemId = int.Parse(arg.BasicArgs[0]), - Level = Math.Max(Math.Min(level, 9999), 1), - UniqueId = ++player.InventoryManager!.Data.NextUniqueId, - MainAffix = mainAffixId, - Count = 1 - }; - - foreach (var (subId, subLevel) in subAffixes) - { - subAffixConfig.TryGetValue(subId, out var subAffix); - var aff = new ItemSubAffix(subAffix!, 1); - for (var iii = 1; iii < subLevel; iii++) aff.IncreaseStep(subAffix!.StepNum); - itemData.SubAffixes.Add(aff); - } - - await player.InventoryManager!.AddItem(itemData, false); } - await arg.SendMsg(I18NManager.Translate("Game.Command.Relic.RelicGiven", player.Uid.ToString(), - amount.ToString(), itemConfigExcel.Name ?? arg.BasicArgs[0], mainAffixId.ToString())); + amount.ToString(), arg.BasicArgs[0], mainAffixId.ToString())); } } \ No newline at end of file diff --git a/GameServer/Game/Inventory/InventoryManager.cs b/GameServer/Game/Inventory/InventoryManager.cs index e6e866c0..ab771b76 100644 --- a/GameServer/Game/Inventory/InventoryManager.cs +++ b/GameServer/Game/Inventory/InventoryManager.cs @@ -504,17 +504,157 @@ public class InventoryManager(PlayerInstance player) : BasePlayerManager(player) return items; } - public async ValueTask ComposeItem(int composeId, int count) + public async ValueTask<(int, ItemData?)> HandleRelic( + int relicId, int uniqueId, int level, int mainAffixId = 0, List<(int, int)>? subAffixes = null) { + subAffixes ??= []; + GameData.RelicConfigData.TryGetValue(relicId, out var itemConfig); + GameData.ItemConfigData.TryGetValue(relicId, out var itemConfigExcel); + if (itemConfig == null || itemConfigExcel == null) + return (1, null); + + GameData.RelicSubAffixData.TryGetValue(itemConfig.SubAffixGroup, out var subAffixConfig); + GameData.RelicMainAffixData.TryGetValue(itemConfig.MainAffixGroup, out var mainAffixConfig); + if (subAffixConfig == null || mainAffixConfig == null) + return (1, null); + + var startIndex = 1; + if (mainAffixId == 0) + mainAffixId = mainAffixConfig.Keys.ToList().RandomElement(); + else + { + if (!mainAffixConfig.ContainsKey(mainAffixId)) + return (2, null); + startIndex++; + } + + var mainAffixGroup = itemConfig.MainAffixGroup; + var mainAffixGroupConfig = GameData.RelicMainAffixData[mainAffixGroup]; + string? mainProperty = mainAffixGroupConfig[mainAffixId].Property; + + var remainLevel = 5; + foreach (var (subId, subLevel) in subAffixes) + { + if (!subAffixConfig.ContainsKey(subId)) + return (3, null); + remainLevel -= subLevel - 1; + } + + if (subAffixes.Count < 4) + { + var subAffixGroup = itemConfig.SubAffixGroup; + var subAffixGroupConfig = GameData.RelicSubAffixData[subAffixGroup]; + var subAffixGroupKeys = subAffixGroupConfig.Keys.ToList(); + while (subAffixes.Count < 4) + { + var subId = subAffixGroupKeys.RandomElement(); + if (subAffixes.Any(x => x.Item1 == subId)) continue; + if (subAffixGroupConfig[subId] != null && subAffixGroupConfig[subId].Property == mainProperty) continue; + + if (remainLevel <= 0) + subAffixes.Add((subId, 1)); + else + { + var subLevel = Random.Shared.Next(1, Math.Min(remainLevel + 1, 5)) + 1; + subAffixes.Add((subId, subLevel)); + remainLevel -= subLevel - 1; + } + } + } + + var itemData = new ItemData + { + ItemId = relicId, + Level = Math.Max(Math.Min(level, 9999), 0), + UniqueId = uniqueId, + MainAffix = mainAffixId, + Count = 1 + }; + + foreach (var (subId, subLevel) in subAffixes) + { + subAffixConfig.TryGetValue(subId, out var subAffix); + var aff = new ItemSubAffix(subAffix!, 1); + for (var i = 1; i < subLevel; i++) aff.IncreaseStep(subAffix!.StepNum); + itemData.SubAffixes.Add(aff); + } + + await Player.InventoryManager!.AddItem(itemData, false); + return (0, itemData); + } + + public async ValueTask ComposeItem(int composeId, int count, List costData) + { + // Cost items in req + foreach (var cost in costData) + await RemoveItem((int)cost.PileItem.ItemId, (int)cost.PileItem.ItemNum); + + // Cost items in excel GameData.ItemComposeConfigData.TryGetValue(composeId, out var composeConfig); if (composeConfig == null) return null; - foreach (var cost in composeConfig.MaterialCost) await RemoveItem(cost.ItemID, cost.ItemNum * count); + foreach (var cost in composeConfig.MaterialCost) + await RemoveItem(cost.ItemID, cost.ItemNum * count); await RemoveItem(2, composeConfig.CoinCost * count); return await AddItem(composeConfig.ItemID, count, false); } + public async ValueTask ComposeRelic(ComposeSelectedRelicCsReq req) + { + // Cost items in req + if (req.ComposeItemList != null) + foreach (var cost in req.ComposeItemList.ItemList) + await RemoveItem((int)cost.PileItem.ItemId, (int)cost.PileItem.ItemNum); + if (req.ComposeItemSubList != null) + foreach (var subCost in req.ComposeItemSubList.ItemList) + await RemoveItem((int)subCost.PileItem.ItemId, (int)subCost.PileItem.ItemNum); + + // Cost items in excel + GameData.ItemComposeConfigData.TryGetValue((int)req.ComposeId, out var composeConfig); + if (composeConfig == null) return null; + foreach (var cost in composeConfig.MaterialCost) + await RemoveItem(cost.ItemID, (int)(cost.ItemNum * req.Count)); + + await RemoveItem(2, (int)(composeConfig.CoinCost * req.Count)); + + // Add relic + var subAffixes = new List<(int, int)>(); + foreach (var subId in req.SubAffixIdList) + subAffixes.Add(((int)subId, 1)); + + (var _, var relic) = await HandleRelic( + (int)req.TargetRelic, ++Data.NextUniqueId, 0, (int)req.MainAffixId, subAffixes); + + return relic; + } + + public async ValueTask ReforgeRelic(int uniqueId) + { + var relic = Data.RelicItems.FirstOrDefault(x => x.UniqueId == uniqueId); + await RemoveItem(relic!.ItemId, 1, uniqueId, false); + + var totalCount = 0; + var subAffixes = new List<(int, int)>(); + foreach (var sub in relic.SubAffixes) + { + totalCount += sub.Count; + subAffixes.Add((sub.Id, 0)); + } + + var remainCount = totalCount; + for (var i = 0; i < subAffixes.Count - 1; i++) + { + var count = new Random().Next(1, remainCount - (subAffixes.Count - i - 1)); + subAffixes[i] = (subAffixes[i].Item1, count); + remainCount -= count; + } + subAffixes[^1] = (subAffixes[^1].Item1, remainCount); + + await HandleRelic(relic.ItemId, uniqueId, relic.Level, relic.MainAffix, subAffixes); + await RemoveItem(238, 1); + } + public async ValueTask> SellItem(ItemCostData costData) { List items = []; diff --git a/GameServer/Server/Packet/Recv/Item/HandlerComposeItemCsReq.cs b/GameServer/Server/Packet/Recv/Item/HandlerComposeItemCsReq.cs index 70f7d630..f885a164 100644 --- a/GameServer/Server/Packet/Recv/Item/HandlerComposeItemCsReq.cs +++ b/GameServer/Server/Packet/Recv/Item/HandlerComposeItemCsReq.cs @@ -10,8 +10,13 @@ public class HandlerComposeItemCsReq : Handler public override async Task OnHandle(Connection connection, byte[] header, byte[] data) { var req = ComposeItemCsReq.Parser.ParseFrom(data); - var player = connection.Player!; - var item = await player.InventoryManager!.ComposeItem((int)req.ComposeId, (int)req.Count); + + var costData = new List(); + if (req.ComposeItemList != null) + costData = [.. req.ComposeItemList.ItemList]; + + var item = await connection.Player!.InventoryManager!.ComposeItem( + (int)req.ComposeId, (int)req.Count, costData); if (item == null) { await connection.SendPacket(new PacketComposeItemScRsp()); diff --git a/GameServer/Server/Packet/Recv/Item/HandlerComposeSelectedRelicCsReq.cs b/GameServer/Server/Packet/Recv/Item/HandlerComposeSelectedRelicCsReq.cs new file mode 100644 index 00000000..f8dacf98 --- /dev/null +++ b/GameServer/Server/Packet/Recv/Item/HandlerComposeSelectedRelicCsReq.cs @@ -0,0 +1,23 @@ +using EggLink.DanhengServer.GameServer.Server.Packet.Send.Item; +using EggLink.DanhengServer.Kcp; +using EggLink.DanhengServer.Proto; + +namespace EggLink.DanhengServer.GameServer.Server.Packet.Recv.Item; + +[Opcode(CmdIds.ComposeSelectedRelicCsReq)] +public class HandlerComposeSelectedRelicCsReq : Handler +{ + public override async Task OnHandle(Connection connection, byte[] header, byte[] data) + { + var req = ComposeSelectedRelicCsReq.Parser.ParseFrom(data); + var player = connection.Player!; + var item = await player.InventoryManager!.ComposeRelic(req); + if (item == null) + { + await connection.SendPacket(new PacketComposeSelectedRelicScRsp()); + return; + } + + await connection.SendPacket(new PacketComposeSelectedRelicScRsp(req.ComposeId, item)); + } +} \ No newline at end of file diff --git a/GameServer/Server/Packet/Recv/Item/HandlerRelicReforgeCsReq.cs b/GameServer/Server/Packet/Recv/Item/HandlerRelicReforgeCsReq.cs new file mode 100644 index 00000000..6d676d88 --- /dev/null +++ b/GameServer/Server/Packet/Recv/Item/HandlerRelicReforgeCsReq.cs @@ -0,0 +1,15 @@ +using EggLink.DanhengServer.Kcp; +using EggLink.DanhengServer.Proto; + +namespace EggLink.DanhengServer.GameServer.Server.Packet.Recv.Item; + +[Opcode(CmdIds.RelicReforgeCsReq)] +public class HandlerRelicReforgeCsReq : Handler +{ + public override async Task OnHandle(Connection connection, byte[] header, byte[] data) + { + var req = RelicReforgeCsReq.Parser.ParseFrom(data); + await connection.Player!.InventoryManager!.ReforgeRelic((int)req.RelicUniqueId); + await connection.SendPacket(CmdIds.RelicReforgeScRsp); + } +} \ No newline at end of file diff --git a/GameServer/Server/Packet/Recv/Player/HandlerUpdatePlayerSettingCsReq.cs b/GameServer/Server/Packet/Recv/Player/HandlerUpdatePlayerSettingCsReq.cs new file mode 100644 index 00000000..74334dfd --- /dev/null +++ b/GameServer/Server/Packet/Recv/Player/HandlerUpdatePlayerSettingCsReq.cs @@ -0,0 +1,15 @@ +using EggLink.DanhengServer.GameServer.Server.Packet.Send.Player; +using EggLink.DanhengServer.Kcp; +using EggLink.DanhengServer.Proto; + +namespace EggLink.DanhengServer.GameServer.Server.Packet.Recv.Player; + +[Opcode(CmdIds.UpdatePlayerSettingCsReq)] +public class HandlerUpdatePlayerSettingCsReq : Handler +{ + public override async Task OnHandle(Connection connection, byte[] header, byte[] data) + { + var req = UpdatePlayerSettingCsReq.Parser.ParseFrom(data); + await connection.SendPacket(new PacketUpdatePlayerSettingScRsp(req.PlayerSetting)); + } +} \ No newline at end of file diff --git a/GameServer/Server/Packet/Send/Item/PacketComposeSelectedRelicScRsp.cs b/GameServer/Server/Packet/Send/Item/PacketComposeSelectedRelicScRsp.cs new file mode 100644 index 00000000..a8abcf42 --- /dev/null +++ b/GameServer/Server/Packet/Send/Item/PacketComposeSelectedRelicScRsp.cs @@ -0,0 +1,33 @@ +using EggLink.DanhengServer.Database.Inventory; +using EggLink.DanhengServer.Kcp; +using EggLink.DanhengServer.Proto; + +namespace EggLink.DanhengServer.GameServer.Server.Packet.Send.Item; + +public class PacketComposeSelectedRelicScRsp : BasePacket +{ + public PacketComposeSelectedRelicScRsp() : base(CmdIds.ComposeSelectedRelicScRsp) + { + var proto = new ComposeSelectedRelicScRsp + { + Retcode = 1 + }; + + SetData(proto); + } + + public PacketComposeSelectedRelicScRsp(uint composeId, ItemData item) + : base(CmdIds.ComposeSelectedRelicScRsp) + { + var proto = new ComposeSelectedRelicScRsp + { + ReturnItemList = new ItemList + { + ItemList_ = { item.ToProto() } + }, + ComposeId = composeId + }; + + SetData(proto); + } +} \ No newline at end of file diff --git a/GameServer/Server/Packet/Send/Player/PacketUpdatePlayerSettingScRsp.cs b/GameServer/Server/Packet/Send/Player/PacketUpdatePlayerSettingScRsp.cs new file mode 100644 index 00000000..870324bd --- /dev/null +++ b/GameServer/Server/Packet/Send/Player/PacketUpdatePlayerSettingScRsp.cs @@ -0,0 +1,17 @@ +using EggLink.DanhengServer.Kcp; +using EggLink.DanhengServer.Proto; + +namespace EggLink.DanhengServer.GameServer.Server.Packet.Send.Player; + +public class PacketUpdatePlayerSettingScRsp : BasePacket +{ + public PacketUpdatePlayerSettingScRsp(UpdatePlayerSetting setting) : base(CmdIds.UpdatePlayerSettingScRsp) + { + var proto = new UpdatePlayerSettingScRsp + { + PlayerSetting = setting + }; + + SetData(proto); + } +} \ No newline at end of file diff --git a/Proto/ComposeSelectedRelicCsReq.cs b/Proto/ComposeSelectedRelicCsReq.cs index 1e84eef8..ec85fd2f 100644 --- a/Proto/ComposeSelectedRelicCsReq.cs +++ b/Proto/ComposeSelectedRelicCsReq.cs @@ -25,16 +25,17 @@ namespace EggLink.DanhengServer.Proto { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( "Ch9Db21wb3NlU2VsZWN0ZWRSZWxpY0NzUmVxLnByb3RvGhJJdGVtQ29zdERh", - "dGEucHJvdG8i2QEKGUNvbXBvc2VTZWxlY3RlZFJlbGljQ3NSZXESDQoFY291", + "dGEucHJvdG8i3gEKGUNvbXBvc2VTZWxlY3RlZFJlbGljQ3NSZXESDQoFY291", "bnQYCiABKA0SEgoKY29tcG9zZV9pZBgBIAEoDRIoChFjb21wb3NlX2l0ZW1f", "bGlzdBgGIAEoCzINLkl0ZW1Db3N0RGF0YRIVCg1tYWluX2FmZml4X2lkGAwg", - "ASgNEiMKDHdyX2l0ZW1fbGlzdBgCIAEoCzINLkl0ZW1Db3N0RGF0YRIZChFz", - "dWJfYWZmaXhfaWRfbGlzdBgNIAMoDRIYChBjb21wb3NlX3JlbGljX2lkGAcg", - "ASgNQh6qAhtFZ2dMaW5rLkRhbmhlbmdTZXJ2ZXIuUHJvdG9iBnByb3RvMw==")); + "ASgNEiwKFWNvbXBvc2VfaXRlbV9zdWJfbGlzdBgCIAEoCzINLkl0ZW1Db3N0", + "RGF0YRIZChFzdWJfYWZmaXhfaWRfbGlzdBgNIAMoDRIUCgx0YXJnZXRfcmVs", + "aWMYByABKA1CHqoCG0VnZ0xpbmsuRGFuaGVuZ1NlcnZlci5Qcm90b2IGcHJv", + "dG8z")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.ItemCostDataReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.ComposeSelectedRelicCsReq), global::EggLink.DanhengServer.Proto.ComposeSelectedRelicCsReq.Parser, new[]{ "Count", "ComposeId", "ComposeItemList", "MainAffixId", "WrItemList", "SubAffixIdList", "ComposeRelicId" }, null, null, null, null) + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.ComposeSelectedRelicCsReq), global::EggLink.DanhengServer.Proto.ComposeSelectedRelicCsReq.Parser, new[]{ "Count", "ComposeId", "ComposeItemList", "MainAffixId", "ComposeItemSubList", "SubAffixIdList", "TargetRelic" }, null, null, null, null) })); } #endregion @@ -80,9 +81,9 @@ namespace EggLink.DanhengServer.Proto { composeId_ = other.composeId_; composeItemList_ = other.composeItemList_ != null ? other.composeItemList_.Clone() : null; mainAffixId_ = other.mainAffixId_; - wrItemList_ = other.wrItemList_ != null ? other.wrItemList_.Clone() : null; + composeItemSubList_ = other.composeItemSubList_ != null ? other.composeItemSubList_.Clone() : null; subAffixIdList_ = other.subAffixIdList_.Clone(); - composeRelicId_ = other.composeRelicId_; + targetRelic_ = other.targetRelic_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } @@ -140,15 +141,15 @@ namespace EggLink.DanhengServer.Proto { } } - /// Field number for the "wr_item_list" field. - public const int WrItemListFieldNumber = 2; - private global::EggLink.DanhengServer.Proto.ItemCostData wrItemList_; + /// Field number for the "compose_item_sub_list" field. + public const int ComposeItemSubListFieldNumber = 2; + private global::EggLink.DanhengServer.Proto.ItemCostData composeItemSubList_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::EggLink.DanhengServer.Proto.ItemCostData WrItemList { - get { return wrItemList_; } + public global::EggLink.DanhengServer.Proto.ItemCostData ComposeItemSubList { + get { return composeItemSubList_; } set { - wrItemList_ = value; + composeItemSubList_ = value; } } @@ -163,15 +164,15 @@ namespace EggLink.DanhengServer.Proto { get { return subAffixIdList_; } } - /// Field number for the "compose_relic_id" field. - public const int ComposeRelicIdFieldNumber = 7; - private uint composeRelicId_; + /// Field number for the "target_relic" field. + public const int TargetRelicFieldNumber = 7; + private uint targetRelic_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint ComposeRelicId { - get { return composeRelicId_; } + public uint TargetRelic { + get { return targetRelic_; } set { - composeRelicId_ = value; + targetRelic_ = value; } } @@ -194,9 +195,9 @@ namespace EggLink.DanhengServer.Proto { if (ComposeId != other.ComposeId) return false; if (!object.Equals(ComposeItemList, other.ComposeItemList)) return false; if (MainAffixId != other.MainAffixId) return false; - if (!object.Equals(WrItemList, other.WrItemList)) return false; + if (!object.Equals(ComposeItemSubList, other.ComposeItemSubList)) return false; if(!subAffixIdList_.Equals(other.subAffixIdList_)) return false; - if (ComposeRelicId != other.ComposeRelicId) return false; + if (TargetRelic != other.TargetRelic) return false; return Equals(_unknownFields, other._unknownFields); } @@ -208,9 +209,9 @@ namespace EggLink.DanhengServer.Proto { if (ComposeId != 0) hash ^= ComposeId.GetHashCode(); if (composeItemList_ != null) hash ^= ComposeItemList.GetHashCode(); if (MainAffixId != 0) hash ^= MainAffixId.GetHashCode(); - if (wrItemList_ != null) hash ^= WrItemList.GetHashCode(); + if (composeItemSubList_ != null) hash ^= ComposeItemSubList.GetHashCode(); hash ^= subAffixIdList_.GetHashCode(); - if (ComposeRelicId != 0) hash ^= ComposeRelicId.GetHashCode(); + if (TargetRelic != 0) hash ^= TargetRelic.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -233,17 +234,17 @@ namespace EggLink.DanhengServer.Proto { output.WriteRawTag(8); output.WriteUInt32(ComposeId); } - if (wrItemList_ != null) { + if (composeItemSubList_ != null) { output.WriteRawTag(18); - output.WriteMessage(WrItemList); + output.WriteMessage(ComposeItemSubList); } if (composeItemList_ != null) { output.WriteRawTag(50); output.WriteMessage(ComposeItemList); } - if (ComposeRelicId != 0) { + if (TargetRelic != 0) { output.WriteRawTag(56); - output.WriteUInt32(ComposeRelicId); + output.WriteUInt32(TargetRelic); } if (Count != 0) { output.WriteRawTag(80); @@ -268,17 +269,17 @@ namespace EggLink.DanhengServer.Proto { output.WriteRawTag(8); output.WriteUInt32(ComposeId); } - if (wrItemList_ != null) { + if (composeItemSubList_ != null) { output.WriteRawTag(18); - output.WriteMessage(WrItemList); + output.WriteMessage(ComposeItemSubList); } if (composeItemList_ != null) { output.WriteRawTag(50); output.WriteMessage(ComposeItemList); } - if (ComposeRelicId != 0) { + if (TargetRelic != 0) { output.WriteRawTag(56); - output.WriteUInt32(ComposeRelicId); + output.WriteUInt32(TargetRelic); } if (Count != 0) { output.WriteRawTag(80); @@ -311,12 +312,12 @@ namespace EggLink.DanhengServer.Proto { if (MainAffixId != 0) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(MainAffixId); } - if (wrItemList_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(WrItemList); + if (composeItemSubList_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ComposeItemSubList); } size += subAffixIdList_.CalculateSize(_repeated_subAffixIdList_codec); - if (ComposeRelicId != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ComposeRelicId); + if (TargetRelic != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(TargetRelic); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -345,15 +346,15 @@ namespace EggLink.DanhengServer.Proto { if (other.MainAffixId != 0) { MainAffixId = other.MainAffixId; } - if (other.wrItemList_ != null) { - if (wrItemList_ == null) { - WrItemList = new global::EggLink.DanhengServer.Proto.ItemCostData(); + if (other.composeItemSubList_ != null) { + if (composeItemSubList_ == null) { + ComposeItemSubList = new global::EggLink.DanhengServer.Proto.ItemCostData(); } - WrItemList.MergeFrom(other.WrItemList); + ComposeItemSubList.MergeFrom(other.ComposeItemSubList); } subAffixIdList_.Add(other.subAffixIdList_); - if (other.ComposeRelicId != 0) { - ComposeRelicId = other.ComposeRelicId; + if (other.TargetRelic != 0) { + TargetRelic = other.TargetRelic; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -375,10 +376,10 @@ namespace EggLink.DanhengServer.Proto { break; } case 18: { - if (wrItemList_ == null) { - WrItemList = new global::EggLink.DanhengServer.Proto.ItemCostData(); + if (composeItemSubList_ == null) { + ComposeItemSubList = new global::EggLink.DanhengServer.Proto.ItemCostData(); } - input.ReadMessage(WrItemList); + input.ReadMessage(ComposeItemSubList); break; } case 50: { @@ -389,7 +390,7 @@ namespace EggLink.DanhengServer.Proto { break; } case 56: { - ComposeRelicId = input.ReadUInt32(); + TargetRelic = input.ReadUInt32(); break; } case 80: { @@ -425,10 +426,10 @@ namespace EggLink.DanhengServer.Proto { break; } case 18: { - if (wrItemList_ == null) { - WrItemList = new global::EggLink.DanhengServer.Proto.ItemCostData(); + if (composeItemSubList_ == null) { + ComposeItemSubList = new global::EggLink.DanhengServer.Proto.ItemCostData(); } - input.ReadMessage(WrItemList); + input.ReadMessage(ComposeItemSubList); break; } case 50: { @@ -439,7 +440,7 @@ namespace EggLink.DanhengServer.Proto { break; } case 56: { - ComposeRelicId = input.ReadUInt32(); + TargetRelic = input.ReadUInt32(); break; } case 80: { diff --git a/Proto/ItemCost.cs b/Proto/ItemCost.cs index 166248a9..0b09d5a2 100644 --- a/Proto/ItemCost.cs +++ b/Proto/ItemCost.cs @@ -24,15 +24,15 @@ namespace EggLink.DanhengServer.Proto { static ItemCostReflection() { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( - "Cg5JdGVtQ29zdC5wcm90bxoOUGlsZUl0ZW0ucHJvdG8idQoISXRlbUNvc3QS", - "HgoJcGlsZV9pdGVtGAogASgLMgkuUGlsZUl0ZW1IABIdChNlcXVpcG1lbnRf", - "dW5pcXVlX2lkGAUgASgNSAASGQoPcmVsaWNfdW5pcXVlX2lkGAQgASgNSABC", - "DwoNSXRlbU9uZW9mQ2FzZUIeqgIbRWdnTGluay5EYW5oZW5nU2VydmVyLlBy", - "b3RvYgZwcm90bzM=")); + "Cg5JdGVtQ29zdC5wcm90bxoOUGlsZUl0ZW0ucHJvdG8ibAoISXRlbUNvc3QS", + "HQoIUGlsZUl0ZW0YCiABKAsyCS5QaWxlSXRlbUgAEhsKEUVxdWlwbWVudFVu", + "aXF1ZUlkGAUgASgNSAASFwoNUmVsaWNVbmlxdWVJZBgEIAEoDUgAQgsKCWl0", + "ZW1DYXNlX0IeqgIbRWdnTGluay5EYW5oZW5nU2VydmVyLlByb3RvYgZwcm90", + "bzM=")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.PileItemReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.ItemCost), global::EggLink.DanhengServer.Proto.ItemCost.Parser, new[]{ "PileItem", "EquipmentUniqueId", "RelicUniqueId" }, new[]{ "ItemOneofCase" }, null, null, null) + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.ItemCost), global::EggLink.DanhengServer.Proto.ItemCost.Parser, new[]{ "PileItem", "EquipmentUniqueId", "RelicUniqueId" }, new[]{ "ItemCase" }, null, null, null) })); } #endregion @@ -74,14 +74,14 @@ namespace EggLink.DanhengServer.Proto { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ItemCost(ItemCost other) : this() { - switch (other.ItemOneofCaseCase) { - case ItemOneofCaseOneofCase.PileItem: + switch (other.ItemCaseCase) { + case ItemCaseOneofCase.PileItem: PileItem = other.PileItem.Clone(); break; - case ItemOneofCaseOneofCase.EquipmentUniqueId: + case ItemCaseOneofCase.EquipmentUniqueId: EquipmentUniqueId = other.EquipmentUniqueId; break; - case ItemOneofCaseOneofCase.RelicUniqueId: + case ItemCaseOneofCase.RelicUniqueId: RelicUniqueId = other.RelicUniqueId; break; } @@ -95,90 +95,90 @@ namespace EggLink.DanhengServer.Proto { return new ItemCost(this); } - /// Field number for the "pile_item" field. + /// Field number for the "PileItem" field. public const int PileItemFieldNumber = 10; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::EggLink.DanhengServer.Proto.PileItem PileItem { - get { return itemOneofCaseCase_ == ItemOneofCaseOneofCase.PileItem ? (global::EggLink.DanhengServer.Proto.PileItem) itemOneofCase_ : null; } + get { return itemCaseCase_ == ItemCaseOneofCase.PileItem ? (global::EggLink.DanhengServer.Proto.PileItem) itemCase_ : null; } set { - itemOneofCase_ = value; - itemOneofCaseCase_ = value == null ? ItemOneofCaseOneofCase.None : ItemOneofCaseOneofCase.PileItem; + itemCase_ = value; + itemCaseCase_ = value == null ? ItemCaseOneofCase.None : ItemCaseOneofCase.PileItem; } } - /// Field number for the "equipment_unique_id" field. + /// Field number for the "EquipmentUniqueId" field. public const int EquipmentUniqueIdFieldNumber = 5; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public uint EquipmentUniqueId { - get { return HasEquipmentUniqueId ? (uint) itemOneofCase_ : 0; } + get { return HasEquipmentUniqueId ? (uint) itemCase_ : 0; } set { - itemOneofCase_ = value; - itemOneofCaseCase_ = ItemOneofCaseOneofCase.EquipmentUniqueId; + itemCase_ = value; + itemCaseCase_ = ItemCaseOneofCase.EquipmentUniqueId; } } - /// Gets whether the "equipment_unique_id" field is set + /// Gets whether the "EquipmentUniqueId" field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool HasEquipmentUniqueId { - get { return itemOneofCaseCase_ == ItemOneofCaseOneofCase.EquipmentUniqueId; } + get { return itemCaseCase_ == ItemCaseOneofCase.EquipmentUniqueId; } } - /// Clears the value of the oneof if it's currently set to "equipment_unique_id" + /// Clears the value of the oneof if it's currently set to "EquipmentUniqueId" [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearEquipmentUniqueId() { if (HasEquipmentUniqueId) { - ClearItemOneofCase(); + ClearItemCase(); } } - /// Field number for the "relic_unique_id" field. + /// Field number for the "RelicUniqueId" field. public const int RelicUniqueIdFieldNumber = 4; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public uint RelicUniqueId { - get { return HasRelicUniqueId ? (uint) itemOneofCase_ : 0; } + get { return HasRelicUniqueId ? (uint) itemCase_ : 0; } set { - itemOneofCase_ = value; - itemOneofCaseCase_ = ItemOneofCaseOneofCase.RelicUniqueId; + itemCase_ = value; + itemCaseCase_ = ItemCaseOneofCase.RelicUniqueId; } } - /// Gets whether the "relic_unique_id" field is set + /// Gets whether the "RelicUniqueId" field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool HasRelicUniqueId { - get { return itemOneofCaseCase_ == ItemOneofCaseOneofCase.RelicUniqueId; } + get { return itemCaseCase_ == ItemCaseOneofCase.RelicUniqueId; } } - /// Clears the value of the oneof if it's currently set to "relic_unique_id" + /// Clears the value of the oneof if it's currently set to "RelicUniqueId" [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearRelicUniqueId() { if (HasRelicUniqueId) { - ClearItemOneofCase(); + ClearItemCase(); } } - private object itemOneofCase_; - /// Enum of possible cases for the "ItemOneofCase" oneof. - public enum ItemOneofCaseOneofCase { + private object itemCase_; + /// Enum of possible cases for the "itemCase_" oneof. + public enum ItemCaseOneofCase { None = 0, PileItem = 10, EquipmentUniqueId = 5, RelicUniqueId = 4, } - private ItemOneofCaseOneofCase itemOneofCaseCase_ = ItemOneofCaseOneofCase.None; + private ItemCaseOneofCase itemCaseCase_ = ItemCaseOneofCase.None; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ItemOneofCaseOneofCase ItemOneofCaseCase { - get { return itemOneofCaseCase_; } + public ItemCaseOneofCase ItemCaseCase { + get { return itemCaseCase_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearItemOneofCase() { - itemOneofCaseCase_ = ItemOneofCaseOneofCase.None; - itemOneofCase_ = null; + public void ClearItemCase() { + itemCaseCase_ = ItemCaseOneofCase.None; + itemCase_ = null; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -199,7 +199,7 @@ namespace EggLink.DanhengServer.Proto { if (!object.Equals(PileItem, other.PileItem)) return false; if (EquipmentUniqueId != other.EquipmentUniqueId) return false; if (RelicUniqueId != other.RelicUniqueId) return false; - if (ItemOneofCaseCase != other.ItemOneofCaseCase) return false; + if (ItemCaseCase != other.ItemCaseCase) return false; return Equals(_unknownFields, other._unknownFields); } @@ -207,10 +207,10 @@ namespace EggLink.DanhengServer.Proto { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (itemOneofCaseCase_ == ItemOneofCaseOneofCase.PileItem) hash ^= PileItem.GetHashCode(); + if (itemCaseCase_ == ItemCaseOneofCase.PileItem) hash ^= PileItem.GetHashCode(); if (HasEquipmentUniqueId) hash ^= EquipmentUniqueId.GetHashCode(); if (HasRelicUniqueId) hash ^= RelicUniqueId.GetHashCode(); - hash ^= (int) itemOneofCaseCase_; + hash ^= (int) itemCaseCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -237,7 +237,7 @@ namespace EggLink.DanhengServer.Proto { output.WriteRawTag(40); output.WriteUInt32(EquipmentUniqueId); } - if (itemOneofCaseCase_ == ItemOneofCaseOneofCase.PileItem) { + if (itemCaseCase_ == ItemCaseOneofCase.PileItem) { output.WriteRawTag(82); output.WriteMessage(PileItem); } @@ -259,7 +259,7 @@ namespace EggLink.DanhengServer.Proto { output.WriteRawTag(40); output.WriteUInt32(EquipmentUniqueId); } - if (itemOneofCaseCase_ == ItemOneofCaseOneofCase.PileItem) { + if (itemCaseCase_ == ItemCaseOneofCase.PileItem) { output.WriteRawTag(82); output.WriteMessage(PileItem); } @@ -273,7 +273,7 @@ namespace EggLink.DanhengServer.Proto { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (itemOneofCaseCase_ == ItemOneofCaseOneofCase.PileItem) { + if (itemCaseCase_ == ItemCaseOneofCase.PileItem) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(PileItem); } if (HasEquipmentUniqueId) { @@ -294,17 +294,17 @@ namespace EggLink.DanhengServer.Proto { if (other == null) { return; } - switch (other.ItemOneofCaseCase) { - case ItemOneofCaseOneofCase.PileItem: + switch (other.ItemCaseCase) { + case ItemCaseOneofCase.PileItem: if (PileItem == null) { PileItem = new global::EggLink.DanhengServer.Proto.PileItem(); } PileItem.MergeFrom(other.PileItem); break; - case ItemOneofCaseOneofCase.EquipmentUniqueId: + case ItemCaseOneofCase.EquipmentUniqueId: EquipmentUniqueId = other.EquipmentUniqueId; break; - case ItemOneofCaseOneofCase.RelicUniqueId: + case ItemCaseOneofCase.RelicUniqueId: RelicUniqueId = other.RelicUniqueId; break; } @@ -334,7 +334,7 @@ namespace EggLink.DanhengServer.Proto { } case 82: { global::EggLink.DanhengServer.Proto.PileItem subBuilder = new global::EggLink.DanhengServer.Proto.PileItem(); - if (itemOneofCaseCase_ == ItemOneofCaseOneofCase.PileItem) { + if (itemCaseCase_ == ItemCaseOneofCase.PileItem) { subBuilder.MergeFrom(PileItem); } input.ReadMessage(subBuilder); @@ -366,7 +366,7 @@ namespace EggLink.DanhengServer.Proto { } case 82: { global::EggLink.DanhengServer.Proto.PileItem subBuilder = new global::EggLink.DanhengServer.Proto.PileItem(); - if (itemOneofCaseCase_ == ItemOneofCaseOneofCase.PileItem) { + if (itemCaseCase_ == ItemCaseOneofCase.PileItem) { subBuilder.MergeFrom(PileItem); } input.ReadMessage(subBuilder); diff --git a/Proto/PileItem.cs b/Proto/PileItem.cs index cf3a99d1..5b876df6 100644 --- a/Proto/PileItem.cs +++ b/Proto/PileItem.cs @@ -24,9 +24,9 @@ namespace EggLink.DanhengServer.Proto { static PileItemReflection() { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( - "Cg5QaWxlSXRlbS5wcm90byItCghQaWxlSXRlbRIQCghpdGVtX251bRgPIAEo", - "DRIPCgdpdGVtX2lkGAwgASgNQh6qAhtFZ2dMaW5rLkRhbmhlbmdTZXJ2ZXIu", - "UHJvdG9iBnByb3RvMw==")); + "Cg5QaWxlSXRlbS5wcm90byIrCghQaWxlSXRlbRIPCgdJdGVtTnVtGA8gASgN", + "Eg4KBkl0ZW1JZBgMIAEoDUIeqgIbRWdnTGluay5EYW5oZW5nU2VydmVyLlBy", + "b3RvYgZwcm90bzM=")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { }, new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { @@ -83,7 +83,7 @@ namespace EggLink.DanhengServer.Proto { return new PileItem(this); } - /// Field number for the "item_num" field. + /// Field number for the "ItemNum" field. public const int ItemNumFieldNumber = 15; private uint itemNum_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -95,7 +95,7 @@ namespace EggLink.DanhengServer.Proto { } } - /// Field number for the "item_id" field. + /// Field number for the "ItemId" field. public const int ItemIdFieldNumber = 12; private uint itemId_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] diff --git a/Proto/UpdatePlayerSetting.cs b/Proto/UpdatePlayerSetting.cs new file mode 100644 index 00000000..0dff8b80 --- /dev/null +++ b/Proto/UpdatePlayerSetting.cs @@ -0,0 +1,769 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: UpdatePlayerSetting.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#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 EggLink.DanhengServer.Proto { + + /// Holder for reflection information generated from UpdatePlayerSetting.proto + public static partial class UpdatePlayerSettingReflection { + + #region Descriptor + /// File descriptor for UpdatePlayerSetting.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static UpdatePlayerSettingReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChlVcGRhdGVQbGF5ZXJTZXR0aW5nLnByb3RvIpUCChNVcGRhdGVQbGF5ZXJT", + "ZXR0aW5nEhUKC01FRkZLQ0FQQkZKGA0gASgISAASFQoLS09GREVPQUdMR0sY", + "DCABKAhIABIVCgtERU5GTEpLSE5GTxgIIAEoCEgAEhUKC0tIS0FBUEFDR0pG", + "GAcgASgISAASFQoLS0tISENPUEVOR00YBiABKAhIABIVCgtLTUNDS0lNSEJC", + "ShgLIAEoCEgAEhUKC09JR0lQTUVPRUtCGAEgASgISAASFQoLS01BQ0RNQUZG", + "Rk4YDyABKAhIABIVCgtFRkNDRERNTk1MUBgCIAEoCEgAEh8KFWluY2x1ZGVf", + "dXBncmFkZV9yZWxpYxgKIAEoCEgAQg4KDHNldHRpbmdfY2FzZUIeqgIbRWdn", + "TGluay5EYW5oZW5nU2VydmVyLlByb3RvYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.UpdatePlayerSetting), global::EggLink.DanhengServer.Proto.UpdatePlayerSetting.Parser, new[]{ "MEFFKCAPBFJ", "KOFDEOAGLGK", "DENFLJKHNFO", "KHKAAPACGJF", "KKHHCOPENGM", "KMCCKIMHBBJ", "OIGIPMEOEKB", "KMACDMAFFFN", "EFCCDDMNMLP", "IncludeUpgradeRelic" }, new[]{ "SettingCase" }, null, null, null) + })); + } + #endregion + + } + #region Messages + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class UpdatePlayerSetting : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdatePlayerSetting()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::EggLink.DanhengServer.Proto.UpdatePlayerSettingReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdatePlayerSetting() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdatePlayerSetting(UpdatePlayerSetting other) : this() { + switch (other.SettingCaseCase) { + case SettingCaseOneofCase.MEFFKCAPBFJ: + MEFFKCAPBFJ = other.MEFFKCAPBFJ; + break; + case SettingCaseOneofCase.KOFDEOAGLGK: + KOFDEOAGLGK = other.KOFDEOAGLGK; + break; + case SettingCaseOneofCase.DENFLJKHNFO: + DENFLJKHNFO = other.DENFLJKHNFO; + break; + case SettingCaseOneofCase.KHKAAPACGJF: + KHKAAPACGJF = other.KHKAAPACGJF; + break; + case SettingCaseOneofCase.KKHHCOPENGM: + KKHHCOPENGM = other.KKHHCOPENGM; + break; + case SettingCaseOneofCase.KMCCKIMHBBJ: + KMCCKIMHBBJ = other.KMCCKIMHBBJ; + break; + case SettingCaseOneofCase.OIGIPMEOEKB: + OIGIPMEOEKB = other.OIGIPMEOEKB; + break; + case SettingCaseOneofCase.KMACDMAFFFN: + KMACDMAFFFN = other.KMACDMAFFFN; + break; + case SettingCaseOneofCase.EFCCDDMNMLP: + EFCCDDMNMLP = other.EFCCDDMNMLP; + break; + case SettingCaseOneofCase.IncludeUpgradeRelic: + IncludeUpgradeRelic = other.IncludeUpgradeRelic; + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdatePlayerSetting Clone() { + return new UpdatePlayerSetting(this); + } + + /// Field number for the "MEFFKCAPBFJ" field. + public const int MEFFKCAPBFJFieldNumber = 13; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool MEFFKCAPBFJ { + get { return HasMEFFKCAPBFJ ? (bool) settingCase_ : false; } + set { + settingCase_ = value; + settingCaseCase_ = SettingCaseOneofCase.MEFFKCAPBFJ; + } + } + /// Gets whether the "MEFFKCAPBFJ" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasMEFFKCAPBFJ { + get { return settingCaseCase_ == SettingCaseOneofCase.MEFFKCAPBFJ; } + } + /// Clears the value of the oneof if it's currently set to "MEFFKCAPBFJ" + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearMEFFKCAPBFJ() { + if (HasMEFFKCAPBFJ) { + ClearSettingCase(); + } + } + + /// Field number for the "KOFDEOAGLGK" field. + public const int KOFDEOAGLGKFieldNumber = 12; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool KOFDEOAGLGK { + get { return HasKOFDEOAGLGK ? (bool) settingCase_ : false; } + set { + settingCase_ = value; + settingCaseCase_ = SettingCaseOneofCase.KOFDEOAGLGK; + } + } + /// Gets whether the "KOFDEOAGLGK" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasKOFDEOAGLGK { + get { return settingCaseCase_ == SettingCaseOneofCase.KOFDEOAGLGK; } + } + /// Clears the value of the oneof if it's currently set to "KOFDEOAGLGK" + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearKOFDEOAGLGK() { + if (HasKOFDEOAGLGK) { + ClearSettingCase(); + } + } + + /// Field number for the "DENFLJKHNFO" field. + public const int DENFLJKHNFOFieldNumber = 8; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool DENFLJKHNFO { + get { return HasDENFLJKHNFO ? (bool) settingCase_ : false; } + set { + settingCase_ = value; + settingCaseCase_ = SettingCaseOneofCase.DENFLJKHNFO; + } + } + /// Gets whether the "DENFLJKHNFO" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDENFLJKHNFO { + get { return settingCaseCase_ == SettingCaseOneofCase.DENFLJKHNFO; } + } + /// Clears the value of the oneof if it's currently set to "DENFLJKHNFO" + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDENFLJKHNFO() { + if (HasDENFLJKHNFO) { + ClearSettingCase(); + } + } + + /// Field number for the "KHKAAPACGJF" field. + public const int KHKAAPACGJFFieldNumber = 7; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool KHKAAPACGJF { + get { return HasKHKAAPACGJF ? (bool) settingCase_ : false; } + set { + settingCase_ = value; + settingCaseCase_ = SettingCaseOneofCase.KHKAAPACGJF; + } + } + /// Gets whether the "KHKAAPACGJF" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasKHKAAPACGJF { + get { return settingCaseCase_ == SettingCaseOneofCase.KHKAAPACGJF; } + } + /// Clears the value of the oneof if it's currently set to "KHKAAPACGJF" + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearKHKAAPACGJF() { + if (HasKHKAAPACGJF) { + ClearSettingCase(); + } + } + + /// Field number for the "KKHHCOPENGM" field. + public const int KKHHCOPENGMFieldNumber = 6; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool KKHHCOPENGM { + get { return HasKKHHCOPENGM ? (bool) settingCase_ : false; } + set { + settingCase_ = value; + settingCaseCase_ = SettingCaseOneofCase.KKHHCOPENGM; + } + } + /// Gets whether the "KKHHCOPENGM" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasKKHHCOPENGM { + get { return settingCaseCase_ == SettingCaseOneofCase.KKHHCOPENGM; } + } + /// Clears the value of the oneof if it's currently set to "KKHHCOPENGM" + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearKKHHCOPENGM() { + if (HasKKHHCOPENGM) { + ClearSettingCase(); + } + } + + /// Field number for the "KMCCKIMHBBJ" field. + public const int KMCCKIMHBBJFieldNumber = 11; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool KMCCKIMHBBJ { + get { return HasKMCCKIMHBBJ ? (bool) settingCase_ : false; } + set { + settingCase_ = value; + settingCaseCase_ = SettingCaseOneofCase.KMCCKIMHBBJ; + } + } + /// Gets whether the "KMCCKIMHBBJ" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasKMCCKIMHBBJ { + get { return settingCaseCase_ == SettingCaseOneofCase.KMCCKIMHBBJ; } + } + /// Clears the value of the oneof if it's currently set to "KMCCKIMHBBJ" + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearKMCCKIMHBBJ() { + if (HasKMCCKIMHBBJ) { + ClearSettingCase(); + } + } + + /// Field number for the "OIGIPMEOEKB" field. + public const int OIGIPMEOEKBFieldNumber = 1; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool OIGIPMEOEKB { + get { return HasOIGIPMEOEKB ? (bool) settingCase_ : false; } + set { + settingCase_ = value; + settingCaseCase_ = SettingCaseOneofCase.OIGIPMEOEKB; + } + } + /// Gets whether the "OIGIPMEOEKB" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasOIGIPMEOEKB { + get { return settingCaseCase_ == SettingCaseOneofCase.OIGIPMEOEKB; } + } + /// Clears the value of the oneof if it's currently set to "OIGIPMEOEKB" + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearOIGIPMEOEKB() { + if (HasOIGIPMEOEKB) { + ClearSettingCase(); + } + } + + /// Field number for the "KMACDMAFFFN" field. + public const int KMACDMAFFFNFieldNumber = 15; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool KMACDMAFFFN { + get { return HasKMACDMAFFFN ? (bool) settingCase_ : false; } + set { + settingCase_ = value; + settingCaseCase_ = SettingCaseOneofCase.KMACDMAFFFN; + } + } + /// Gets whether the "KMACDMAFFFN" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasKMACDMAFFFN { + get { return settingCaseCase_ == SettingCaseOneofCase.KMACDMAFFFN; } + } + /// Clears the value of the oneof if it's currently set to "KMACDMAFFFN" + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearKMACDMAFFFN() { + if (HasKMACDMAFFFN) { + ClearSettingCase(); + } + } + + /// Field number for the "EFCCDDMNMLP" field. + public const int EFCCDDMNMLPFieldNumber = 2; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool EFCCDDMNMLP { + get { return HasEFCCDDMNMLP ? (bool) settingCase_ : false; } + set { + settingCase_ = value; + settingCaseCase_ = SettingCaseOneofCase.EFCCDDMNMLP; + } + } + /// Gets whether the "EFCCDDMNMLP" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasEFCCDDMNMLP { + get { return settingCaseCase_ == SettingCaseOneofCase.EFCCDDMNMLP; } + } + /// Clears the value of the oneof if it's currently set to "EFCCDDMNMLP" + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearEFCCDDMNMLP() { + if (HasEFCCDDMNMLP) { + ClearSettingCase(); + } + } + + /// Field number for the "include_upgrade_relic" field. + public const int IncludeUpgradeRelicFieldNumber = 10; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IncludeUpgradeRelic { + get { return HasIncludeUpgradeRelic ? (bool) settingCase_ : false; } + set { + settingCase_ = value; + settingCaseCase_ = SettingCaseOneofCase.IncludeUpgradeRelic; + } + } + /// Gets whether the "include_upgrade_relic" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasIncludeUpgradeRelic { + get { return settingCaseCase_ == SettingCaseOneofCase.IncludeUpgradeRelic; } + } + /// Clears the value of the oneof if it's currently set to "include_upgrade_relic" + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearIncludeUpgradeRelic() { + if (HasIncludeUpgradeRelic) { + ClearSettingCase(); + } + } + + private object settingCase_; + /// Enum of possible cases for the "setting_case" oneof. + public enum SettingCaseOneofCase { + None = 0, + MEFFKCAPBFJ = 13, + KOFDEOAGLGK = 12, + DENFLJKHNFO = 8, + KHKAAPACGJF = 7, + KKHHCOPENGM = 6, + KMCCKIMHBBJ = 11, + OIGIPMEOEKB = 1, + KMACDMAFFFN = 15, + EFCCDDMNMLP = 2, + IncludeUpgradeRelic = 10, + } + private SettingCaseOneofCase settingCaseCase_ = SettingCaseOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SettingCaseOneofCase SettingCaseCase { + get { return settingCaseCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearSettingCase() { + settingCaseCase_ = SettingCaseOneofCase.None; + settingCase_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as UpdatePlayerSetting); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(UpdatePlayerSetting other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (MEFFKCAPBFJ != other.MEFFKCAPBFJ) return false; + if (KOFDEOAGLGK != other.KOFDEOAGLGK) return false; + if (DENFLJKHNFO != other.DENFLJKHNFO) return false; + if (KHKAAPACGJF != other.KHKAAPACGJF) return false; + if (KKHHCOPENGM != other.KKHHCOPENGM) return false; + if (KMCCKIMHBBJ != other.KMCCKIMHBBJ) return false; + if (OIGIPMEOEKB != other.OIGIPMEOEKB) return false; + if (KMACDMAFFFN != other.KMACDMAFFFN) return false; + if (EFCCDDMNMLP != other.EFCCDDMNMLP) return false; + if (IncludeUpgradeRelic != other.IncludeUpgradeRelic) return false; + if (SettingCaseCase != other.SettingCaseCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasMEFFKCAPBFJ) hash ^= MEFFKCAPBFJ.GetHashCode(); + if (HasKOFDEOAGLGK) hash ^= KOFDEOAGLGK.GetHashCode(); + if (HasDENFLJKHNFO) hash ^= DENFLJKHNFO.GetHashCode(); + if (HasKHKAAPACGJF) hash ^= KHKAAPACGJF.GetHashCode(); + if (HasKKHHCOPENGM) hash ^= KKHHCOPENGM.GetHashCode(); + if (HasKMCCKIMHBBJ) hash ^= KMCCKIMHBBJ.GetHashCode(); + if (HasOIGIPMEOEKB) hash ^= OIGIPMEOEKB.GetHashCode(); + if (HasKMACDMAFFFN) hash ^= KMACDMAFFFN.GetHashCode(); + if (HasEFCCDDMNMLP) hash ^= EFCCDDMNMLP.GetHashCode(); + if (HasIncludeUpgradeRelic) hash ^= IncludeUpgradeRelic.GetHashCode(); + hash ^= (int) settingCaseCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasOIGIPMEOEKB) { + output.WriteRawTag(8); + output.WriteBool(OIGIPMEOEKB); + } + if (HasEFCCDDMNMLP) { + output.WriteRawTag(16); + output.WriteBool(EFCCDDMNMLP); + } + if (HasKKHHCOPENGM) { + output.WriteRawTag(48); + output.WriteBool(KKHHCOPENGM); + } + if (HasKHKAAPACGJF) { + output.WriteRawTag(56); + output.WriteBool(KHKAAPACGJF); + } + if (HasDENFLJKHNFO) { + output.WriteRawTag(64); + output.WriteBool(DENFLJKHNFO); + } + if (HasIncludeUpgradeRelic) { + output.WriteRawTag(80); + output.WriteBool(IncludeUpgradeRelic); + } + if (HasKMCCKIMHBBJ) { + output.WriteRawTag(88); + output.WriteBool(KMCCKIMHBBJ); + } + if (HasKOFDEOAGLGK) { + output.WriteRawTag(96); + output.WriteBool(KOFDEOAGLGK); + } + if (HasMEFFKCAPBFJ) { + output.WriteRawTag(104); + output.WriteBool(MEFFKCAPBFJ); + } + if (HasKMACDMAFFFN) { + output.WriteRawTag(120); + output.WriteBool(KMACDMAFFFN); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasOIGIPMEOEKB) { + output.WriteRawTag(8); + output.WriteBool(OIGIPMEOEKB); + } + if (HasEFCCDDMNMLP) { + output.WriteRawTag(16); + output.WriteBool(EFCCDDMNMLP); + } + if (HasKKHHCOPENGM) { + output.WriteRawTag(48); + output.WriteBool(KKHHCOPENGM); + } + if (HasKHKAAPACGJF) { + output.WriteRawTag(56); + output.WriteBool(KHKAAPACGJF); + } + if (HasDENFLJKHNFO) { + output.WriteRawTag(64); + output.WriteBool(DENFLJKHNFO); + } + if (HasIncludeUpgradeRelic) { + output.WriteRawTag(80); + output.WriteBool(IncludeUpgradeRelic); + } + if (HasKMCCKIMHBBJ) { + output.WriteRawTag(88); + output.WriteBool(KMCCKIMHBBJ); + } + if (HasKOFDEOAGLGK) { + output.WriteRawTag(96); + output.WriteBool(KOFDEOAGLGK); + } + if (HasMEFFKCAPBFJ) { + output.WriteRawTag(104); + output.WriteBool(MEFFKCAPBFJ); + } + if (HasKMACDMAFFFN) { + output.WriteRawTag(120); + output.WriteBool(KMACDMAFFFN); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasMEFFKCAPBFJ) { + size += 1 + 1; + } + if (HasKOFDEOAGLGK) { + size += 1 + 1; + } + if (HasDENFLJKHNFO) { + size += 1 + 1; + } + if (HasKHKAAPACGJF) { + size += 1 + 1; + } + if (HasKKHHCOPENGM) { + size += 1 + 1; + } + if (HasKMCCKIMHBBJ) { + size += 1 + 1; + } + if (HasOIGIPMEOEKB) { + size += 1 + 1; + } + if (HasKMACDMAFFFN) { + size += 1 + 1; + } + if (HasEFCCDDMNMLP) { + size += 1 + 1; + } + if (HasIncludeUpgradeRelic) { + size += 1 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(UpdatePlayerSetting other) { + if (other == null) { + return; + } + switch (other.SettingCaseCase) { + case SettingCaseOneofCase.MEFFKCAPBFJ: + MEFFKCAPBFJ = other.MEFFKCAPBFJ; + break; + case SettingCaseOneofCase.KOFDEOAGLGK: + KOFDEOAGLGK = other.KOFDEOAGLGK; + break; + case SettingCaseOneofCase.DENFLJKHNFO: + DENFLJKHNFO = other.DENFLJKHNFO; + break; + case SettingCaseOneofCase.KHKAAPACGJF: + KHKAAPACGJF = other.KHKAAPACGJF; + break; + case SettingCaseOneofCase.KKHHCOPENGM: + KKHHCOPENGM = other.KKHHCOPENGM; + break; + case SettingCaseOneofCase.KMCCKIMHBBJ: + KMCCKIMHBBJ = other.KMCCKIMHBBJ; + break; + case SettingCaseOneofCase.OIGIPMEOEKB: + OIGIPMEOEKB = other.OIGIPMEOEKB; + break; + case SettingCaseOneofCase.KMACDMAFFFN: + KMACDMAFFFN = other.KMACDMAFFFN; + break; + case SettingCaseOneofCase.EFCCDDMNMLP: + EFCCDDMNMLP = other.EFCCDDMNMLP; + break; + case SettingCaseOneofCase.IncludeUpgradeRelic: + IncludeUpgradeRelic = other.IncludeUpgradeRelic; + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + OIGIPMEOEKB = input.ReadBool(); + break; + } + case 16: { + EFCCDDMNMLP = input.ReadBool(); + break; + } + case 48: { + KKHHCOPENGM = input.ReadBool(); + break; + } + case 56: { + KHKAAPACGJF = input.ReadBool(); + break; + } + case 64: { + DENFLJKHNFO = input.ReadBool(); + break; + } + case 80: { + IncludeUpgradeRelic = input.ReadBool(); + break; + } + case 88: { + KMCCKIMHBBJ = input.ReadBool(); + break; + } + case 96: { + KOFDEOAGLGK = input.ReadBool(); + break; + } + case 104: { + MEFFKCAPBFJ = input.ReadBool(); + break; + } + case 120: { + KMACDMAFFFN = input.ReadBool(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + OIGIPMEOEKB = input.ReadBool(); + break; + } + case 16: { + EFCCDDMNMLP = input.ReadBool(); + break; + } + case 48: { + KKHHCOPENGM = input.ReadBool(); + break; + } + case 56: { + KHKAAPACGJF = input.ReadBool(); + break; + } + case 64: { + DENFLJKHNFO = input.ReadBool(); + break; + } + case 80: { + IncludeUpgradeRelic = input.ReadBool(); + break; + } + case 88: { + KMCCKIMHBBJ = input.ReadBool(); + break; + } + case 96: { + KOFDEOAGLGK = input.ReadBool(); + break; + } + case 104: { + MEFFKCAPBFJ = input.ReadBool(); + break; + } + case 120: { + KMACDMAFFFN = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Proto/UpdatePlayerSettingCsReq.cs b/Proto/UpdatePlayerSettingCsReq.cs index 6a516f35..c22456cf 100644 --- a/Proto/UpdatePlayerSettingCsReq.cs +++ b/Proto/UpdatePlayerSettingCsReq.cs @@ -24,14 +24,14 @@ namespace EggLink.DanhengServer.Proto { static UpdatePlayerSettingCsReqReflection() { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( - "Ch5VcGRhdGVQbGF5ZXJTZXR0aW5nQ3NSZXEucHJvdG8aEUdKT0RBUEZJRk1M", - "LnByb3RvIj0KGFVwZGF0ZVBsYXllclNldHRpbmdDc1JlcRIhCgtHRk1JS0JN", - "RkdGQRgFIAEoCzIMLkdKT0RBUEZJRk1MQh6qAhtFZ2dMaW5rLkRhbmhlbmdT", - "ZXJ2ZXIuUHJvdG9iBnByb3RvMw==")); + "Ch5VcGRhdGVQbGF5ZXJTZXR0aW5nQ3NSZXEucHJvdG8aGVVwZGF0ZVBsYXll", + "clNldHRpbmcucHJvdG8iSAoYVXBkYXRlUGxheWVyU2V0dGluZ0NzUmVxEiwK", + "DnBsYXllcl9zZXR0aW5nGAUgASgLMhQuVXBkYXRlUGxheWVyU2V0dGluZ0Ie", + "qgIbRWdnTGluay5EYW5oZW5nU2VydmVyLlByb3RvYgZwcm90bzM=")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.GJODAPFIFMLReflection.Descriptor, }, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.UpdatePlayerSettingReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.UpdatePlayerSettingCsReq), global::EggLink.DanhengServer.Proto.UpdatePlayerSettingCsReq.Parser, new[]{ "GFMIKBMFGFA" }, null, null, null, null) + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.UpdatePlayerSettingCsReq), global::EggLink.DanhengServer.Proto.UpdatePlayerSettingCsReq.Parser, new[]{ "PlayerSetting" }, null, null, null, null) })); } #endregion @@ -73,7 +73,7 @@ namespace EggLink.DanhengServer.Proto { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public UpdatePlayerSettingCsReq(UpdatePlayerSettingCsReq other) : this() { - gFMIKBMFGFA_ = other.gFMIKBMFGFA_ != null ? other.gFMIKBMFGFA_.Clone() : null; + playerSetting_ = other.playerSetting_ != null ? other.playerSetting_.Clone() : null; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } @@ -83,15 +83,15 @@ namespace EggLink.DanhengServer.Proto { return new UpdatePlayerSettingCsReq(this); } - /// Field number for the "GFMIKBMFGFA" field. - public const int GFMIKBMFGFAFieldNumber = 5; - private global::EggLink.DanhengServer.Proto.GJODAPFIFML gFMIKBMFGFA_; + /// Field number for the "player_setting" field. + public const int PlayerSettingFieldNumber = 5; + private global::EggLink.DanhengServer.Proto.UpdatePlayerSetting playerSetting_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::EggLink.DanhengServer.Proto.GJODAPFIFML GFMIKBMFGFA { - get { return gFMIKBMFGFA_; } + public global::EggLink.DanhengServer.Proto.UpdatePlayerSetting PlayerSetting { + get { return playerSetting_; } set { - gFMIKBMFGFA_ = value; + playerSetting_ = value; } } @@ -110,7 +110,7 @@ namespace EggLink.DanhengServer.Proto { if (ReferenceEquals(other, this)) { return true; } - if (!object.Equals(GFMIKBMFGFA, other.GFMIKBMFGFA)) return false; + if (!object.Equals(PlayerSetting, other.PlayerSetting)) return false; return Equals(_unknownFields, other._unknownFields); } @@ -118,7 +118,7 @@ namespace EggLink.DanhengServer.Proto { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (gFMIKBMFGFA_ != null) hash ^= GFMIKBMFGFA.GetHashCode(); + if (playerSetting_ != null) hash ^= PlayerSetting.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -137,9 +137,9 @@ namespace EggLink.DanhengServer.Proto { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (gFMIKBMFGFA_ != null) { + if (playerSetting_ != null) { output.WriteRawTag(42); - output.WriteMessage(GFMIKBMFGFA); + output.WriteMessage(PlayerSetting); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -151,9 +151,9 @@ namespace EggLink.DanhengServer.Proto { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (gFMIKBMFGFA_ != null) { + if (playerSetting_ != null) { output.WriteRawTag(42); - output.WriteMessage(GFMIKBMFGFA); + output.WriteMessage(PlayerSetting); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -165,8 +165,8 @@ namespace EggLink.DanhengServer.Proto { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (gFMIKBMFGFA_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(GFMIKBMFGFA); + if (playerSetting_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(PlayerSetting); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -180,11 +180,11 @@ namespace EggLink.DanhengServer.Proto { if (other == null) { return; } - if (other.gFMIKBMFGFA_ != null) { - if (gFMIKBMFGFA_ == null) { - GFMIKBMFGFA = new global::EggLink.DanhengServer.Proto.GJODAPFIFML(); + if (other.playerSetting_ != null) { + if (playerSetting_ == null) { + PlayerSetting = new global::EggLink.DanhengServer.Proto.UpdatePlayerSetting(); } - GFMIKBMFGFA.MergeFrom(other.GFMIKBMFGFA); + PlayerSetting.MergeFrom(other.PlayerSetting); } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -202,10 +202,10 @@ namespace EggLink.DanhengServer.Proto { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 42: { - if (gFMIKBMFGFA_ == null) { - GFMIKBMFGFA = new global::EggLink.DanhengServer.Proto.GJODAPFIFML(); + if (playerSetting_ == null) { + PlayerSetting = new global::EggLink.DanhengServer.Proto.UpdatePlayerSetting(); } - input.ReadMessage(GFMIKBMFGFA); + input.ReadMessage(PlayerSetting); break; } } @@ -224,10 +224,10 @@ namespace EggLink.DanhengServer.Proto { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 42: { - if (gFMIKBMFGFA_ == null) { - GFMIKBMFGFA = new global::EggLink.DanhengServer.Proto.GJODAPFIFML(); + if (playerSetting_ == null) { + PlayerSetting = new global::EggLink.DanhengServer.Proto.UpdatePlayerSetting(); } - input.ReadMessage(GFMIKBMFGFA); + input.ReadMessage(PlayerSetting); break; } } diff --git a/Proto/UpdatePlayerSettingScRsp.cs b/Proto/UpdatePlayerSettingScRsp.cs index 591d765a..ba89df92 100644 --- a/Proto/UpdatePlayerSettingScRsp.cs +++ b/Proto/UpdatePlayerSettingScRsp.cs @@ -24,14 +24,15 @@ namespace EggLink.DanhengServer.Proto { static UpdatePlayerSettingScRspReflection() { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( - "Ch5VcGRhdGVQbGF5ZXJTZXR0aW5nU2NSc3AucHJvdG8aEUdKT0RBUEZJRk1M", - "LnByb3RvIk4KGFVwZGF0ZVBsYXllclNldHRpbmdTY1JzcBIhCgtHRk1JS0JN", - "RkdGQRgIIAEoCzIMLkdKT0RBUEZJRk1MEg8KB3JldGNvZGUYASABKA1CHqoC", - "G0VnZ0xpbmsuRGFuaGVuZ1NlcnZlci5Qcm90b2IGcHJvdG8z")); + "Ch5VcGRhdGVQbGF5ZXJTZXR0aW5nU2NSc3AucHJvdG8aGVVwZGF0ZVBsYXll", + "clNldHRpbmcucHJvdG8iWQoYVXBkYXRlUGxheWVyU2V0dGluZ1NjUnNwEiwK", + "DnBsYXllcl9zZXR0aW5nGAggASgLMhQuVXBkYXRlUGxheWVyU2V0dGluZxIP", + "CgdyZXRjb2RlGAEgASgNQh6qAhtFZ2dMaW5rLkRhbmhlbmdTZXJ2ZXIuUHJv", + "dG9iBnByb3RvMw==")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.GJODAPFIFMLReflection.Descriptor, }, + new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.UpdatePlayerSettingReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.UpdatePlayerSettingScRsp), global::EggLink.DanhengServer.Proto.UpdatePlayerSettingScRsp.Parser, new[]{ "GFMIKBMFGFA", "Retcode" }, null, null, null, null) + new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.UpdatePlayerSettingScRsp), global::EggLink.DanhengServer.Proto.UpdatePlayerSettingScRsp.Parser, new[]{ "PlayerSetting", "Retcode" }, null, null, null, null) })); } #endregion @@ -73,7 +74,7 @@ namespace EggLink.DanhengServer.Proto { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public UpdatePlayerSettingScRsp(UpdatePlayerSettingScRsp other) : this() { - gFMIKBMFGFA_ = other.gFMIKBMFGFA_ != null ? other.gFMIKBMFGFA_.Clone() : null; + playerSetting_ = other.playerSetting_ != null ? other.playerSetting_.Clone() : null; retcode_ = other.retcode_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } @@ -84,15 +85,15 @@ namespace EggLink.DanhengServer.Proto { return new UpdatePlayerSettingScRsp(this); } - /// Field number for the "GFMIKBMFGFA" field. - public const int GFMIKBMFGFAFieldNumber = 8; - private global::EggLink.DanhengServer.Proto.GJODAPFIFML gFMIKBMFGFA_; + /// Field number for the "player_setting" field. + public const int PlayerSettingFieldNumber = 8; + private global::EggLink.DanhengServer.Proto.UpdatePlayerSetting playerSetting_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::EggLink.DanhengServer.Proto.GJODAPFIFML GFMIKBMFGFA { - get { return gFMIKBMFGFA_; } + public global::EggLink.DanhengServer.Proto.UpdatePlayerSetting PlayerSetting { + get { return playerSetting_; } set { - gFMIKBMFGFA_ = value; + playerSetting_ = value; } } @@ -123,7 +124,7 @@ namespace EggLink.DanhengServer.Proto { if (ReferenceEquals(other, this)) { return true; } - if (!object.Equals(GFMIKBMFGFA, other.GFMIKBMFGFA)) return false; + if (!object.Equals(PlayerSetting, other.PlayerSetting)) return false; if (Retcode != other.Retcode) return false; return Equals(_unknownFields, other._unknownFields); } @@ -132,7 +133,7 @@ namespace EggLink.DanhengServer.Proto { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (gFMIKBMFGFA_ != null) hash ^= GFMIKBMFGFA.GetHashCode(); + if (playerSetting_ != null) hash ^= PlayerSetting.GetHashCode(); if (Retcode != 0) hash ^= Retcode.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); @@ -156,9 +157,9 @@ namespace EggLink.DanhengServer.Proto { output.WriteRawTag(8); output.WriteUInt32(Retcode); } - if (gFMIKBMFGFA_ != null) { + if (playerSetting_ != null) { output.WriteRawTag(66); - output.WriteMessage(GFMIKBMFGFA); + output.WriteMessage(PlayerSetting); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -174,9 +175,9 @@ namespace EggLink.DanhengServer.Proto { output.WriteRawTag(8); output.WriteUInt32(Retcode); } - if (gFMIKBMFGFA_ != null) { + if (playerSetting_ != null) { output.WriteRawTag(66); - output.WriteMessage(GFMIKBMFGFA); + output.WriteMessage(PlayerSetting); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -188,8 +189,8 @@ namespace EggLink.DanhengServer.Proto { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (gFMIKBMFGFA_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(GFMIKBMFGFA); + if (playerSetting_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(PlayerSetting); } if (Retcode != 0) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Retcode); @@ -206,11 +207,11 @@ namespace EggLink.DanhengServer.Proto { if (other == null) { return; } - if (other.gFMIKBMFGFA_ != null) { - if (gFMIKBMFGFA_ == null) { - GFMIKBMFGFA = new global::EggLink.DanhengServer.Proto.GJODAPFIFML(); + if (other.playerSetting_ != null) { + if (playerSetting_ == null) { + PlayerSetting = new global::EggLink.DanhengServer.Proto.UpdatePlayerSetting(); } - GFMIKBMFGFA.MergeFrom(other.GFMIKBMFGFA); + PlayerSetting.MergeFrom(other.PlayerSetting); } if (other.Retcode != 0) { Retcode = other.Retcode; @@ -235,10 +236,10 @@ namespace EggLink.DanhengServer.Proto { break; } case 66: { - if (gFMIKBMFGFA_ == null) { - GFMIKBMFGFA = new global::EggLink.DanhengServer.Proto.GJODAPFIFML(); + if (playerSetting_ == null) { + PlayerSetting = new global::EggLink.DanhengServer.Proto.UpdatePlayerSetting(); } - input.ReadMessage(GFMIKBMFGFA); + input.ReadMessage(PlayerSetting); break; } } @@ -261,10 +262,10 @@ namespace EggLink.DanhengServer.Proto { break; } case 66: { - if (gFMIKBMFGFA_ == null) { - GFMIKBMFGFA = new global::EggLink.DanhengServer.Proto.GJODAPFIFML(); + if (playerSetting_ == null) { + PlayerSetting = new global::EggLink.DanhengServer.Proto.UpdatePlayerSetting(); } - input.ReadMessage(GFMIKBMFGFA); + input.ReadMessage(PlayerSetting); break; } }