mirror of
https://github.com/raphaeIl/Novaria.git
synced 2025-12-15 16:04:48 +01:00
486 lines
16 KiB
C#
486 lines
16 KiB
C#
// <auto-generated>
|
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
// source: TrialCharacter.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 TrialCharacter.proto</summary>
|
|
public static partial class TrialCharacterReflection {
|
|
|
|
#region Descriptor
|
|
/// <summary>File descriptor for TrialCharacter.proto</summary>
|
|
public static pbr::FileDescriptor Descriptor {
|
|
get { return descriptor; }
|
|
}
|
|
private static pbr::FileDescriptor descriptor;
|
|
|
|
static TrialCharacterReflection() {
|
|
byte[] descriptorData = global::System.Convert.FromBase64String(
|
|
string.Concat(
|
|
"ChRUcmlhbENoYXJhY3Rlci5wcm90byKWAQoOVHJpYWxDaGFyYWN0ZXISCgoC",
|
|
"aWQYASABKAUSDAoEbmFtZRgCIAEoCRIPCgdjaGFyX2lkGAMgASgFEhYKDmNo",
|
|
"YXJhY3Rlcl9za2luGAQgASgFEg0KBWJyZWFrGAUgASgFEg0KBWxldmVsGAYg",
|
|
"ASgFEhMKC3NraWxsX2xldmVsGAcgAygFEg4KBnRhbGVudBgIIAMoBUIOqgIL",
|
|
"Tm92YS5DbGllbnRiBnByb3RvMw=="));
|
|
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
|
new pbr::FileDescriptor[] { },
|
|
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.TrialCharacter), global::Nova.Client.TrialCharacter.Parser, new[]{ "Id", "Name", "CharId", "CharacterSkin", "Break", "Level", "SkillLevel", "Talent" }, null, null, null, null)
|
|
}));
|
|
}
|
|
#endregion
|
|
|
|
}
|
|
#region Messages
|
|
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
|
|
public sealed partial class TrialCharacter : pb::IMessage<TrialCharacter>
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
, pb::IBufferMessage
|
|
#endif
|
|
{
|
|
private static readonly pb::MessageParser<TrialCharacter> _parser = new pb::MessageParser<TrialCharacter>(() => new TrialCharacter());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pb::MessageParser<TrialCharacter> 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.TrialCharacterReflection.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 TrialCharacter() {
|
|
OnConstruction();
|
|
}
|
|
|
|
partial void OnConstruction();
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public TrialCharacter(TrialCharacter other) : this() {
|
|
id_ = other.id_;
|
|
name_ = other.name_;
|
|
charId_ = other.charId_;
|
|
characterSkin_ = other.characterSkin_;
|
|
break_ = other.break_;
|
|
level_ = other.level_;
|
|
skillLevel_ = other.skillLevel_.Clone();
|
|
talent_ = other.talent_.Clone();
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public TrialCharacter Clone() {
|
|
return new TrialCharacter(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 "name" field.</summary>
|
|
public const int NameFieldNumber = 2;
|
|
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 "char_id" field.</summary>
|
|
public const int CharIdFieldNumber = 3;
|
|
private int charId_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public int CharId {
|
|
get { return charId_; }
|
|
set {
|
|
charId_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "character_skin" field.</summary>
|
|
public const int CharacterSkinFieldNumber = 4;
|
|
private int characterSkin_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public int CharacterSkin {
|
|
get { return characterSkin_; }
|
|
set {
|
|
characterSkin_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "break" field.</summary>
|
|
public const int BreakFieldNumber = 5;
|
|
private int break_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public int Break {
|
|
get { return break_; }
|
|
set {
|
|
break_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "level" field.</summary>
|
|
public const int LevelFieldNumber = 6;
|
|
private int level_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public int Level {
|
|
get { return level_; }
|
|
set {
|
|
level_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "skill_level" field.</summary>
|
|
public const int SkillLevelFieldNumber = 7;
|
|
private static readonly pb::FieldCodec<int> _repeated_skillLevel_codec
|
|
= pb::FieldCodec.ForInt32(58);
|
|
private readonly pbc::RepeatedField<int> skillLevel_ = new pbc::RepeatedField<int>();
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public pbc::RepeatedField<int> SkillLevel {
|
|
get { return skillLevel_; }
|
|
}
|
|
|
|
/// <summary>Field number for the "talent" field.</summary>
|
|
public const int TalentFieldNumber = 8;
|
|
private static readonly pb::FieldCodec<int> _repeated_talent_codec
|
|
= pb::FieldCodec.ForInt32(66);
|
|
private readonly pbc::RepeatedField<int> talent_ = new pbc::RepeatedField<int>();
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public pbc::RepeatedField<int> Talent {
|
|
get { return talent_; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public override bool Equals(object other) {
|
|
return Equals(other as TrialCharacter);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public bool Equals(TrialCharacter other) {
|
|
if (ReferenceEquals(other, null)) {
|
|
return false;
|
|
}
|
|
if (ReferenceEquals(other, this)) {
|
|
return true;
|
|
}
|
|
if (Id != other.Id) return false;
|
|
if (Name != other.Name) return false;
|
|
if (CharId != other.CharId) return false;
|
|
if (CharacterSkin != other.CharacterSkin) return false;
|
|
if (Break != other.Break) return false;
|
|
if (Level != other.Level) return false;
|
|
if(!skillLevel_.Equals(other.skillLevel_)) return false;
|
|
if(!talent_.Equals(other.talent_)) 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 (Name.Length != 0) hash ^= Name.GetHashCode();
|
|
if (CharId != 0) hash ^= CharId.GetHashCode();
|
|
if (CharacterSkin != 0) hash ^= CharacterSkin.GetHashCode();
|
|
if (Break != 0) hash ^= Break.GetHashCode();
|
|
if (Level != 0) hash ^= Level.GetHashCode();
|
|
hash ^= skillLevel_.GetHashCode();
|
|
hash ^= talent_.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 (Name.Length != 0) {
|
|
output.WriteRawTag(18);
|
|
output.WriteString(Name);
|
|
}
|
|
if (CharId != 0) {
|
|
output.WriteRawTag(24);
|
|
output.WriteInt32(CharId);
|
|
}
|
|
if (CharacterSkin != 0) {
|
|
output.WriteRawTag(32);
|
|
output.WriteInt32(CharacterSkin);
|
|
}
|
|
if (Break != 0) {
|
|
output.WriteRawTag(40);
|
|
output.WriteInt32(Break);
|
|
}
|
|
if (Level != 0) {
|
|
output.WriteRawTag(48);
|
|
output.WriteInt32(Level);
|
|
}
|
|
skillLevel_.WriteTo(output, _repeated_skillLevel_codec);
|
|
talent_.WriteTo(output, _repeated_talent_codec);
|
|
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 (Name.Length != 0) {
|
|
output.WriteRawTag(18);
|
|
output.WriteString(Name);
|
|
}
|
|
if (CharId != 0) {
|
|
output.WriteRawTag(24);
|
|
output.WriteInt32(CharId);
|
|
}
|
|
if (CharacterSkin != 0) {
|
|
output.WriteRawTag(32);
|
|
output.WriteInt32(CharacterSkin);
|
|
}
|
|
if (Break != 0) {
|
|
output.WriteRawTag(40);
|
|
output.WriteInt32(Break);
|
|
}
|
|
if (Level != 0) {
|
|
output.WriteRawTag(48);
|
|
output.WriteInt32(Level);
|
|
}
|
|
skillLevel_.WriteTo(ref output, _repeated_skillLevel_codec);
|
|
talent_.WriteTo(ref output, _repeated_talent_codec);
|
|
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 (Name.Length != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
|
|
}
|
|
if (CharId != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeInt32Size(CharId);
|
|
}
|
|
if (CharacterSkin != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeInt32Size(CharacterSkin);
|
|
}
|
|
if (Break != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Break);
|
|
}
|
|
if (Level != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Level);
|
|
}
|
|
size += skillLevel_.CalculateSize(_repeated_skillLevel_codec);
|
|
size += talent_.CalculateSize(_repeated_talent_codec);
|
|
if (_unknownFields != null) {
|
|
size += _unknownFields.CalculateSize();
|
|
}
|
|
return size;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void MergeFrom(TrialCharacter other) {
|
|
if (other == null) {
|
|
return;
|
|
}
|
|
if (other.Id != 0) {
|
|
Id = other.Id;
|
|
}
|
|
if (other.Name.Length != 0) {
|
|
Name = other.Name;
|
|
}
|
|
if (other.CharId != 0) {
|
|
CharId = other.CharId;
|
|
}
|
|
if (other.CharacterSkin != 0) {
|
|
CharacterSkin = other.CharacterSkin;
|
|
}
|
|
if (other.Break != 0) {
|
|
Break = other.Break;
|
|
}
|
|
if (other.Level != 0) {
|
|
Level = other.Level;
|
|
}
|
|
skillLevel_.Add(other.skillLevel_);
|
|
talent_.Add(other.talent_);
|
|
_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 18: {
|
|
Name = input.ReadString();
|
|
break;
|
|
}
|
|
case 24: {
|
|
CharId = input.ReadInt32();
|
|
break;
|
|
}
|
|
case 32: {
|
|
CharacterSkin = input.ReadInt32();
|
|
break;
|
|
}
|
|
case 40: {
|
|
Break = input.ReadInt32();
|
|
break;
|
|
}
|
|
case 48: {
|
|
Level = input.ReadInt32();
|
|
break;
|
|
}
|
|
case 58:
|
|
case 56: {
|
|
skillLevel_.AddEntriesFrom(input, _repeated_skillLevel_codec);
|
|
break;
|
|
}
|
|
case 66:
|
|
case 64: {
|
|
talent_.AddEntriesFrom(input, _repeated_talent_codec);
|
|
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 18: {
|
|
Name = input.ReadString();
|
|
break;
|
|
}
|
|
case 24: {
|
|
CharId = input.ReadInt32();
|
|
break;
|
|
}
|
|
case 32: {
|
|
CharacterSkin = input.ReadInt32();
|
|
break;
|
|
}
|
|
case 40: {
|
|
Break = input.ReadInt32();
|
|
break;
|
|
}
|
|
case 48: {
|
|
Level = input.ReadInt32();
|
|
break;
|
|
}
|
|
case 58:
|
|
case 56: {
|
|
skillLevel_.AddEntriesFrom(ref input, _repeated_skillLevel_codec);
|
|
break;
|
|
}
|
|
case 66:
|
|
case 64: {
|
|
talent_.AddEntriesFrom(ref input, _repeated_talent_codec);
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
#endif
|
|
|
|
}
|
|
|
|
#endregion
|
|
|
|
}
|
|
|
|
#endregion Designer generated code
|