Protobuf...
This commit is contained in:
468
BouncePadData.cs
Normal file
468
BouncePadData.cs
Normal file
@@ -0,0 +1,468 @@
|
||||
// <auto-generated>
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: rec_room/persistence/bounce_pad_data.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 RecRoom.Protobuf {
|
||||
|
||||
/// <summary>Holder for reflection information generated from rec_room/persistence/bounce_pad_data.proto</summary>
|
||||
public static partial class BouncePadDataReflection {
|
||||
|
||||
#region Descriptor
|
||||
/// <summary>File descriptor for rec_room/persistence/bounce_pad_data.proto</summary>
|
||||
public static pbr::FileDescriptor Descriptor {
|
||||
get { return descriptor; }
|
||||
}
|
||||
private static pbr::FileDescriptor descriptor;
|
||||
|
||||
static BouncePadDataReflection() {
|
||||
byte[] descriptorData = global::System.Convert.FromBase64String(
|
||||
string.Concat(
|
||||
"CipyZWNfcm9vbS9wZXJzaXN0ZW5jZS9ib3VuY2VfcGFkX2RhdGEucHJvdG8S",
|
||||
"CHJlY19yb29tIroBCg1Cb3VuY2VQYWREYXRhEgwKBG1vZGUYASABKAUSEwoL",
|
||||
"aXNfYWRkaXRpdmUYAiABKAgSGwoTdmVsb2NpdHlfbXVsdGlwbGllchgDIAEo",
|
||||
"AhIZChF2ZWxvY2l0eV9hZGRpdGl2ZRgEIAEoAhIUCgxtYXhfdmVsb2NpdHkY",
|
||||
"BSABKAISGAoQaW1wdWxzZV92ZWxvY2l0eRgGIAEoAhIeChZhaXJfY29udHJv",
|
||||
"bF9wZXJjZW50YWdlGAcgASgFQhOqAhBSZWNSb29tLlByb3RvYnVmYgZwcm90",
|
||||
"bzM="));
|
||||
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
||||
new pbr::FileDescriptor[] { },
|
||||
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
|
||||
new pbr::GeneratedClrTypeInfo(typeof(global::RecRoom.Protobuf.BouncePadData), global::RecRoom.Protobuf.BouncePadData.Parser, new[]{ "Mode", "IsAdditive", "VelocityMultiplier", "VelocityAdditive", "MaxVelocity", "ImpulseVelocity", "AirControlPercentage" }, null, null, null, null)
|
||||
}));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
#region Messages
|
||||
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
|
||||
public sealed partial class BouncePadData : pb::IMessage<BouncePadData>
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
, pb::IBufferMessage
|
||||
#endif
|
||||
{
|
||||
private static readonly pb::MessageParser<BouncePadData> _parser = new pb::MessageParser<BouncePadData>(() => new BouncePadData());
|
||||
private pb::UnknownFieldSet _unknownFields;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pb::MessageParser<BouncePadData> Parser { get { return _parser; } }
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pbr::MessageDescriptor Descriptor {
|
||||
get { return global::RecRoom.Protobuf.BouncePadDataReflection.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 BouncePadData() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public BouncePadData(BouncePadData other) : this() {
|
||||
mode_ = other.mode_;
|
||||
isAdditive_ = other.isAdditive_;
|
||||
velocityMultiplier_ = other.velocityMultiplier_;
|
||||
velocityAdditive_ = other.velocityAdditive_;
|
||||
maxVelocity_ = other.maxVelocity_;
|
||||
impulseVelocity_ = other.impulseVelocity_;
|
||||
airControlPercentage_ = other.airControlPercentage_;
|
||||
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public BouncePadData Clone() {
|
||||
return new BouncePadData(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "mode" field.</summary>
|
||||
public const int ModeFieldNumber = 1;
|
||||
private int mode_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public int Mode {
|
||||
get { return mode_; }
|
||||
set {
|
||||
mode_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "is_additive" field.</summary>
|
||||
public const int IsAdditiveFieldNumber = 2;
|
||||
private bool isAdditive_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool IsAdditive {
|
||||
get { return isAdditive_; }
|
||||
set {
|
||||
isAdditive_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "velocity_multiplier" field.</summary>
|
||||
public const int VelocityMultiplierFieldNumber = 3;
|
||||
private float velocityMultiplier_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public float VelocityMultiplier {
|
||||
get { return velocityMultiplier_; }
|
||||
set {
|
||||
velocityMultiplier_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "velocity_additive" field.</summary>
|
||||
public const int VelocityAdditiveFieldNumber = 4;
|
||||
private float velocityAdditive_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public float VelocityAdditive {
|
||||
get { return velocityAdditive_; }
|
||||
set {
|
||||
velocityAdditive_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "max_velocity" field.</summary>
|
||||
public const int MaxVelocityFieldNumber = 5;
|
||||
private float maxVelocity_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public float MaxVelocity {
|
||||
get { return maxVelocity_; }
|
||||
set {
|
||||
maxVelocity_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "impulse_velocity" field.</summary>
|
||||
public const int ImpulseVelocityFieldNumber = 6;
|
||||
private float impulseVelocity_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public float ImpulseVelocity {
|
||||
get { return impulseVelocity_; }
|
||||
set {
|
||||
impulseVelocity_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "air_control_percentage" field.</summary>
|
||||
public const int AirControlPercentageFieldNumber = 7;
|
||||
private int airControlPercentage_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public int AirControlPercentage {
|
||||
get { return airControlPercentage_; }
|
||||
set {
|
||||
airControlPercentage_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override bool Equals(object other) {
|
||||
return Equals(other as BouncePadData);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool Equals(BouncePadData other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if (Mode != other.Mode) return false;
|
||||
if (IsAdditive != other.IsAdditive) return false;
|
||||
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(VelocityMultiplier, other.VelocityMultiplier)) return false;
|
||||
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(VelocityAdditive, other.VelocityAdditive)) return false;
|
||||
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(MaxVelocity, other.MaxVelocity)) return false;
|
||||
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(ImpulseVelocity, other.ImpulseVelocity)) return false;
|
||||
if (AirControlPercentage != other.AirControlPercentage) 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 (Mode != 0) hash ^= Mode.GetHashCode();
|
||||
if (IsAdditive != false) hash ^= IsAdditive.GetHashCode();
|
||||
if (VelocityMultiplier != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(VelocityMultiplier);
|
||||
if (VelocityAdditive != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(VelocityAdditive);
|
||||
if (MaxVelocity != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(MaxVelocity);
|
||||
if (ImpulseVelocity != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(ImpulseVelocity);
|
||||
if (AirControlPercentage != 0) hash ^= AirControlPercentage.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 (Mode != 0) {
|
||||
output.WriteRawTag(8);
|
||||
output.WriteInt32(Mode);
|
||||
}
|
||||
if (IsAdditive != false) {
|
||||
output.WriteRawTag(16);
|
||||
output.WriteBool(IsAdditive);
|
||||
}
|
||||
if (VelocityMultiplier != 0F) {
|
||||
output.WriteRawTag(29);
|
||||
output.WriteFloat(VelocityMultiplier);
|
||||
}
|
||||
if (VelocityAdditive != 0F) {
|
||||
output.WriteRawTag(37);
|
||||
output.WriteFloat(VelocityAdditive);
|
||||
}
|
||||
if (MaxVelocity != 0F) {
|
||||
output.WriteRawTag(45);
|
||||
output.WriteFloat(MaxVelocity);
|
||||
}
|
||||
if (ImpulseVelocity != 0F) {
|
||||
output.WriteRawTag(53);
|
||||
output.WriteFloat(ImpulseVelocity);
|
||||
}
|
||||
if (AirControlPercentage != 0) {
|
||||
output.WriteRawTag(56);
|
||||
output.WriteInt32(AirControlPercentage);
|
||||
}
|
||||
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 (Mode != 0) {
|
||||
output.WriteRawTag(8);
|
||||
output.WriteInt32(Mode);
|
||||
}
|
||||
if (IsAdditive != false) {
|
||||
output.WriteRawTag(16);
|
||||
output.WriteBool(IsAdditive);
|
||||
}
|
||||
if (VelocityMultiplier != 0F) {
|
||||
output.WriteRawTag(29);
|
||||
output.WriteFloat(VelocityMultiplier);
|
||||
}
|
||||
if (VelocityAdditive != 0F) {
|
||||
output.WriteRawTag(37);
|
||||
output.WriteFloat(VelocityAdditive);
|
||||
}
|
||||
if (MaxVelocity != 0F) {
|
||||
output.WriteRawTag(45);
|
||||
output.WriteFloat(MaxVelocity);
|
||||
}
|
||||
if (ImpulseVelocity != 0F) {
|
||||
output.WriteRawTag(53);
|
||||
output.WriteFloat(ImpulseVelocity);
|
||||
}
|
||||
if (AirControlPercentage != 0) {
|
||||
output.WriteRawTag(56);
|
||||
output.WriteInt32(AirControlPercentage);
|
||||
}
|
||||
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 (Mode != 0) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Mode);
|
||||
}
|
||||
if (IsAdditive != false) {
|
||||
size += 1 + 1;
|
||||
}
|
||||
if (VelocityMultiplier != 0F) {
|
||||
size += 1 + 4;
|
||||
}
|
||||
if (VelocityAdditive != 0F) {
|
||||
size += 1 + 4;
|
||||
}
|
||||
if (MaxVelocity != 0F) {
|
||||
size += 1 + 4;
|
||||
}
|
||||
if (ImpulseVelocity != 0F) {
|
||||
size += 1 + 4;
|
||||
}
|
||||
if (AirControlPercentage != 0) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeInt32Size(AirControlPercentage);
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
size += _unknownFields.CalculateSize();
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void MergeFrom(BouncePadData other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
if (other.Mode != 0) {
|
||||
Mode = other.Mode;
|
||||
}
|
||||
if (other.IsAdditive != false) {
|
||||
IsAdditive = other.IsAdditive;
|
||||
}
|
||||
if (other.VelocityMultiplier != 0F) {
|
||||
VelocityMultiplier = other.VelocityMultiplier;
|
||||
}
|
||||
if (other.VelocityAdditive != 0F) {
|
||||
VelocityAdditive = other.VelocityAdditive;
|
||||
}
|
||||
if (other.MaxVelocity != 0F) {
|
||||
MaxVelocity = other.MaxVelocity;
|
||||
}
|
||||
if (other.ImpulseVelocity != 0F) {
|
||||
ImpulseVelocity = other.ImpulseVelocity;
|
||||
}
|
||||
if (other.AirControlPercentage != 0) {
|
||||
AirControlPercentage = other.AirControlPercentage;
|
||||
}
|
||||
_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: {
|
||||
Mode = input.ReadInt32();
|
||||
break;
|
||||
}
|
||||
case 16: {
|
||||
IsAdditive = input.ReadBool();
|
||||
break;
|
||||
}
|
||||
case 29: {
|
||||
VelocityMultiplier = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
case 37: {
|
||||
VelocityAdditive = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
case 45: {
|
||||
MaxVelocity = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
case 53: {
|
||||
ImpulseVelocity = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
case 56: {
|
||||
AirControlPercentage = input.ReadInt32();
|
||||
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: {
|
||||
Mode = input.ReadInt32();
|
||||
break;
|
||||
}
|
||||
case 16: {
|
||||
IsAdditive = input.ReadBool();
|
||||
break;
|
||||
}
|
||||
case 29: {
|
||||
VelocityMultiplier = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
case 37: {
|
||||
VelocityAdditive = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
case 45: {
|
||||
MaxVelocity = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
case 53: {
|
||||
ImpulseVelocity = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
case 56: {
|
||||
AirControlPercentage = input.ReadInt32();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion Designer generated code
|
||||
Reference in New Issue
Block a user