mirror of
https://github.com/EggLinks/DanhengServer-OpenSource.git
synced 2026-01-02 20:26:03 +08:00
468 lines
17 KiB
C#
468 lines
17 KiB
C#
// <auto-generated>
|
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
// source: ScenePropInfo.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 EggLink.DanhengServer.Proto {
|
|
|
|
/// <summary>Holder for reflection information generated from ScenePropInfo.proto</summary>
|
|
public static partial class ScenePropInfoReflection {
|
|
|
|
#region Descriptor
|
|
/// <summary>File descriptor for ScenePropInfo.proto</summary>
|
|
public static pbr::FileDescriptor Descriptor {
|
|
get { return descriptor; }
|
|
}
|
|
private static pbr::FileDescriptor descriptor;
|
|
|
|
static ScenePropInfoReflection() {
|
|
byte[] descriptorData = global::System.Convert.FromBase64String(
|
|
string.Concat(
|
|
"ChNTY2VuZVByb3BJbmZvLnByb3RvGhNQcm9wRXh0cmFJbmZvLnByb3RvGhZQ",
|
|
"cm9wVGltZWxpbmVJbmZvLnByb3RvIssBCg1TY2VuZVByb3BJbmZvEiIKCmV4",
|
|
"dHJhX2luZm8YCiABKAsyDi5Qcm9wRXh0cmFJbmZvEhIKCnByb3Bfc3RhdGUY",
|
|
"CyABKA0SKAoNdGltZWxpbmVfaW5mbxgNIAEoCzIRLlByb3BUaW1lbGluZUlu",
|
|
"Zm8SDwoHcHJvcF9pZBgDIAEoDRIUCgxsaWZlX3RpbWVfbXMYAiABKA0SFgoO",
|
|
"Y3JlYXRlX3RpbWVfbXMYCSABKAQSGQoRdHJpZ2dlcl9uYW1lX2xpc3QYBCAD",
|
|
"KAlCHqoCG0VnZ0xpbmsuRGFuaGVuZ1NlcnZlci5Qcm90b2IGcHJvdG8z"));
|
|
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
|
new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.PropExtraInfoReflection.Descriptor, global::EggLink.DanhengServer.Proto.PropTimelineInfoReflection.Descriptor, },
|
|
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.ScenePropInfo), global::EggLink.DanhengServer.Proto.ScenePropInfo.Parser, new[]{ "ExtraInfo", "PropState", "TimelineInfo", "PropId", "LifeTimeMs", "CreateTimeMs", "TriggerNameList" }, null, null, null, null)
|
|
}));
|
|
}
|
|
#endregion
|
|
|
|
}
|
|
#region Messages
|
|
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
|
|
public sealed partial class ScenePropInfo : pb::IMessage<ScenePropInfo>
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
, pb::IBufferMessage
|
|
#endif
|
|
{
|
|
private static readonly pb::MessageParser<ScenePropInfo> _parser = new pb::MessageParser<ScenePropInfo>(() => new ScenePropInfo());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pb::MessageParser<ScenePropInfo> Parser { get { return _parser; } }
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pbr::MessageDescriptor Descriptor {
|
|
get { return global::EggLink.DanhengServer.Proto.ScenePropInfoReflection.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 ScenePropInfo() {
|
|
OnConstruction();
|
|
}
|
|
|
|
partial void OnConstruction();
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public ScenePropInfo(ScenePropInfo other) : this() {
|
|
extraInfo_ = other.extraInfo_ != null ? other.extraInfo_.Clone() : null;
|
|
propState_ = other.propState_;
|
|
timelineInfo_ = other.timelineInfo_ != null ? other.timelineInfo_.Clone() : null;
|
|
propId_ = other.propId_;
|
|
lifeTimeMs_ = other.lifeTimeMs_;
|
|
createTimeMs_ = other.createTimeMs_;
|
|
triggerNameList_ = other.triggerNameList_.Clone();
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public ScenePropInfo Clone() {
|
|
return new ScenePropInfo(this);
|
|
}
|
|
|
|
/// <summary>Field number for the "extra_info" field.</summary>
|
|
public const int ExtraInfoFieldNumber = 10;
|
|
private global::EggLink.DanhengServer.Proto.PropExtraInfo extraInfo_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public global::EggLink.DanhengServer.Proto.PropExtraInfo ExtraInfo {
|
|
get { return extraInfo_; }
|
|
set {
|
|
extraInfo_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "prop_state" field.</summary>
|
|
public const int PropStateFieldNumber = 11;
|
|
private uint propState_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public uint PropState {
|
|
get { return propState_; }
|
|
set {
|
|
propState_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "timeline_info" field.</summary>
|
|
public const int TimelineInfoFieldNumber = 13;
|
|
private global::EggLink.DanhengServer.Proto.PropTimelineInfo timelineInfo_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public global::EggLink.DanhengServer.Proto.PropTimelineInfo TimelineInfo {
|
|
get { return timelineInfo_; }
|
|
set {
|
|
timelineInfo_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "prop_id" field.</summary>
|
|
public const int PropIdFieldNumber = 3;
|
|
private uint propId_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public uint PropId {
|
|
get { return propId_; }
|
|
set {
|
|
propId_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "life_time_ms" field.</summary>
|
|
public const int LifeTimeMsFieldNumber = 2;
|
|
private uint lifeTimeMs_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public uint LifeTimeMs {
|
|
get { return lifeTimeMs_; }
|
|
set {
|
|
lifeTimeMs_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "create_time_ms" field.</summary>
|
|
public const int CreateTimeMsFieldNumber = 9;
|
|
private ulong createTimeMs_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public ulong CreateTimeMs {
|
|
get { return createTimeMs_; }
|
|
set {
|
|
createTimeMs_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "trigger_name_list" field.</summary>
|
|
public const int TriggerNameListFieldNumber = 4;
|
|
private static readonly pb::FieldCodec<string> _repeated_triggerNameList_codec
|
|
= pb::FieldCodec.ForString(34);
|
|
private readonly pbc::RepeatedField<string> triggerNameList_ = new pbc::RepeatedField<string>();
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public pbc::RepeatedField<string> TriggerNameList {
|
|
get { return triggerNameList_; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public override bool Equals(object other) {
|
|
return Equals(other as ScenePropInfo);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public bool Equals(ScenePropInfo other) {
|
|
if (ReferenceEquals(other, null)) {
|
|
return false;
|
|
}
|
|
if (ReferenceEquals(other, this)) {
|
|
return true;
|
|
}
|
|
if (!object.Equals(ExtraInfo, other.ExtraInfo)) return false;
|
|
if (PropState != other.PropState) return false;
|
|
if (!object.Equals(TimelineInfo, other.TimelineInfo)) return false;
|
|
if (PropId != other.PropId) return false;
|
|
if (LifeTimeMs != other.LifeTimeMs) return false;
|
|
if (CreateTimeMs != other.CreateTimeMs) return false;
|
|
if(!triggerNameList_.Equals(other.triggerNameList_)) 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 (extraInfo_ != null) hash ^= ExtraInfo.GetHashCode();
|
|
if (PropState != 0) hash ^= PropState.GetHashCode();
|
|
if (timelineInfo_ != null) hash ^= TimelineInfo.GetHashCode();
|
|
if (PropId != 0) hash ^= PropId.GetHashCode();
|
|
if (LifeTimeMs != 0) hash ^= LifeTimeMs.GetHashCode();
|
|
if (CreateTimeMs != 0UL) hash ^= CreateTimeMs.GetHashCode();
|
|
hash ^= triggerNameList_.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 (LifeTimeMs != 0) {
|
|
output.WriteRawTag(16);
|
|
output.WriteUInt32(LifeTimeMs);
|
|
}
|
|
if (PropId != 0) {
|
|
output.WriteRawTag(24);
|
|
output.WriteUInt32(PropId);
|
|
}
|
|
triggerNameList_.WriteTo(output, _repeated_triggerNameList_codec);
|
|
if (CreateTimeMs != 0UL) {
|
|
output.WriteRawTag(72);
|
|
output.WriteUInt64(CreateTimeMs);
|
|
}
|
|
if (extraInfo_ != null) {
|
|
output.WriteRawTag(82);
|
|
output.WriteMessage(ExtraInfo);
|
|
}
|
|
if (PropState != 0) {
|
|
output.WriteRawTag(88);
|
|
output.WriteUInt32(PropState);
|
|
}
|
|
if (timelineInfo_ != null) {
|
|
output.WriteRawTag(106);
|
|
output.WriteMessage(TimelineInfo);
|
|
}
|
|
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 (LifeTimeMs != 0) {
|
|
output.WriteRawTag(16);
|
|
output.WriteUInt32(LifeTimeMs);
|
|
}
|
|
if (PropId != 0) {
|
|
output.WriteRawTag(24);
|
|
output.WriteUInt32(PropId);
|
|
}
|
|
triggerNameList_.WriteTo(ref output, _repeated_triggerNameList_codec);
|
|
if (CreateTimeMs != 0UL) {
|
|
output.WriteRawTag(72);
|
|
output.WriteUInt64(CreateTimeMs);
|
|
}
|
|
if (extraInfo_ != null) {
|
|
output.WriteRawTag(82);
|
|
output.WriteMessage(ExtraInfo);
|
|
}
|
|
if (PropState != 0) {
|
|
output.WriteRawTag(88);
|
|
output.WriteUInt32(PropState);
|
|
}
|
|
if (timelineInfo_ != null) {
|
|
output.WriteRawTag(106);
|
|
output.WriteMessage(TimelineInfo);
|
|
}
|
|
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 (extraInfo_ != null) {
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(ExtraInfo);
|
|
}
|
|
if (PropState != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(PropState);
|
|
}
|
|
if (timelineInfo_ != null) {
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(TimelineInfo);
|
|
}
|
|
if (PropId != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(PropId);
|
|
}
|
|
if (LifeTimeMs != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(LifeTimeMs);
|
|
}
|
|
if (CreateTimeMs != 0UL) {
|
|
size += 1 + pb::CodedOutputStream.ComputeUInt64Size(CreateTimeMs);
|
|
}
|
|
size += triggerNameList_.CalculateSize(_repeated_triggerNameList_codec);
|
|
if (_unknownFields != null) {
|
|
size += _unknownFields.CalculateSize();
|
|
}
|
|
return size;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void MergeFrom(ScenePropInfo other) {
|
|
if (other == null) {
|
|
return;
|
|
}
|
|
if (other.extraInfo_ != null) {
|
|
if (extraInfo_ == null) {
|
|
ExtraInfo = new global::EggLink.DanhengServer.Proto.PropExtraInfo();
|
|
}
|
|
ExtraInfo.MergeFrom(other.ExtraInfo);
|
|
}
|
|
if (other.PropState != 0) {
|
|
PropState = other.PropState;
|
|
}
|
|
if (other.timelineInfo_ != null) {
|
|
if (timelineInfo_ == null) {
|
|
TimelineInfo = new global::EggLink.DanhengServer.Proto.PropTimelineInfo();
|
|
}
|
|
TimelineInfo.MergeFrom(other.TimelineInfo);
|
|
}
|
|
if (other.PropId != 0) {
|
|
PropId = other.PropId;
|
|
}
|
|
if (other.LifeTimeMs != 0) {
|
|
LifeTimeMs = other.LifeTimeMs;
|
|
}
|
|
if (other.CreateTimeMs != 0UL) {
|
|
CreateTimeMs = other.CreateTimeMs;
|
|
}
|
|
triggerNameList_.Add(other.triggerNameList_);
|
|
_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) {
|
|
switch(tag) {
|
|
default:
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
|
break;
|
|
case 16: {
|
|
LifeTimeMs = input.ReadUInt32();
|
|
break;
|
|
}
|
|
case 24: {
|
|
PropId = input.ReadUInt32();
|
|
break;
|
|
}
|
|
case 34: {
|
|
triggerNameList_.AddEntriesFrom(input, _repeated_triggerNameList_codec);
|
|
break;
|
|
}
|
|
case 72: {
|
|
CreateTimeMs = input.ReadUInt64();
|
|
break;
|
|
}
|
|
case 82: {
|
|
if (extraInfo_ == null) {
|
|
ExtraInfo = new global::EggLink.DanhengServer.Proto.PropExtraInfo();
|
|
}
|
|
input.ReadMessage(ExtraInfo);
|
|
break;
|
|
}
|
|
case 88: {
|
|
PropState = input.ReadUInt32();
|
|
break;
|
|
}
|
|
case 106: {
|
|
if (timelineInfo_ == null) {
|
|
TimelineInfo = new global::EggLink.DanhengServer.Proto.PropTimelineInfo();
|
|
}
|
|
input.ReadMessage(TimelineInfo);
|
|
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) {
|
|
switch(tag) {
|
|
default:
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
|
|
break;
|
|
case 16: {
|
|
LifeTimeMs = input.ReadUInt32();
|
|
break;
|
|
}
|
|
case 24: {
|
|
PropId = input.ReadUInt32();
|
|
break;
|
|
}
|
|
case 34: {
|
|
triggerNameList_.AddEntriesFrom(ref input, _repeated_triggerNameList_codec);
|
|
break;
|
|
}
|
|
case 72: {
|
|
CreateTimeMs = input.ReadUInt64();
|
|
break;
|
|
}
|
|
case 82: {
|
|
if (extraInfo_ == null) {
|
|
ExtraInfo = new global::EggLink.DanhengServer.Proto.PropExtraInfo();
|
|
}
|
|
input.ReadMessage(ExtraInfo);
|
|
break;
|
|
}
|
|
case 88: {
|
|
PropState = input.ReadUInt32();
|
|
break;
|
|
}
|
|
case 106: {
|
|
if (timelineInfo_ == null) {
|
|
TimelineInfo = new global::EggLink.DanhengServer.Proto.PropTimelineInfo();
|
|
}
|
|
input.ReadMessage(TimelineInfo);
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
#endif
|
|
|
|
}
|
|
|
|
#endregion
|
|
|
|
}
|
|
|
|
#endregion Designer generated code
|