mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 11:39:50 +02:00
feat: let the damn thing compile
This commit is contained in:
1 parent
5d81b7ff5a
commit
74fefe6291
40 files changed
+34496
-378
No files matched your search
@@ -0,0 +1,592 @@
|
||||
// <auto-generated>
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: packages/core/src/protos/legacy_camouflage_definitions.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 Blitzkit {
|
||||
|
||||
/// <summary>Holder for reflection information generated from packages/core/src/protos/legacy_camouflage_definitions.proto</summary>
|
||||
public static partial class LegacyCamouflageDefinitionsReflection {
|
||||
|
||||
#region Descriptor
|
||||
/// <summary>File descriptor for packages/core/src/protos/legacy_camouflage_definitions.proto</summary>
|
||||
public static pbr::FileDescriptor Descriptor {
|
||||
get { return descriptor; }
|
||||
}
|
||||
private static pbr::FileDescriptor descriptor;
|
||||
|
||||
static LegacyCamouflageDefinitionsReflection() {
|
||||
byte[] descriptorData = global::System.Convert.FromBase64String(
|
||||
string.Concat(
|
||||
"CjxwYWNrYWdlcy9jb3JlL3NyYy9wcm90b3MvbGVnYWN5X2NhbW91ZmxhZ2Vf",
|
||||
"ZGVmaW5pdGlvbnMucHJvdG8SCGJsaXR6a2l0GipwYWNrYWdlcy9jb3JlL3Ny",
|
||||
"Yy9wcm90b3MvbGVnYWN5X2kxOG4ucHJvdG8iqAEKFUNhbW91ZmxhZ2VEZWZp",
|
||||
"bml0aW9ucxJFCgtjYW1vdWZsYWdlcxgBIAMoCzIwLmJsaXR6a2l0LkNhbW91",
|
||||
"ZmxhZ2VEZWZpbml0aW9ucy5DYW1vdWZsYWdlc0VudHJ5GkgKEENhbW91Zmxh",
|
||||
"Z2VzRW50cnkSCwoDa2V5GAEgASgNEiMKBXZhbHVlGAIgASgLMhQuYmxpdHpr",
|
||||
"aXQuQ2Ftb3VmbGFnZToCOAEikwEKCkNhbW91ZmxhZ2USCgoCaWQYASACKA0S",
|
||||
"IgoEbmFtZRgCIAIoCzIULmJsaXR6a2l0LkkxOG5TdHJpbmcSJwoJdGFua19u",
|
||||
"YW1lGAMgASgLMhQuYmxpdHpraXQuSTE4blN0cmluZxIsCg50YW5rX25hbWVf",
|
||||
"ZnVsbBgEIAEoCzIULmJsaXR6a2l0LkkxOG5TdHJpbmc="));
|
||||
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
||||
new pbr::FileDescriptor[] { global::Blitzkit.LegacyI18NReflection.Descriptor, },
|
||||
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
|
||||
new pbr::GeneratedClrTypeInfo(typeof(global::Blitzkit.CamouflageDefinitions), global::Blitzkit.CamouflageDefinitions.Parser, new[]{ "Camouflages" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }),
|
||||
new pbr::GeneratedClrTypeInfo(typeof(global::Blitzkit.Camouflage), global::Blitzkit.Camouflage.Parser, new[]{ "Id", "Name", "TankName", "TankNameFull" }, null, null, null, null)
|
||||
}));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
#region Messages
|
||||
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
|
||||
public sealed partial class CamouflageDefinitions : pb::IMessage<CamouflageDefinitions>
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
, pb::IBufferMessage
|
||||
#endif
|
||||
{
|
||||
private static readonly pb::MessageParser<CamouflageDefinitions> _parser = new pb::MessageParser<CamouflageDefinitions>(() => new CamouflageDefinitions());
|
||||
private pb::UnknownFieldSet _unknownFields;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pb::MessageParser<CamouflageDefinitions> Parser { get { return _parser; } }
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pbr::MessageDescriptor Descriptor {
|
||||
get { return global::Blitzkit.LegacyCamouflageDefinitionsReflection.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 CamouflageDefinitions() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public CamouflageDefinitions(CamouflageDefinitions other) : this() {
|
||||
camouflages_ = other.camouflages_.Clone();
|
||||
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public CamouflageDefinitions Clone() {
|
||||
return new CamouflageDefinitions(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "camouflages" field.</summary>
|
||||
public const int CamouflagesFieldNumber = 1;
|
||||
private static readonly pbc::MapField<uint, global::Blitzkit.Camouflage>.Codec _map_camouflages_codec
|
||||
= new pbc::MapField<uint, global::Blitzkit.Camouflage>.Codec(pb::FieldCodec.ForUInt32(8, 0), pb::FieldCodec.ForMessage(18, global::Blitzkit.Camouflage.Parser), 10);
|
||||
private readonly pbc::MapField<uint, global::Blitzkit.Camouflage> camouflages_ = new pbc::MapField<uint, global::Blitzkit.Camouflage>();
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public pbc::MapField<uint, global::Blitzkit.Camouflage> Camouflages {
|
||||
get { return camouflages_; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override bool Equals(object other) {
|
||||
return Equals(other as CamouflageDefinitions);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool Equals(CamouflageDefinitions other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if (!Camouflages.Equals(other.Camouflages)) 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;
|
||||
hash ^= Camouflages.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
|
||||
camouflages_.WriteTo(output, _map_camouflages_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) {
|
||||
camouflages_.WriteTo(ref output, _map_camouflages_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;
|
||||
size += camouflages_.CalculateSize(_map_camouflages_codec);
|
||||
if (_unknownFields != null) {
|
||||
size += _unknownFields.CalculateSize();
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void MergeFrom(CamouflageDefinitions other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
camouflages_.MergeFrom(other.camouflages_);
|
||||
_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 10: {
|
||||
camouflages_.AddEntriesFrom(input, _map_camouflages_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 10: {
|
||||
camouflages_.AddEntriesFrom(ref input, _map_camouflages_codec);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
|
||||
public sealed partial class Camouflage : pb::IMessage<Camouflage>
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
, pb::IBufferMessage
|
||||
#endif
|
||||
{
|
||||
private static readonly pb::MessageParser<Camouflage> _parser = new pb::MessageParser<Camouflage>(() => new Camouflage());
|
||||
private pb::UnknownFieldSet _unknownFields;
|
||||
private int _hasBits0;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pb::MessageParser<Camouflage> Parser { get { return _parser; } }
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pbr::MessageDescriptor Descriptor {
|
||||
get { return global::Blitzkit.LegacyCamouflageDefinitionsReflection.Descriptor.MessageTypes[1]; }
|
||||
}
|
||||
|
||||
[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 Camouflage() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public Camouflage(Camouflage other) : this() {
|
||||
_hasBits0 = other._hasBits0;
|
||||
id_ = other.id_;
|
||||
name_ = other.name_ != null ? other.name_.Clone() : null;
|
||||
tankName_ = other.tankName_ != null ? other.tankName_.Clone() : null;
|
||||
tankNameFull_ = other.tankNameFull_ != null ? other.tankNameFull_.Clone() : null;
|
||||
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public Camouflage Clone() {
|
||||
return new Camouflage(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "id" field.</summary>
|
||||
public const int IdFieldNumber = 1;
|
||||
private readonly static uint IdDefaultValue = 0;
|
||||
|
||||
private uint id_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public uint Id {
|
||||
get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 1;
|
||||
id_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "id" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasId {
|
||||
get { return (_hasBits0 & 1) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "id" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearId() {
|
||||
_hasBits0 &= ~1;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "name" field.</summary>
|
||||
public const int NameFieldNumber = 2;
|
||||
private global::Blitzkit.I18nString name_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public global::Blitzkit.I18nString Name {
|
||||
get { return name_; }
|
||||
set {
|
||||
name_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "tank_name" field.</summary>
|
||||
public const int TankNameFieldNumber = 3;
|
||||
private global::Blitzkit.I18nString tankName_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public global::Blitzkit.I18nString TankName {
|
||||
get { return tankName_; }
|
||||
set {
|
||||
tankName_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "tank_name_full" field.</summary>
|
||||
public const int TankNameFullFieldNumber = 4;
|
||||
private global::Blitzkit.I18nString tankNameFull_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public global::Blitzkit.I18nString TankNameFull {
|
||||
get { return tankNameFull_; }
|
||||
set {
|
||||
tankNameFull_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override bool Equals(object other) {
|
||||
return Equals(other as Camouflage);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool Equals(Camouflage other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if (Id != other.Id) return false;
|
||||
if (!object.Equals(Name, other.Name)) return false;
|
||||
if (!object.Equals(TankName, other.TankName)) return false;
|
||||
if (!object.Equals(TankNameFull, other.TankNameFull)) 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 (HasId) hash ^= Id.GetHashCode();
|
||||
if (name_ != null) hash ^= Name.GetHashCode();
|
||||
if (tankName_ != null) hash ^= TankName.GetHashCode();
|
||||
if (tankNameFull_ != null) hash ^= TankNameFull.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 (HasId) {
|
||||
output.WriteRawTag(8);
|
||||
output.WriteUInt32(Id);
|
||||
}
|
||||
if (name_ != null) {
|
||||
output.WriteRawTag(18);
|
||||
output.WriteMessage(Name);
|
||||
}
|
||||
if (tankName_ != null) {
|
||||
output.WriteRawTag(26);
|
||||
output.WriteMessage(TankName);
|
||||
}
|
||||
if (tankNameFull_ != null) {
|
||||
output.WriteRawTag(34);
|
||||
output.WriteMessage(TankNameFull);
|
||||
}
|
||||
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 (HasId) {
|
||||
output.WriteRawTag(8);
|
||||
output.WriteUInt32(Id);
|
||||
}
|
||||
if (name_ != null) {
|
||||
output.WriteRawTag(18);
|
||||
output.WriteMessage(Name);
|
||||
}
|
||||
if (tankName_ != null) {
|
||||
output.WriteRawTag(26);
|
||||
output.WriteMessage(TankName);
|
||||
}
|
||||
if (tankNameFull_ != null) {
|
||||
output.WriteRawTag(34);
|
||||
output.WriteMessage(TankNameFull);
|
||||
}
|
||||
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 (HasId) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Id);
|
||||
}
|
||||
if (name_ != null) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Name);
|
||||
}
|
||||
if (tankName_ != null) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeMessageSize(TankName);
|
||||
}
|
||||
if (tankNameFull_ != null) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeMessageSize(TankNameFull);
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
size += _unknownFields.CalculateSize();
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void MergeFrom(Camouflage other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
if (other.HasId) {
|
||||
Id = other.Id;
|
||||
}
|
||||
if (other.name_ != null) {
|
||||
if (name_ == null) {
|
||||
Name = new global::Blitzkit.I18nString();
|
||||
}
|
||||
Name.MergeFrom(other.Name);
|
||||
}
|
||||
if (other.tankName_ != null) {
|
||||
if (tankName_ == null) {
|
||||
TankName = new global::Blitzkit.I18nString();
|
||||
}
|
||||
TankName.MergeFrom(other.TankName);
|
||||
}
|
||||
if (other.tankNameFull_ != null) {
|
||||
if (tankNameFull_ == null) {
|
||||
TankNameFull = new global::Blitzkit.I18nString();
|
||||
}
|
||||
TankNameFull.MergeFrom(other.TankNameFull);
|
||||
}
|
||||
_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.ReadUInt32();
|
||||
break;
|
||||
}
|
||||
case 18: {
|
||||
if (name_ == null) {
|
||||
Name = new global::Blitzkit.I18nString();
|
||||
}
|
||||
input.ReadMessage(Name);
|
||||
break;
|
||||
}
|
||||
case 26: {
|
||||
if (tankName_ == null) {
|
||||
TankName = new global::Blitzkit.I18nString();
|
||||
}
|
||||
input.ReadMessage(TankName);
|
||||
break;
|
||||
}
|
||||
case 34: {
|
||||
if (tankNameFull_ == null) {
|
||||
TankNameFull = new global::Blitzkit.I18nString();
|
||||
}
|
||||
input.ReadMessage(TankNameFull);
|
||||
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.ReadUInt32();
|
||||
break;
|
||||
}
|
||||
case 18: {
|
||||
if (name_ == null) {
|
||||
Name = new global::Blitzkit.I18nString();
|
||||
}
|
||||
input.ReadMessage(Name);
|
||||
break;
|
||||
}
|
||||
case 26: {
|
||||
if (tankName_ == null) {
|
||||
TankName = new global::Blitzkit.I18nString();
|
||||
}
|
||||
input.ReadMessage(TankName);
|
||||
break;
|
||||
}
|
||||
case 34: {
|
||||
if (tankNameFull_ == null) {
|
||||
TankNameFull = new global::Blitzkit.I18nString();
|
||||
}
|
||||
input.ReadMessage(TankNameFull);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion Designer generated code
|
||||
Reference in new issue
Block a user