Files
DanhengServer-OpenSource/Proto/SceneSummonUnitInfo.cs
2024-11-16 10:25:29 +08:00

415 lines
15 KiB
C#

// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: SceneSummonUnitInfo.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 SceneSummonUnitInfo.proto</summary>
public static partial class SceneSummonUnitInfoReflection {
#region Descriptor
/// <summary>File descriptor for SceneSummonUnitInfo.proto</summary>
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static SceneSummonUnitInfoReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"ChlTY2VuZVN1bW1vblVuaXRJbmZvLnByb3RvIqoBChNTY2VuZVN1bW1vblVu",
"aXRJbmZvEhgKEGF0dGFjaF9lbnRpdHlfaWQYBCABKA0SFgoOY3JlYXRlX3Rp",
"bWVfbXMYCyABKAQSGAoQY2FzdGVyX2VudGl0eV9pZBgMIAEoDRIUCgxsaWZl",
"X3RpbWVfbXMYASABKAUSGQoRdHJpZ2dlcl9uYW1lX2xpc3QYAiADKAkSFgoO",
"c3VtbW9uX3VuaXRfaWQYBSABKA1CHqoCG0VnZ0xpbmsuRGFuaGVuZ1NlcnZl",
"ci5Qcm90b2IGcHJvdG8z"));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { },
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.SceneSummonUnitInfo), global::EggLink.DanhengServer.Proto.SceneSummonUnitInfo.Parser, new[]{ "AttachEntityId", "CreateTimeMs", "CasterEntityId", "LifeTimeMs", "TriggerNameList", "SummonUnitId" }, null, null, null, null)
}));
}
#endregion
}
#region Messages
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
public sealed partial class SceneSummonUnitInfo : pb::IMessage<SceneSummonUnitInfo>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<SceneSummonUnitInfo> _parser = new pb::MessageParser<SceneSummonUnitInfo>(() => new SceneSummonUnitInfo());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser<SceneSummonUnitInfo> 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.SceneSummonUnitInfoReflection.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 SceneSummonUnitInfo() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public SceneSummonUnitInfo(SceneSummonUnitInfo other) : this() {
attachEntityId_ = other.attachEntityId_;
createTimeMs_ = other.createTimeMs_;
casterEntityId_ = other.casterEntityId_;
lifeTimeMs_ = other.lifeTimeMs_;
triggerNameList_ = other.triggerNameList_.Clone();
summonUnitId_ = other.summonUnitId_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public SceneSummonUnitInfo Clone() {
return new SceneSummonUnitInfo(this);
}
/// <summary>Field number for the "attach_entity_id" field.</summary>
public const int AttachEntityIdFieldNumber = 4;
private uint attachEntityId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public uint AttachEntityId {
get { return attachEntityId_; }
set {
attachEntityId_ = value;
}
}
/// <summary>Field number for the "create_time_ms" field.</summary>
public const int CreateTimeMsFieldNumber = 11;
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 "caster_entity_id" field.</summary>
public const int CasterEntityIdFieldNumber = 12;
private uint casterEntityId_;
/// <summary>
/// TODO
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public uint CasterEntityId {
get { return casterEntityId_; }
set {
casterEntityId_ = value;
}
}
/// <summary>Field number for the "life_time_ms" field.</summary>
public const int LifeTimeMsFieldNumber = 1;
private int lifeTimeMs_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int LifeTimeMs {
get { return lifeTimeMs_; }
set {
lifeTimeMs_ = value;
}
}
/// <summary>Field number for the "trigger_name_list" field.</summary>
public const int TriggerNameListFieldNumber = 2;
private static readonly pb::FieldCodec<string> _repeated_triggerNameList_codec
= pb::FieldCodec.ForString(18);
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_; }
}
/// <summary>Field number for the "summon_unit_id" field.</summary>
public const int SummonUnitIdFieldNumber = 5;
private uint summonUnitId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public uint SummonUnitId {
get { return summonUnitId_; }
set {
summonUnitId_ = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as SceneSummonUnitInfo);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(SceneSummonUnitInfo other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (AttachEntityId != other.AttachEntityId) return false;
if (CreateTimeMs != other.CreateTimeMs) return false;
if (CasterEntityId != other.CasterEntityId) return false;
if (LifeTimeMs != other.LifeTimeMs) return false;
if(!triggerNameList_.Equals(other.triggerNameList_)) return false;
if (SummonUnitId != other.SummonUnitId) 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 (AttachEntityId != 0) hash ^= AttachEntityId.GetHashCode();
if (CreateTimeMs != 0UL) hash ^= CreateTimeMs.GetHashCode();
if (CasterEntityId != 0) hash ^= CasterEntityId.GetHashCode();
if (LifeTimeMs != 0) hash ^= LifeTimeMs.GetHashCode();
hash ^= triggerNameList_.GetHashCode();
if (SummonUnitId != 0) hash ^= SummonUnitId.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(8);
output.WriteInt32(LifeTimeMs);
}
triggerNameList_.WriteTo(output, _repeated_triggerNameList_codec);
if (AttachEntityId != 0) {
output.WriteRawTag(32);
output.WriteUInt32(AttachEntityId);
}
if (SummonUnitId != 0) {
output.WriteRawTag(40);
output.WriteUInt32(SummonUnitId);
}
if (CreateTimeMs != 0UL) {
output.WriteRawTag(88);
output.WriteUInt64(CreateTimeMs);
}
if (CasterEntityId != 0) {
output.WriteRawTag(96);
output.WriteUInt32(CasterEntityId);
}
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(8);
output.WriteInt32(LifeTimeMs);
}
triggerNameList_.WriteTo(ref output, _repeated_triggerNameList_codec);
if (AttachEntityId != 0) {
output.WriteRawTag(32);
output.WriteUInt32(AttachEntityId);
}
if (SummonUnitId != 0) {
output.WriteRawTag(40);
output.WriteUInt32(SummonUnitId);
}
if (CreateTimeMs != 0UL) {
output.WriteRawTag(88);
output.WriteUInt64(CreateTimeMs);
}
if (CasterEntityId != 0) {
output.WriteRawTag(96);
output.WriteUInt32(CasterEntityId);
}
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 (AttachEntityId != 0) {
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(AttachEntityId);
}
if (CreateTimeMs != 0UL) {
size += 1 + pb::CodedOutputStream.ComputeUInt64Size(CreateTimeMs);
}
if (CasterEntityId != 0) {
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(CasterEntityId);
}
if (LifeTimeMs != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(LifeTimeMs);
}
size += triggerNameList_.CalculateSize(_repeated_triggerNameList_codec);
if (SummonUnitId != 0) {
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(SummonUnitId);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(SceneSummonUnitInfo other) {
if (other == null) {
return;
}
if (other.AttachEntityId != 0) {
AttachEntityId = other.AttachEntityId;
}
if (other.CreateTimeMs != 0UL) {
CreateTimeMs = other.CreateTimeMs;
}
if (other.CasterEntityId != 0) {
CasterEntityId = other.CasterEntityId;
}
if (other.LifeTimeMs != 0) {
LifeTimeMs = other.LifeTimeMs;
}
triggerNameList_.Add(other.triggerNameList_);
if (other.SummonUnitId != 0) {
SummonUnitId = other.SummonUnitId;
}
_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 8: {
LifeTimeMs = input.ReadInt32();
break;
}
case 18: {
triggerNameList_.AddEntriesFrom(input, _repeated_triggerNameList_codec);
break;
}
case 32: {
AttachEntityId = input.ReadUInt32();
break;
}
case 40: {
SummonUnitId = input.ReadUInt32();
break;
}
case 88: {
CreateTimeMs = input.ReadUInt64();
break;
}
case 96: {
CasterEntityId = input.ReadUInt32();
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 8: {
LifeTimeMs = input.ReadInt32();
break;
}
case 18: {
triggerNameList_.AddEntriesFrom(ref input, _repeated_triggerNameList_codec);
break;
}
case 32: {
AttachEntityId = input.ReadUInt32();
break;
}
case 40: {
SummonUnitId = input.ReadUInt32();
break;
}
case 88: {
CreateTimeMs = input.ReadUInt64();
break;
}
case 96: {
CasterEntityId = input.ReadUInt32();
break;
}
}
}
}
#endif
}
#endregion
}
#endregion Designer generated code