mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-24 03:59: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
@@ -25,56 +25,17 @@ namespace Blitzkit {
|
||||
byte[] descriptorData = global::System.Convert.FromBase64String(
|
||||
string.Concat(
|
||||
"CiNwYWNrYWdlcy9jb3JlL3NyYy9wcm90b3MvdGFuay5wcm90bxIIYmxpdHpr",
|
||||
"aXQaI3BhY2thZ2VzL2NvcmUvc3JjL3Byb3Rvcy9pMThuLnByb3RvInYKBFRh",
|
||||
"bmsSCgoCaWQYASACKAkSHAoEbmFtZRgCIAIoCzIOLmJsaXR6a2l0LkkxOG4S",
|
||||
"IgoFY2xhc3MYAyACKA4yEy5ibGl0emtpdC5UYW5rQ2xhc3MSIAoEdHlwZRgE",
|
||||
"IAIoDjISLmJsaXR6a2l0LlRhbmtUeXBlKkEKCVRhbmtDbGFzcxIJCgVMSUdI",
|
||||
"VBABEgoKBk1FRElVTRACEgkKBUhFQVZZEAMSEgoOVEFOS19ERVNUUk9ZRVIQ",
|
||||
"BCo4CghUYW5rVHlwZRIQCgxSRVNFQVJDSEFCTEUQARILCgdQUkVNSVVNEAIS",
|
||||
"DQoJQ09MTEVDVE9SEAMqLwoJU2hlbGxUeXBlEgYKAkFQEAESCAoEQVBDUhAC",
|
||||
"EggKBEhFQVQQAxIGCgJIRRAEKksKCENyZXdUeXBlEg0KCUNPTU1BTkRFUhAB",
|
||||
"EgoKBkRSSVZFUhACEgoKBkdVTk5FUhADEgoKBkxPQURFUhAEEgwKCFJBRElP",
|
||||
"TUFOEAU="));
|
||||
"aXQaI3BhY2thZ2VzL2NvcmUvc3JjL3Byb3Rvcy9pMThuLnByb3RvIjAKBFRh",
|
||||
"bmsSCgoCaWQYASACKAkSHAoEbmFtZRgCIAIoCzIOLmJsaXR6a2l0LkkxOG4="));
|
||||
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
||||
new pbr::FileDescriptor[] { global::Blitzkit.I18NReflection.Descriptor, },
|
||||
new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Blitzkit.TankClass), typeof(global::Blitzkit.TankType), typeof(global::Blitzkit.ShellType), typeof(global::Blitzkit.CrewType), }, null, new pbr::GeneratedClrTypeInfo[] {
|
||||
new pbr::GeneratedClrTypeInfo(typeof(global::Blitzkit.Tank), global::Blitzkit.Tank.Parser, new[]{ "Id", "Name", "Class", "Type" }, null, null, null, null)
|
||||
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
|
||||
new pbr::GeneratedClrTypeInfo(typeof(global::Blitzkit.Tank), global::Blitzkit.Tank.Parser, new[]{ "Id", "Name" }, null, null, null, null)
|
||||
}));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
#region Enums
|
||||
public enum TankClass {
|
||||
[pbr::OriginalName("LIGHT")] Light = 1,
|
||||
[pbr::OriginalName("MEDIUM")] Medium = 2,
|
||||
[pbr::OriginalName("HEAVY")] Heavy = 3,
|
||||
[pbr::OriginalName("TANK_DESTROYER")] TankDestroyer = 4,
|
||||
}
|
||||
|
||||
public enum TankType {
|
||||
[pbr::OriginalName("RESEARCHABLE")] Researchable = 1,
|
||||
[pbr::OriginalName("PREMIUM")] Premium = 2,
|
||||
[pbr::OriginalName("COLLECTOR")] Collector = 3,
|
||||
}
|
||||
|
||||
public enum ShellType {
|
||||
[pbr::OriginalName("AP")] Ap = 1,
|
||||
[pbr::OriginalName("APCR")] Apcr = 2,
|
||||
[pbr::OriginalName("HEAT")] Heat = 3,
|
||||
[pbr::OriginalName("HE")] He = 4,
|
||||
}
|
||||
|
||||
public enum CrewType {
|
||||
[pbr::OriginalName("COMMANDER")] Commander = 1,
|
||||
[pbr::OriginalName("DRIVER")] Driver = 2,
|
||||
[pbr::OriginalName("GUNNER")] Gunner = 3,
|
||||
[pbr::OriginalName("LOADER")] Loader = 4,
|
||||
[pbr::OriginalName("RADIOMAN")] Radioman = 5,
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Messages
|
||||
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
|
||||
public sealed partial class Tank : pb::IMessage<Tank>
|
||||
@@ -84,7 +45,6 @@ namespace Blitzkit {
|
||||
{
|
||||
private static readonly pb::MessageParser<Tank> _parser = new pb::MessageParser<Tank>(() => new Tank());
|
||||
private pb::UnknownFieldSet _unknownFields;
|
||||
private int _hasBits0;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pb::MessageParser<Tank> Parser { get { return _parser; } }
|
||||
@@ -112,11 +72,8 @@ namespace Blitzkit {
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public Tank(Tank other) : this() {
|
||||
_hasBits0 = other._hasBits0;
|
||||
id_ = other.id_;
|
||||
name_ = other.name_ != null ? other.name_.Clone() : null;
|
||||
class_ = other.class_;
|
||||
type_ = other.type_;
|
||||
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||||
}
|
||||
|
||||
@@ -164,60 +121,6 @@ namespace Blitzkit {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "class" field.</summary>
|
||||
public const int ClassFieldNumber = 3;
|
||||
private readonly static global::Blitzkit.TankClass ClassDefaultValue = global::Blitzkit.TankClass.Light;
|
||||
|
||||
private global::Blitzkit.TankClass class_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public global::Blitzkit.TankClass Class {
|
||||
get { if ((_hasBits0 & 1) != 0) { return class_; } else { return ClassDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 1;
|
||||
class_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "class" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasClass {
|
||||
get { return (_hasBits0 & 1) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "class" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearClass() {
|
||||
_hasBits0 &= ~1;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "type" field.</summary>
|
||||
public const int TypeFieldNumber = 4;
|
||||
private readonly static global::Blitzkit.TankType TypeDefaultValue = global::Blitzkit.TankType.Researchable;
|
||||
|
||||
private global::Blitzkit.TankType type_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public global::Blitzkit.TankType Type {
|
||||
get { if ((_hasBits0 & 2) != 0) { return type_; } else { return TypeDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 2;
|
||||
type_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "type" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasType {
|
||||
get { return (_hasBits0 & 2) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "type" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearType() {
|
||||
_hasBits0 &= ~2;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override bool Equals(object other) {
|
||||
@@ -235,8 +138,6 @@ namespace Blitzkit {
|
||||
}
|
||||
if (Id != other.Id) return false;
|
||||
if (!object.Equals(Name, other.Name)) return false;
|
||||
if (Class != other.Class) return false;
|
||||
if (Type != other.Type) return false;
|
||||
return Equals(_unknownFields, other._unknownFields);
|
||||
}
|
||||
|
||||
@@ -246,8 +147,6 @@ namespace Blitzkit {
|
||||
int hash = 1;
|
||||
if (HasId) hash ^= Id.GetHashCode();
|
||||
if (name_ != null) hash ^= Name.GetHashCode();
|
||||
if (HasClass) hash ^= Class.GetHashCode();
|
||||
if (HasType) hash ^= Type.GetHashCode();
|
||||
if (_unknownFields != null) {
|
||||
hash ^= _unknownFields.GetHashCode();
|
||||
}
|
||||
@@ -274,14 +173,6 @@ namespace Blitzkit {
|
||||
output.WriteRawTag(18);
|
||||
output.WriteMessage(Name);
|
||||
}
|
||||
if (HasClass) {
|
||||
output.WriteRawTag(24);
|
||||
output.WriteEnum((int) Class);
|
||||
}
|
||||
if (HasType) {
|
||||
output.WriteRawTag(32);
|
||||
output.WriteEnum((int) Type);
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
_unknownFields.WriteTo(output);
|
||||
}
|
||||
@@ -300,14 +191,6 @@ namespace Blitzkit {
|
||||
output.WriteRawTag(18);
|
||||
output.WriteMessage(Name);
|
||||
}
|
||||
if (HasClass) {
|
||||
output.WriteRawTag(24);
|
||||
output.WriteEnum((int) Class);
|
||||
}
|
||||
if (HasType) {
|
||||
output.WriteRawTag(32);
|
||||
output.WriteEnum((int) Type);
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
_unknownFields.WriteTo(ref output);
|
||||
}
|
||||
@@ -324,12 +207,6 @@ namespace Blitzkit {
|
||||
if (name_ != null) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Name);
|
||||
}
|
||||
if (HasClass) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Class);
|
||||
}
|
||||
if (HasType) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type);
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
size += _unknownFields.CalculateSize();
|
||||
}
|
||||
@@ -351,12 +228,6 @@ namespace Blitzkit {
|
||||
}
|
||||
Name.MergeFrom(other.Name);
|
||||
}
|
||||
if (other.HasClass) {
|
||||
Class = other.Class;
|
||||
}
|
||||
if (other.HasType) {
|
||||
Type = other.Type;
|
||||
}
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
|
||||
}
|
||||
|
||||
@@ -387,14 +258,6 @@ namespace Blitzkit {
|
||||
input.ReadMessage(Name);
|
||||
break;
|
||||
}
|
||||
case 24: {
|
||||
Class = (global::Blitzkit.TankClass) input.ReadEnum();
|
||||
break;
|
||||
}
|
||||
case 32: {
|
||||
Type = (global::Blitzkit.TankType) input.ReadEnum();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
@@ -425,14 +288,6 @@ namespace Blitzkit {
|
||||
input.ReadMessage(Name);
|
||||
break;
|
||||
}
|
||||
case 24: {
|
||||
Class = (global::Blitzkit.TankClass) input.ReadEnum();
|
||||
break;
|
||||
}
|
||||
case 32: {
|
||||
Type = (global::Blitzkit.TankType) input.ReadEnum();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user