Protobuf...
This commit is contained in:
903
DynamicLightData.cs
Normal file
903
DynamicLightData.cs
Normal file
@@ -0,0 +1,903 @@
|
||||
// <auto-generated>
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: rec_room/persistence/dynamic_light_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/dynamic_light_data.proto</summary>
|
||||
public static partial class DynamicLightDataReflection {
|
||||
|
||||
#region Descriptor
|
||||
/// <summary>File descriptor for rec_room/persistence/dynamic_light_data.proto</summary>
|
||||
public static pbr::FileDescriptor Descriptor {
|
||||
get { return descriptor; }
|
||||
}
|
||||
private static pbr::FileDescriptor descriptor;
|
||||
|
||||
static DynamicLightDataReflection() {
|
||||
byte[] descriptorData = global::System.Convert.FromBase64String(
|
||||
string.Concat(
|
||||
"Ci1yZWNfcm9vbS9wZXJzaXN0ZW5jZS9keW5hbWljX2xpZ2h0X2RhdGEucHJv",
|
||||
"dG8SCHJlY19yb29tIjEKDVNwb3RsaWdodERhdGESEQoJYW5nbGVfaW50GAEg",
|
||||
"ASgFEg0KBWFuZ2xlGAIgASgCIjAKDURvbWVMaWdodERhdGESDQoFYW5nbGUY",
|
||||
"ASABKAISEAoIc29mdG5lc3MYAiABKAIifgoQRHluYW1pY0xpZ2h0RGF0YRIV",
|
||||
"Cg1pbnRlbnNpdHlfaW50GAEgASgFEhEKCXJhbmdlX2ludBgCIAEoBRIMCgRl",
|
||||
"bWl0GAMgASgIEhEKCWludGVuc2l0eRgEIAEoAhINCgVyYW5nZRgFIAEoAhIQ",
|
||||
"CghzcGVjdWxhchgGIAEoAkITqgIQUmVjUm9vbS5Qcm90b2J1ZmIGcHJvdG8z"));
|
||||
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
||||
new pbr::FileDescriptor[] { },
|
||||
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
|
||||
new pbr::GeneratedClrTypeInfo(typeof(global::RecRoom.Protobuf.SpotlightData), global::RecRoom.Protobuf.SpotlightData.Parser, new[]{ "AngleInt", "Angle" }, null, null, null, null),
|
||||
new pbr::GeneratedClrTypeInfo(typeof(global::RecRoom.Protobuf.DomeLightData), global::RecRoom.Protobuf.DomeLightData.Parser, new[]{ "Angle", "Softness" }, null, null, null, null),
|
||||
new pbr::GeneratedClrTypeInfo(typeof(global::RecRoom.Protobuf.DynamicLightData), global::RecRoom.Protobuf.DynamicLightData.Parser, new[]{ "IntensityInt", "RangeInt", "Emit", "Intensity", "Range", "Specular" }, null, null, null, null)
|
||||
}));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
#region Messages
|
||||
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
|
||||
public sealed partial class SpotlightData : pb::IMessage<SpotlightData>
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
, pb::IBufferMessage
|
||||
#endif
|
||||
{
|
||||
private static readonly pb::MessageParser<SpotlightData> _parser = new pb::MessageParser<SpotlightData>(() => new SpotlightData());
|
||||
private pb::UnknownFieldSet _unknownFields;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pb::MessageParser<SpotlightData> 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.DynamicLightDataReflection.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 SpotlightData() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public SpotlightData(SpotlightData other) : this() {
|
||||
angleInt_ = other.angleInt_;
|
||||
angle_ = other.angle_;
|
||||
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public SpotlightData Clone() {
|
||||
return new SpotlightData(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "angle_int" field.</summary>
|
||||
public const int AngleIntFieldNumber = 1;
|
||||
private int angleInt_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public int AngleInt {
|
||||
get { return angleInt_; }
|
||||
set {
|
||||
angleInt_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "angle" field.</summary>
|
||||
public const int AngleFieldNumber = 2;
|
||||
private float angle_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public float Angle {
|
||||
get { return angle_; }
|
||||
set {
|
||||
angle_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override bool Equals(object other) {
|
||||
return Equals(other as SpotlightData);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool Equals(SpotlightData other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if (AngleInt != other.AngleInt) return false;
|
||||
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Angle, other.Angle)) 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 (AngleInt != 0) hash ^= AngleInt.GetHashCode();
|
||||
if (Angle != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Angle);
|
||||
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 (AngleInt != 0) {
|
||||
output.WriteRawTag(8);
|
||||
output.WriteInt32(AngleInt);
|
||||
}
|
||||
if (Angle != 0F) {
|
||||
output.WriteRawTag(21);
|
||||
output.WriteFloat(Angle);
|
||||
}
|
||||
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 (AngleInt != 0) {
|
||||
output.WriteRawTag(8);
|
||||
output.WriteInt32(AngleInt);
|
||||
}
|
||||
if (Angle != 0F) {
|
||||
output.WriteRawTag(21);
|
||||
output.WriteFloat(Angle);
|
||||
}
|
||||
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 (AngleInt != 0) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeInt32Size(AngleInt);
|
||||
}
|
||||
if (Angle != 0F) {
|
||||
size += 1 + 4;
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
size += _unknownFields.CalculateSize();
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void MergeFrom(SpotlightData other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
if (other.AngleInt != 0) {
|
||||
AngleInt = other.AngleInt;
|
||||
}
|
||||
if (other.Angle != 0F) {
|
||||
Angle = other.Angle;
|
||||
}
|
||||
_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: {
|
||||
AngleInt = input.ReadInt32();
|
||||
break;
|
||||
}
|
||||
case 21: {
|
||||
Angle = input.ReadFloat();
|
||||
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: {
|
||||
AngleInt = input.ReadInt32();
|
||||
break;
|
||||
}
|
||||
case 21: {
|
||||
Angle = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
|
||||
public sealed partial class DomeLightData : pb::IMessage<DomeLightData>
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
, pb::IBufferMessage
|
||||
#endif
|
||||
{
|
||||
private static readonly pb::MessageParser<DomeLightData> _parser = new pb::MessageParser<DomeLightData>(() => new DomeLightData());
|
||||
private pb::UnknownFieldSet _unknownFields;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pb::MessageParser<DomeLightData> 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.DynamicLightDataReflection.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 DomeLightData() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public DomeLightData(DomeLightData other) : this() {
|
||||
angle_ = other.angle_;
|
||||
softness_ = other.softness_;
|
||||
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public DomeLightData Clone() {
|
||||
return new DomeLightData(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "angle" field.</summary>
|
||||
public const int AngleFieldNumber = 1;
|
||||
private float angle_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public float Angle {
|
||||
get { return angle_; }
|
||||
set {
|
||||
angle_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "softness" field.</summary>
|
||||
public const int SoftnessFieldNumber = 2;
|
||||
private float softness_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public float Softness {
|
||||
get { return softness_; }
|
||||
set {
|
||||
softness_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override bool Equals(object other) {
|
||||
return Equals(other as DomeLightData);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool Equals(DomeLightData other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Angle, other.Angle)) return false;
|
||||
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Softness, other.Softness)) 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 (Angle != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Angle);
|
||||
if (Softness != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Softness);
|
||||
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 (Angle != 0F) {
|
||||
output.WriteRawTag(13);
|
||||
output.WriteFloat(Angle);
|
||||
}
|
||||
if (Softness != 0F) {
|
||||
output.WriteRawTag(21);
|
||||
output.WriteFloat(Softness);
|
||||
}
|
||||
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 (Angle != 0F) {
|
||||
output.WriteRawTag(13);
|
||||
output.WriteFloat(Angle);
|
||||
}
|
||||
if (Softness != 0F) {
|
||||
output.WriteRawTag(21);
|
||||
output.WriteFloat(Softness);
|
||||
}
|
||||
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 (Angle != 0F) {
|
||||
size += 1 + 4;
|
||||
}
|
||||
if (Softness != 0F) {
|
||||
size += 1 + 4;
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
size += _unknownFields.CalculateSize();
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void MergeFrom(DomeLightData other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
if (other.Angle != 0F) {
|
||||
Angle = other.Angle;
|
||||
}
|
||||
if (other.Softness != 0F) {
|
||||
Softness = other.Softness;
|
||||
}
|
||||
_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 13: {
|
||||
Angle = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
case 21: {
|
||||
Softness = input.ReadFloat();
|
||||
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 13: {
|
||||
Angle = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
case 21: {
|
||||
Softness = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
|
||||
public sealed partial class DynamicLightData : pb::IMessage<DynamicLightData>
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
, pb::IBufferMessage
|
||||
#endif
|
||||
{
|
||||
private static readonly pb::MessageParser<DynamicLightData> _parser = new pb::MessageParser<DynamicLightData>(() => new DynamicLightData());
|
||||
private pb::UnknownFieldSet _unknownFields;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pb::MessageParser<DynamicLightData> 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.DynamicLightDataReflection.Descriptor.MessageTypes[2]; }
|
||||
}
|
||||
|
||||
[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 DynamicLightData() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public DynamicLightData(DynamicLightData other) : this() {
|
||||
intensityInt_ = other.intensityInt_;
|
||||
rangeInt_ = other.rangeInt_;
|
||||
emit_ = other.emit_;
|
||||
intensity_ = other.intensity_;
|
||||
range_ = other.range_;
|
||||
specular_ = other.specular_;
|
||||
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public DynamicLightData Clone() {
|
||||
return new DynamicLightData(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "intensity_int" field.</summary>
|
||||
public const int IntensityIntFieldNumber = 1;
|
||||
private int intensityInt_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public int IntensityInt {
|
||||
get { return intensityInt_; }
|
||||
set {
|
||||
intensityInt_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "range_int" field.</summary>
|
||||
public const int RangeIntFieldNumber = 2;
|
||||
private int rangeInt_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public int RangeInt {
|
||||
get { return rangeInt_; }
|
||||
set {
|
||||
rangeInt_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "emit" field.</summary>
|
||||
public const int EmitFieldNumber = 3;
|
||||
private bool emit_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool Emit {
|
||||
get { return emit_; }
|
||||
set {
|
||||
emit_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "intensity" field.</summary>
|
||||
public const int IntensityFieldNumber = 4;
|
||||
private float intensity_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public float Intensity {
|
||||
get { return intensity_; }
|
||||
set {
|
||||
intensity_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "range" field.</summary>
|
||||
public const int RangeFieldNumber = 5;
|
||||
private float range_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public float Range {
|
||||
get { return range_; }
|
||||
set {
|
||||
range_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "specular" field.</summary>
|
||||
public const int SpecularFieldNumber = 6;
|
||||
private float specular_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public float Specular {
|
||||
get { return specular_; }
|
||||
set {
|
||||
specular_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override bool Equals(object other) {
|
||||
return Equals(other as DynamicLightData);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool Equals(DynamicLightData other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if (IntensityInt != other.IntensityInt) return false;
|
||||
if (RangeInt != other.RangeInt) return false;
|
||||
if (Emit != other.Emit) return false;
|
||||
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Intensity, other.Intensity)) return false;
|
||||
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Range, other.Range)) return false;
|
||||
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Specular, other.Specular)) 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 (IntensityInt != 0) hash ^= IntensityInt.GetHashCode();
|
||||
if (RangeInt != 0) hash ^= RangeInt.GetHashCode();
|
||||
if (Emit != false) hash ^= Emit.GetHashCode();
|
||||
if (Intensity != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Intensity);
|
||||
if (Range != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Range);
|
||||
if (Specular != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Specular);
|
||||
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 (IntensityInt != 0) {
|
||||
output.WriteRawTag(8);
|
||||
output.WriteInt32(IntensityInt);
|
||||
}
|
||||
if (RangeInt != 0) {
|
||||
output.WriteRawTag(16);
|
||||
output.WriteInt32(RangeInt);
|
||||
}
|
||||
if (Emit != false) {
|
||||
output.WriteRawTag(24);
|
||||
output.WriteBool(Emit);
|
||||
}
|
||||
if (Intensity != 0F) {
|
||||
output.WriteRawTag(37);
|
||||
output.WriteFloat(Intensity);
|
||||
}
|
||||
if (Range != 0F) {
|
||||
output.WriteRawTag(45);
|
||||
output.WriteFloat(Range);
|
||||
}
|
||||
if (Specular != 0F) {
|
||||
output.WriteRawTag(53);
|
||||
output.WriteFloat(Specular);
|
||||
}
|
||||
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 (IntensityInt != 0) {
|
||||
output.WriteRawTag(8);
|
||||
output.WriteInt32(IntensityInt);
|
||||
}
|
||||
if (RangeInt != 0) {
|
||||
output.WriteRawTag(16);
|
||||
output.WriteInt32(RangeInt);
|
||||
}
|
||||
if (Emit != false) {
|
||||
output.WriteRawTag(24);
|
||||
output.WriteBool(Emit);
|
||||
}
|
||||
if (Intensity != 0F) {
|
||||
output.WriteRawTag(37);
|
||||
output.WriteFloat(Intensity);
|
||||
}
|
||||
if (Range != 0F) {
|
||||
output.WriteRawTag(45);
|
||||
output.WriteFloat(Range);
|
||||
}
|
||||
if (Specular != 0F) {
|
||||
output.WriteRawTag(53);
|
||||
output.WriteFloat(Specular);
|
||||
}
|
||||
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 (IntensityInt != 0) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeInt32Size(IntensityInt);
|
||||
}
|
||||
if (RangeInt != 0) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeInt32Size(RangeInt);
|
||||
}
|
||||
if (Emit != false) {
|
||||
size += 1 + 1;
|
||||
}
|
||||
if (Intensity != 0F) {
|
||||
size += 1 + 4;
|
||||
}
|
||||
if (Range != 0F) {
|
||||
size += 1 + 4;
|
||||
}
|
||||
if (Specular != 0F) {
|
||||
size += 1 + 4;
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
size += _unknownFields.CalculateSize();
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void MergeFrom(DynamicLightData other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
if (other.IntensityInt != 0) {
|
||||
IntensityInt = other.IntensityInt;
|
||||
}
|
||||
if (other.RangeInt != 0) {
|
||||
RangeInt = other.RangeInt;
|
||||
}
|
||||
if (other.Emit != false) {
|
||||
Emit = other.Emit;
|
||||
}
|
||||
if (other.Intensity != 0F) {
|
||||
Intensity = other.Intensity;
|
||||
}
|
||||
if (other.Range != 0F) {
|
||||
Range = other.Range;
|
||||
}
|
||||
if (other.Specular != 0F) {
|
||||
Specular = other.Specular;
|
||||
}
|
||||
_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: {
|
||||
IntensityInt = input.ReadInt32();
|
||||
break;
|
||||
}
|
||||
case 16: {
|
||||
RangeInt = input.ReadInt32();
|
||||
break;
|
||||
}
|
||||
case 24: {
|
||||
Emit = input.ReadBool();
|
||||
break;
|
||||
}
|
||||
case 37: {
|
||||
Intensity = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
case 45: {
|
||||
Range = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
case 53: {
|
||||
Specular = input.ReadFloat();
|
||||
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: {
|
||||
IntensityInt = input.ReadInt32();
|
||||
break;
|
||||
}
|
||||
case 16: {
|
||||
RangeInt = input.ReadInt32();
|
||||
break;
|
||||
}
|
||||
case 24: {
|
||||
Emit = input.ReadBool();
|
||||
break;
|
||||
}
|
||||
case 37: {
|
||||
Intensity = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
case 45: {
|
||||
Range = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
case 53: {
|
||||
Specular = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion Designer generated code
|
||||
Reference in New Issue
Block a user