mirror of
https://github.com/raphaeIl/Novaria.git
synced 2025-12-13 06:54:48 +01:00
918 lines
31 KiB
C#
918 lines
31 KiB
C#
// <auto-generated>
|
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
// source: EquipmentInstance.proto
|
|
// </auto-generated>
|
|
#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 Nova.Client {
|
|
|
|
/// <summary>Holder for reflection information generated from EquipmentInstance.proto</summary>
|
|
public static partial class EquipmentInstanceReflection {
|
|
|
|
#region Descriptor
|
|
/// <summary>File descriptor for EquipmentInstance.proto</summary>
|
|
public static pbr::FileDescriptor Descriptor {
|
|
get { return descriptor; }
|
|
}
|
|
private static pbr::FileDescriptor descriptor;
|
|
|
|
static EquipmentInstanceReflection() {
|
|
byte[] descriptorData = global::System.Convert.FromBase64String(
|
|
string.Concat(
|
|
"ChdFcXVpcG1lbnRJbnN0YW5jZS5wcm90byLSAwoRRXF1aXBtZW50SW5zdGFu",
|
|
"Y2USCgoCaWQYASABKAUSFgoOZXF1aXBtZW50X3R5cGUYAiABKAUSEgoKZGlm",
|
|
"ZmljdWx0eRgDIAEoBRIMCgRuYW1lGAQgASgJEgwKBGRlc2MYBSABKAkSFwoP",
|
|
"c3VnZ2VzdGVkX3Bvd2VyGAYgASgFEhQKDHByZV9sZXZlbF9pZBgHIAEoBRIW",
|
|
"Cg5wcmVfbGV2ZWxfc3RhchgIIAEoBRIYChBuZWVkX3dvcmxkX2NsYXNzGAkg",
|
|
"ASgFEhAKCGZsb29yX2lkGAogASgFEhUKDW9uZV9zdGFyX2Rlc2MYCyABKAkS",
|
|
"FQoNdHdvX3N0YXJfZGVzYxgMIAEoCRIXCg90aHJlZV9zdGFyX2Rlc2MYDSAB",
|
|
"KAkSHwoXb25lX3N0YXJfZW5lcmd5X2NvbnN1bWUYDiABKAUSHwoXdHdvX3N0",
|
|
"YXJfZW5lcmd5X2NvbnN1bWUYDyABKAUSIQoZdGhyZWVfc3Rhcl9lbmVyZ3lf",
|
|
"Y29uc3VtZRgQIAEoBRIaChJiYXNlX2F3YXJkX3ByZXZpZXcYESABKAkSIAoY",
|
|
"cHJldmlld19tb25zdGVyX2dyb3VwX2lkGBIgASgFEgwKBGljb24YEyABKAlC",
|
|
"DqoCC05vdmEuQ2xpZW50YgZwcm90bzM="));
|
|
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
|
new pbr::FileDescriptor[] { },
|
|
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.EquipmentInstance), global::Nova.Client.EquipmentInstance.Parser, new[]{ "Id", "EquipmentType", "Difficulty", "Name", "Desc", "SuggestedPower", "PreLevelId", "PreLevelStar", "NeedWorldClass", "FloorId", "OneStarDesc", "TwoStarDesc", "ThreeStarDesc", "OneStarEnergyConsume", "TwoStarEnergyConsume", "ThreeStarEnergyConsume", "BaseAwardPreview", "PreviewMonsterGroupId", "Icon" }, null, null, null, null)
|
|
}));
|
|
}
|
|
#endregion
|
|
|
|
}
|
|
#region Messages
|
|
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
|
|
public sealed partial class EquipmentInstance : pb::IMessage<EquipmentInstance>
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
, pb::IBufferMessage
|
|
#endif
|
|
{
|
|
private static readonly pb::MessageParser<EquipmentInstance> _parser = new pb::MessageParser<EquipmentInstance>(() => new EquipmentInstance());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pb::MessageParser<EquipmentInstance> Parser { get { return _parser; } }
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pbr::MessageDescriptor Descriptor {
|
|
get { return global::Nova.Client.EquipmentInstanceReflection.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 EquipmentInstance() {
|
|
OnConstruction();
|
|
}
|
|
|
|
partial void OnConstruction();
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public EquipmentInstance(EquipmentInstance other) : this() {
|
|
id_ = other.id_;
|
|
equipmentType_ = other.equipmentType_;
|
|
difficulty_ = other.difficulty_;
|
|
name_ = other.name_;
|
|
desc_ = other.desc_;
|
|
suggestedPower_ = other.suggestedPower_;
|
|
preLevelId_ = other.preLevelId_;
|
|
preLevelStar_ = other.preLevelStar_;
|
|
needWorldClass_ = other.needWorldClass_;
|
|
floorId_ = other.floorId_;
|
|
oneStarDesc_ = other.oneStarDesc_;
|
|
twoStarDesc_ = other.twoStarDesc_;
|
|
threeStarDesc_ = other.threeStarDesc_;
|
|
oneStarEnergyConsume_ = other.oneStarEnergyConsume_;
|
|
twoStarEnergyConsume_ = other.twoStarEnergyConsume_;
|
|
threeStarEnergyConsume_ = other.threeStarEnergyConsume_;
|
|
baseAwardPreview_ = other.baseAwardPreview_;
|
|
previewMonsterGroupId_ = other.previewMonsterGroupId_;
|
|
icon_ = other.icon_;
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public EquipmentInstance Clone() {
|
|
return new EquipmentInstance(this);
|
|
}
|
|
|
|
/// <summary>Field number for the "id" field.</summary>
|
|
public const int IdFieldNumber = 1;
|
|
private int id_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public int Id {
|
|
get { return id_; }
|
|
set {
|
|
id_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "equipment_type" field.</summary>
|
|
public const int EquipmentTypeFieldNumber = 2;
|
|
private int equipmentType_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public int EquipmentType {
|
|
get { return equipmentType_; }
|
|
set {
|
|
equipmentType_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "difficulty" field.</summary>
|
|
public const int DifficultyFieldNumber = 3;
|
|
private int difficulty_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public int Difficulty {
|
|
get { return difficulty_; }
|
|
set {
|
|
difficulty_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "name" field.</summary>
|
|
public const int NameFieldNumber = 4;
|
|
private string name_ = "";
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public string Name {
|
|
get { return name_; }
|
|
set {
|
|
name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "desc" field.</summary>
|
|
public const int DescFieldNumber = 5;
|
|
private string desc_ = "";
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public string Desc {
|
|
get { return desc_; }
|
|
set {
|
|
desc_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "suggested_power" field.</summary>
|
|
public const int SuggestedPowerFieldNumber = 6;
|
|
private int suggestedPower_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public int SuggestedPower {
|
|
get { return suggestedPower_; }
|
|
set {
|
|
suggestedPower_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "pre_level_id" field.</summary>
|
|
public const int PreLevelIdFieldNumber = 7;
|
|
private int preLevelId_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public int PreLevelId {
|
|
get { return preLevelId_; }
|
|
set {
|
|
preLevelId_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "pre_level_star" field.</summary>
|
|
public const int PreLevelStarFieldNumber = 8;
|
|
private int preLevelStar_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public int PreLevelStar {
|
|
get { return preLevelStar_; }
|
|
set {
|
|
preLevelStar_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "need_world_class" field.</summary>
|
|
public const int NeedWorldClassFieldNumber = 9;
|
|
private int needWorldClass_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public int NeedWorldClass {
|
|
get { return needWorldClass_; }
|
|
set {
|
|
needWorldClass_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "floor_id" field.</summary>
|
|
public const int FloorIdFieldNumber = 10;
|
|
private int floorId_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public int FloorId {
|
|
get { return floorId_; }
|
|
set {
|
|
floorId_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "one_star_desc" field.</summary>
|
|
public const int OneStarDescFieldNumber = 11;
|
|
private string oneStarDesc_ = "";
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public string OneStarDesc {
|
|
get { return oneStarDesc_; }
|
|
set {
|
|
oneStarDesc_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "two_star_desc" field.</summary>
|
|
public const int TwoStarDescFieldNumber = 12;
|
|
private string twoStarDesc_ = "";
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public string TwoStarDesc {
|
|
get { return twoStarDesc_; }
|
|
set {
|
|
twoStarDesc_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "three_star_desc" field.</summary>
|
|
public const int ThreeStarDescFieldNumber = 13;
|
|
private string threeStarDesc_ = "";
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public string ThreeStarDesc {
|
|
get { return threeStarDesc_; }
|
|
set {
|
|
threeStarDesc_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "one_star_energy_consume" field.</summary>
|
|
public const int OneStarEnergyConsumeFieldNumber = 14;
|
|
private int oneStarEnergyConsume_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public int OneStarEnergyConsume {
|
|
get { return oneStarEnergyConsume_; }
|
|
set {
|
|
oneStarEnergyConsume_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "two_star_energy_consume" field.</summary>
|
|
public const int TwoStarEnergyConsumeFieldNumber = 15;
|
|
private int twoStarEnergyConsume_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public int TwoStarEnergyConsume {
|
|
get { return twoStarEnergyConsume_; }
|
|
set {
|
|
twoStarEnergyConsume_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "three_star_energy_consume" field.</summary>
|
|
public const int ThreeStarEnergyConsumeFieldNumber = 16;
|
|
private int threeStarEnergyConsume_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public int ThreeStarEnergyConsume {
|
|
get { return threeStarEnergyConsume_; }
|
|
set {
|
|
threeStarEnergyConsume_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "base_award_preview" field.</summary>
|
|
public const int BaseAwardPreviewFieldNumber = 17;
|
|
private string baseAwardPreview_ = "";
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public string BaseAwardPreview {
|
|
get { return baseAwardPreview_; }
|
|
set {
|
|
baseAwardPreview_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "preview_monster_group_id" field.</summary>
|
|
public const int PreviewMonsterGroupIdFieldNumber = 18;
|
|
private int previewMonsterGroupId_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public int PreviewMonsterGroupId {
|
|
get { return previewMonsterGroupId_; }
|
|
set {
|
|
previewMonsterGroupId_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "icon" field.</summary>
|
|
public const int IconFieldNumber = 19;
|
|
private string icon_ = "";
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public string Icon {
|
|
get { return icon_; }
|
|
set {
|
|
icon_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public override bool Equals(object other) {
|
|
return Equals(other as EquipmentInstance);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public bool Equals(EquipmentInstance other) {
|
|
if (ReferenceEquals(other, null)) {
|
|
return false;
|
|
}
|
|
if (ReferenceEquals(other, this)) {
|
|
return true;
|
|
}
|
|
if (Id != other.Id) return false;
|
|
if (EquipmentType != other.EquipmentType) return false;
|
|
if (Difficulty != other.Difficulty) return false;
|
|
if (Name != other.Name) return false;
|
|
if (Desc != other.Desc) return false;
|
|
if (SuggestedPower != other.SuggestedPower) return false;
|
|
if (PreLevelId != other.PreLevelId) return false;
|
|
if (PreLevelStar != other.PreLevelStar) return false;
|
|
if (NeedWorldClass != other.NeedWorldClass) return false;
|
|
if (FloorId != other.FloorId) return false;
|
|
if (OneStarDesc != other.OneStarDesc) return false;
|
|
if (TwoStarDesc != other.TwoStarDesc) return false;
|
|
if (ThreeStarDesc != other.ThreeStarDesc) return false;
|
|
if (OneStarEnergyConsume != other.OneStarEnergyConsume) return false;
|
|
if (TwoStarEnergyConsume != other.TwoStarEnergyConsume) return false;
|
|
if (ThreeStarEnergyConsume != other.ThreeStarEnergyConsume) return false;
|
|
if (BaseAwardPreview != other.BaseAwardPreview) return false;
|
|
if (PreviewMonsterGroupId != other.PreviewMonsterGroupId) return false;
|
|
if (Icon != other.Icon) 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 (Id != 0) hash ^= Id.GetHashCode();
|
|
if (EquipmentType != 0) hash ^= EquipmentType.GetHashCode();
|
|
if (Difficulty != 0) hash ^= Difficulty.GetHashCode();
|
|
if (Name.Length != 0) hash ^= Name.GetHashCode();
|
|
if (Desc.Length != 0) hash ^= Desc.GetHashCode();
|
|
if (SuggestedPower != 0) hash ^= SuggestedPower.GetHashCode();
|
|
if (PreLevelId != 0) hash ^= PreLevelId.GetHashCode();
|
|
if (PreLevelStar != 0) hash ^= PreLevelStar.GetHashCode();
|
|
if (NeedWorldClass != 0) hash ^= NeedWorldClass.GetHashCode();
|
|
if (FloorId != 0) hash ^= FloorId.GetHashCode();
|
|
if (OneStarDesc.Length != 0) hash ^= OneStarDesc.GetHashCode();
|
|
if (TwoStarDesc.Length != 0) hash ^= TwoStarDesc.GetHashCode();
|
|
if (ThreeStarDesc.Length != 0) hash ^= ThreeStarDesc.GetHashCode();
|
|
if (OneStarEnergyConsume != 0) hash ^= OneStarEnergyConsume.GetHashCode();
|
|
if (TwoStarEnergyConsume != 0) hash ^= TwoStarEnergyConsume.GetHashCode();
|
|
if (ThreeStarEnergyConsume != 0) hash ^= ThreeStarEnergyConsume.GetHashCode();
|
|
if (BaseAwardPreview.Length != 0) hash ^= BaseAwardPreview.GetHashCode();
|
|
if (PreviewMonsterGroupId != 0) hash ^= PreviewMonsterGroupId.GetHashCode();
|
|
if (Icon.Length != 0) hash ^= Icon.GetHashCode();
|
|
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 (Id != 0) {
|
|
output.WriteRawTag(8);
|
|
output.WriteInt32(Id);
|
|
}
|
|
if (EquipmentType != 0) {
|
|
output.WriteRawTag(16);
|
|
output.WriteInt32(EquipmentType);
|
|
}
|
|
if (Difficulty != 0) {
|
|
output.WriteRawTag(24);
|
|
output.WriteInt32(Difficulty);
|
|
}
|
|
if (Name.Length != 0) {
|
|
output.WriteRawTag(34);
|
|
output.WriteString(Name);
|
|
}
|
|
if (Desc.Length != 0) {
|
|
output.WriteRawTag(42);
|
|
output.WriteString(Desc);
|
|
}
|
|
if (SuggestedPower != 0) {
|
|
output.WriteRawTag(48);
|
|
output.WriteInt32(SuggestedPower);
|
|
}
|
|
if (PreLevelId != 0) {
|
|
output.WriteRawTag(56);
|
|
output.WriteInt32(PreLevelId);
|
|
}
|
|
if (PreLevelStar != 0) {
|
|
output.WriteRawTag(64);
|
|
output.WriteInt32(PreLevelStar);
|
|
}
|
|
if (NeedWorldClass != 0) {
|
|
output.WriteRawTag(72);
|
|
output.WriteInt32(NeedWorldClass);
|
|
}
|
|
if (FloorId != 0) {
|
|
output.WriteRawTag(80);
|
|
output.WriteInt32(FloorId);
|
|
}
|
|
if (OneStarDesc.Length != 0) {
|
|
output.WriteRawTag(90);
|
|
output.WriteString(OneStarDesc);
|
|
}
|
|
if (TwoStarDesc.Length != 0) {
|
|
output.WriteRawTag(98);
|
|
output.WriteString(TwoStarDesc);
|
|
}
|
|
if (ThreeStarDesc.Length != 0) {
|
|
output.WriteRawTag(106);
|
|
output.WriteString(ThreeStarDesc);
|
|
}
|
|
if (OneStarEnergyConsume != 0) {
|
|
output.WriteRawTag(112);
|
|
output.WriteInt32(OneStarEnergyConsume);
|
|
}
|
|
if (TwoStarEnergyConsume != 0) {
|
|
output.WriteRawTag(120);
|
|
output.WriteInt32(TwoStarEnergyConsume);
|
|
}
|
|
if (ThreeStarEnergyConsume != 0) {
|
|
output.WriteRawTag(128, 1);
|
|
output.WriteInt32(ThreeStarEnergyConsume);
|
|
}
|
|
if (BaseAwardPreview.Length != 0) {
|
|
output.WriteRawTag(138, 1);
|
|
output.WriteString(BaseAwardPreview);
|
|
}
|
|
if (PreviewMonsterGroupId != 0) {
|
|
output.WriteRawTag(144, 1);
|
|
output.WriteInt32(PreviewMonsterGroupId);
|
|
}
|
|
if (Icon.Length != 0) {
|
|
output.WriteRawTag(154, 1);
|
|
output.WriteString(Icon);
|
|
}
|
|
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 (Id != 0) {
|
|
output.WriteRawTag(8);
|
|
output.WriteInt32(Id);
|
|
}
|
|
if (EquipmentType != 0) {
|
|
output.WriteRawTag(16);
|
|
output.WriteInt32(EquipmentType);
|
|
}
|
|
if (Difficulty != 0) {
|
|
output.WriteRawTag(24);
|
|
output.WriteInt32(Difficulty);
|
|
}
|
|
if (Name.Length != 0) {
|
|
output.WriteRawTag(34);
|
|
output.WriteString(Name);
|
|
}
|
|
if (Desc.Length != 0) {
|
|
output.WriteRawTag(42);
|
|
output.WriteString(Desc);
|
|
}
|
|
if (SuggestedPower != 0) {
|
|
output.WriteRawTag(48);
|
|
output.WriteInt32(SuggestedPower);
|
|
}
|
|
if (PreLevelId != 0) {
|
|
output.WriteRawTag(56);
|
|
output.WriteInt32(PreLevelId);
|
|
}
|
|
if (PreLevelStar != 0) {
|
|
output.WriteRawTag(64);
|
|
output.WriteInt32(PreLevelStar);
|
|
}
|
|
if (NeedWorldClass != 0) {
|
|
output.WriteRawTag(72);
|
|
output.WriteInt32(NeedWorldClass);
|
|
}
|
|
if (FloorId != 0) {
|
|
output.WriteRawTag(80);
|
|
output.WriteInt32(FloorId);
|
|
}
|
|
if (OneStarDesc.Length != 0) {
|
|
output.WriteRawTag(90);
|
|
output.WriteString(OneStarDesc);
|
|
}
|
|
if (TwoStarDesc.Length != 0) {
|
|
output.WriteRawTag(98);
|
|
output.WriteString(TwoStarDesc);
|
|
}
|
|
if (ThreeStarDesc.Length != 0) {
|
|
output.WriteRawTag(106);
|
|
output.WriteString(ThreeStarDesc);
|
|
}
|
|
if (OneStarEnergyConsume != 0) {
|
|
output.WriteRawTag(112);
|
|
output.WriteInt32(OneStarEnergyConsume);
|
|
}
|
|
if (TwoStarEnergyConsume != 0) {
|
|
output.WriteRawTag(120);
|
|
output.WriteInt32(TwoStarEnergyConsume);
|
|
}
|
|
if (ThreeStarEnergyConsume != 0) {
|
|
output.WriteRawTag(128, 1);
|
|
output.WriteInt32(ThreeStarEnergyConsume);
|
|
}
|
|
if (BaseAwardPreview.Length != 0) {
|
|
output.WriteRawTag(138, 1);
|
|
output.WriteString(BaseAwardPreview);
|
|
}
|
|
if (PreviewMonsterGroupId != 0) {
|
|
output.WriteRawTag(144, 1);
|
|
output.WriteInt32(PreviewMonsterGroupId);
|
|
}
|
|
if (Icon.Length != 0) {
|
|
output.WriteRawTag(154, 1);
|
|
output.WriteString(Icon);
|
|
}
|
|
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 (Id != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id);
|
|
}
|
|
if (EquipmentType != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeInt32Size(EquipmentType);
|
|
}
|
|
if (Difficulty != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Difficulty);
|
|
}
|
|
if (Name.Length != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
|
|
}
|
|
if (Desc.Length != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc);
|
|
}
|
|
if (SuggestedPower != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeInt32Size(SuggestedPower);
|
|
}
|
|
if (PreLevelId != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeInt32Size(PreLevelId);
|
|
}
|
|
if (PreLevelStar != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeInt32Size(PreLevelStar);
|
|
}
|
|
if (NeedWorldClass != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeInt32Size(NeedWorldClass);
|
|
}
|
|
if (FloorId != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeInt32Size(FloorId);
|
|
}
|
|
if (OneStarDesc.Length != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(OneStarDesc);
|
|
}
|
|
if (TwoStarDesc.Length != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(TwoStarDesc);
|
|
}
|
|
if (ThreeStarDesc.Length != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(ThreeStarDesc);
|
|
}
|
|
if (OneStarEnergyConsume != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeInt32Size(OneStarEnergyConsume);
|
|
}
|
|
if (TwoStarEnergyConsume != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeInt32Size(TwoStarEnergyConsume);
|
|
}
|
|
if (ThreeStarEnergyConsume != 0) {
|
|
size += 2 + pb::CodedOutputStream.ComputeInt32Size(ThreeStarEnergyConsume);
|
|
}
|
|
if (BaseAwardPreview.Length != 0) {
|
|
size += 2 + pb::CodedOutputStream.ComputeStringSize(BaseAwardPreview);
|
|
}
|
|
if (PreviewMonsterGroupId != 0) {
|
|
size += 2 + pb::CodedOutputStream.ComputeInt32Size(PreviewMonsterGroupId);
|
|
}
|
|
if (Icon.Length != 0) {
|
|
size += 2 + pb::CodedOutputStream.ComputeStringSize(Icon);
|
|
}
|
|
if (_unknownFields != null) {
|
|
size += _unknownFields.CalculateSize();
|
|
}
|
|
return size;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void MergeFrom(EquipmentInstance other) {
|
|
if (other == null) {
|
|
return;
|
|
}
|
|
if (other.Id != 0) {
|
|
Id = other.Id;
|
|
}
|
|
if (other.EquipmentType != 0) {
|
|
EquipmentType = other.EquipmentType;
|
|
}
|
|
if (other.Difficulty != 0) {
|
|
Difficulty = other.Difficulty;
|
|
}
|
|
if (other.Name.Length != 0) {
|
|
Name = other.Name;
|
|
}
|
|
if (other.Desc.Length != 0) {
|
|
Desc = other.Desc;
|
|
}
|
|
if (other.SuggestedPower != 0) {
|
|
SuggestedPower = other.SuggestedPower;
|
|
}
|
|
if (other.PreLevelId != 0) {
|
|
PreLevelId = other.PreLevelId;
|
|
}
|
|
if (other.PreLevelStar != 0) {
|
|
PreLevelStar = other.PreLevelStar;
|
|
}
|
|
if (other.NeedWorldClass != 0) {
|
|
NeedWorldClass = other.NeedWorldClass;
|
|
}
|
|
if (other.FloorId != 0) {
|
|
FloorId = other.FloorId;
|
|
}
|
|
if (other.OneStarDesc.Length != 0) {
|
|
OneStarDesc = other.OneStarDesc;
|
|
}
|
|
if (other.TwoStarDesc.Length != 0) {
|
|
TwoStarDesc = other.TwoStarDesc;
|
|
}
|
|
if (other.ThreeStarDesc.Length != 0) {
|
|
ThreeStarDesc = other.ThreeStarDesc;
|
|
}
|
|
if (other.OneStarEnergyConsume != 0) {
|
|
OneStarEnergyConsume = other.OneStarEnergyConsume;
|
|
}
|
|
if (other.TwoStarEnergyConsume != 0) {
|
|
TwoStarEnergyConsume = other.TwoStarEnergyConsume;
|
|
}
|
|
if (other.ThreeStarEnergyConsume != 0) {
|
|
ThreeStarEnergyConsume = other.ThreeStarEnergyConsume;
|
|
}
|
|
if (other.BaseAwardPreview.Length != 0) {
|
|
BaseAwardPreview = other.BaseAwardPreview;
|
|
}
|
|
if (other.PreviewMonsterGroupId != 0) {
|
|
PreviewMonsterGroupId = other.PreviewMonsterGroupId;
|
|
}
|
|
if (other.Icon.Length != 0) {
|
|
Icon = other.Icon;
|
|
}
|
|
_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) {
|
|
if ((tag & 7) == 4) {
|
|
// Abort on any end group tag.
|
|
return;
|
|
}
|
|
switch(tag) {
|
|
default:
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
|
break;
|
|
case 8: {
|
|
Id = input.ReadInt32();
|
|
break;
|
|
}
|
|
case 16: {
|
|
EquipmentType = input.ReadInt32();
|
|
break;
|
|
}
|
|
case 24: {
|
|
Difficulty = input.ReadInt32();
|
|
break;
|
|
}
|
|
case 34: {
|
|
Name = input.ReadString();
|
|
break;
|
|
}
|
|
case 42: {
|
|
Desc = input.ReadString();
|
|
break;
|
|
}
|
|
case 48: {
|
|
SuggestedPower = input.ReadInt32();
|
|
break;
|
|
}
|
|
case 56: {
|
|
PreLevelId = input.ReadInt32();
|
|
break;
|
|
}
|
|
case 64: {
|
|
PreLevelStar = input.ReadInt32();
|
|
break;
|
|
}
|
|
case 72: {
|
|
NeedWorldClass = input.ReadInt32();
|
|
break;
|
|
}
|
|
case 80: {
|
|
FloorId = input.ReadInt32();
|
|
break;
|
|
}
|
|
case 90: {
|
|
OneStarDesc = input.ReadString();
|
|
break;
|
|
}
|
|
case 98: {
|
|
TwoStarDesc = input.ReadString();
|
|
break;
|
|
}
|
|
case 106: {
|
|
ThreeStarDesc = input.ReadString();
|
|
break;
|
|
}
|
|
case 112: {
|
|
OneStarEnergyConsume = input.ReadInt32();
|
|
break;
|
|
}
|
|
case 120: {
|
|
TwoStarEnergyConsume = input.ReadInt32();
|
|
break;
|
|
}
|
|
case 128: {
|
|
ThreeStarEnergyConsume = input.ReadInt32();
|
|
break;
|
|
}
|
|
case 138: {
|
|
BaseAwardPreview = input.ReadString();
|
|
break;
|
|
}
|
|
case 144: {
|
|
PreviewMonsterGroupId = input.ReadInt32();
|
|
break;
|
|
}
|
|
case 154: {
|
|
Icon = input.ReadString();
|
|
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) {
|
|
if ((tag & 7) == 4) {
|
|
// Abort on any end group tag.
|
|
return;
|
|
}
|
|
switch(tag) {
|
|
default:
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
|
|
break;
|
|
case 8: {
|
|
Id = input.ReadInt32();
|
|
break;
|
|
}
|
|
case 16: {
|
|
EquipmentType = input.ReadInt32();
|
|
break;
|
|
}
|
|
case 24: {
|
|
Difficulty = input.ReadInt32();
|
|
break;
|
|
}
|
|
case 34: {
|
|
Name = input.ReadString();
|
|
break;
|
|
}
|
|
case 42: {
|
|
Desc = input.ReadString();
|
|
break;
|
|
}
|
|
case 48: {
|
|
SuggestedPower = input.ReadInt32();
|
|
break;
|
|
}
|
|
case 56: {
|
|
PreLevelId = input.ReadInt32();
|
|
break;
|
|
}
|
|
case 64: {
|
|
PreLevelStar = input.ReadInt32();
|
|
break;
|
|
}
|
|
case 72: {
|
|
NeedWorldClass = input.ReadInt32();
|
|
break;
|
|
}
|
|
case 80: {
|
|
FloorId = input.ReadInt32();
|
|
break;
|
|
}
|
|
case 90: {
|
|
OneStarDesc = input.ReadString();
|
|
break;
|
|
}
|
|
case 98: {
|
|
TwoStarDesc = input.ReadString();
|
|
break;
|
|
}
|
|
case 106: {
|
|
ThreeStarDesc = input.ReadString();
|
|
break;
|
|
}
|
|
case 112: {
|
|
OneStarEnergyConsume = input.ReadInt32();
|
|
break;
|
|
}
|
|
case 120: {
|
|
TwoStarEnergyConsume = input.ReadInt32();
|
|
break;
|
|
}
|
|
case 128: {
|
|
ThreeStarEnergyConsume = input.ReadInt32();
|
|
break;
|
|
}
|
|
case 138: {
|
|
BaseAwardPreview = input.ReadString();
|
|
break;
|
|
}
|
|
case 144: {
|
|
PreviewMonsterGroupId = input.ReadInt32();
|
|
break;
|
|
}
|
|
case 154: {
|
|
Icon = input.ReadString();
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
#endif
|
|
|
|
}
|
|
|
|
#endregion
|
|
|
|
}
|
|
|
|
#endregion Designer generated code
|