mirror of
https://github.com/EggLinks/DanhengServer-OpenSource.git
synced 2026-01-02 20:26:03 +08:00
656 lines
25 KiB
C#
656 lines
25 KiB
C#
// <auto-generated>
|
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
// source: SceneEntityInfo.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 SceneEntityInfo.proto</summary>
|
|
public static partial class SceneEntityInfoReflection {
|
|
|
|
#region Descriptor
|
|
/// <summary>File descriptor for SceneEntityInfo.proto</summary>
|
|
public static pbr::FileDescriptor Descriptor {
|
|
get { return descriptor; }
|
|
}
|
|
private static pbr::FileDescriptor descriptor;
|
|
|
|
static SceneEntityInfoReflection() {
|
|
byte[] descriptorData = global::System.Convert.FromBase64String(
|
|
string.Concat(
|
|
"ChVTY2VuZUVudGl0eUluZm8ucHJvdG8aEE1vdGlvbkluZm8ucHJvdG8aFFNj",
|
|
"ZW5lQWN0b3JJbmZvLnByb3RvGhlTY2VuZVN1bW1vblVuaXRJbmZvLnByb3Rv",
|
|
"GhJTY2VuZU5wY0luZm8ucHJvdG8aGVNjZW5lTnBjTW9uc3RlckluZm8ucHJv",
|
|
"dG8aE1NjZW5lUHJvcEluZm8ucHJvdG8iqAIKD1NjZW5lRW50aXR5SW5mbxIP",
|
|
"CgdHcm91cElkGA4gASgNEg4KBkluc3RJZBgDIAEoDRIQCghFbnRpdHlJZBgB",
|
|
"IAEoDRIbCgZNb3Rpb24YDSABKAsyCy5Nb3Rpb25JbmZvEiAKBUFjdG9yGAsg",
|
|
"ASgLMg8uU2NlbmVBY3RvckluZm9IABIqCgpOcGNNb25zdGVyGAQgASgLMhQu",
|
|
"U2NlbmVOcGNNb25zdGVySW5mb0gAEhwKA05wYxgHIAEoCzINLlNjZW5lTnBj",
|
|
"SW5mb0gAEh4KBFByb3AYDCABKAsyDi5TY2VuZVByb3BJbmZvSAASKgoKU3Vt",
|
|
"bW9uVW5pdBgFIAEoCzIULlNjZW5lU3VtbW9uVW5pdEluZm9IAEINCgtlbnRp",
|
|
"dHlDYXNlX0IeqgIbRWdnTGluay5EYW5oZW5nU2VydmVyLlByb3RvYgZwcm90",
|
|
"bzM="));
|
|
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
|
new pbr::FileDescriptor[] { global::EggLink.DanhengServer.Proto.MotionInfoReflection.Descriptor, global::EggLink.DanhengServer.Proto.SceneActorInfoReflection.Descriptor, global::EggLink.DanhengServer.Proto.SceneSummonUnitInfoReflection.Descriptor, global::EggLink.DanhengServer.Proto.SceneNpcInfoReflection.Descriptor, global::EggLink.DanhengServer.Proto.SceneNpcMonsterInfoReflection.Descriptor, global::EggLink.DanhengServer.Proto.ScenePropInfoReflection.Descriptor, },
|
|
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.SceneEntityInfo), global::EggLink.DanhengServer.Proto.SceneEntityInfo.Parser, new[]{ "GroupId", "InstId", "EntityId", "Motion", "Actor", "NpcMonster", "Npc", "Prop", "SummonUnit" }, new[]{ "EntityCase" }, null, null, null)
|
|
}));
|
|
}
|
|
#endregion
|
|
|
|
}
|
|
#region Messages
|
|
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
|
|
public sealed partial class SceneEntityInfo : pb::IMessage<SceneEntityInfo>
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
, pb::IBufferMessage
|
|
#endif
|
|
{
|
|
private static readonly pb::MessageParser<SceneEntityInfo> _parser = new pb::MessageParser<SceneEntityInfo>(() => new SceneEntityInfo());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pb::MessageParser<SceneEntityInfo> 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.SceneEntityInfoReflection.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 SceneEntityInfo() {
|
|
OnConstruction();
|
|
}
|
|
|
|
partial void OnConstruction();
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public SceneEntityInfo(SceneEntityInfo other) : this() {
|
|
groupId_ = other.groupId_;
|
|
instId_ = other.instId_;
|
|
entityId_ = other.entityId_;
|
|
motion_ = other.motion_ != null ? other.motion_.Clone() : null;
|
|
switch (other.EntityCaseCase) {
|
|
case EntityCaseOneofCase.Actor:
|
|
Actor = other.Actor.Clone();
|
|
break;
|
|
case EntityCaseOneofCase.NpcMonster:
|
|
NpcMonster = other.NpcMonster.Clone();
|
|
break;
|
|
case EntityCaseOneofCase.Npc:
|
|
Npc = other.Npc.Clone();
|
|
break;
|
|
case EntityCaseOneofCase.Prop:
|
|
Prop = other.Prop.Clone();
|
|
break;
|
|
case EntityCaseOneofCase.SummonUnit:
|
|
SummonUnit = other.SummonUnit.Clone();
|
|
break;
|
|
}
|
|
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public SceneEntityInfo Clone() {
|
|
return new SceneEntityInfo(this);
|
|
}
|
|
|
|
/// <summary>Field number for the "GroupId" field.</summary>
|
|
public const int GroupIdFieldNumber = 14;
|
|
private uint groupId_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public uint GroupId {
|
|
get { return groupId_; }
|
|
set {
|
|
groupId_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "InstId" field.</summary>
|
|
public const int InstIdFieldNumber = 3;
|
|
private uint instId_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public uint InstId {
|
|
get { return instId_; }
|
|
set {
|
|
instId_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "EntityId" field.</summary>
|
|
public const int EntityIdFieldNumber = 1;
|
|
private uint entityId_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public uint EntityId {
|
|
get { return entityId_; }
|
|
set {
|
|
entityId_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "Motion" field.</summary>
|
|
public const int MotionFieldNumber = 13;
|
|
private global::EggLink.DanhengServer.Proto.MotionInfo motion_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public global::EggLink.DanhengServer.Proto.MotionInfo Motion {
|
|
get { return motion_; }
|
|
set {
|
|
motion_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "Actor" field.</summary>
|
|
public const int ActorFieldNumber = 11;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public global::EggLink.DanhengServer.Proto.SceneActorInfo Actor {
|
|
get { return entityCaseCase_ == EntityCaseOneofCase.Actor ? (global::EggLink.DanhengServer.Proto.SceneActorInfo) entityCase_ : null; }
|
|
set {
|
|
entityCase_ = value;
|
|
entityCaseCase_ = value == null ? EntityCaseOneofCase.None : EntityCaseOneofCase.Actor;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "NpcMonster" field.</summary>
|
|
public const int NpcMonsterFieldNumber = 4;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public global::EggLink.DanhengServer.Proto.SceneNpcMonsterInfo NpcMonster {
|
|
get { return entityCaseCase_ == EntityCaseOneofCase.NpcMonster ? (global::EggLink.DanhengServer.Proto.SceneNpcMonsterInfo) entityCase_ : null; }
|
|
set {
|
|
entityCase_ = value;
|
|
entityCaseCase_ = value == null ? EntityCaseOneofCase.None : EntityCaseOneofCase.NpcMonster;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "Npc" field.</summary>
|
|
public const int NpcFieldNumber = 7;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public global::EggLink.DanhengServer.Proto.SceneNpcInfo Npc {
|
|
get { return entityCaseCase_ == EntityCaseOneofCase.Npc ? (global::EggLink.DanhengServer.Proto.SceneNpcInfo) entityCase_ : null; }
|
|
set {
|
|
entityCase_ = value;
|
|
entityCaseCase_ = value == null ? EntityCaseOneofCase.None : EntityCaseOneofCase.Npc;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "Prop" field.</summary>
|
|
public const int PropFieldNumber = 12;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public global::EggLink.DanhengServer.Proto.ScenePropInfo Prop {
|
|
get { return entityCaseCase_ == EntityCaseOneofCase.Prop ? (global::EggLink.DanhengServer.Proto.ScenePropInfo) entityCase_ : null; }
|
|
set {
|
|
entityCase_ = value;
|
|
entityCaseCase_ = value == null ? EntityCaseOneofCase.None : EntityCaseOneofCase.Prop;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "SummonUnit" field.</summary>
|
|
public const int SummonUnitFieldNumber = 5;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public global::EggLink.DanhengServer.Proto.SceneSummonUnitInfo SummonUnit {
|
|
get { return entityCaseCase_ == EntityCaseOneofCase.SummonUnit ? (global::EggLink.DanhengServer.Proto.SceneSummonUnitInfo) entityCase_ : null; }
|
|
set {
|
|
entityCase_ = value;
|
|
entityCaseCase_ = value == null ? EntityCaseOneofCase.None : EntityCaseOneofCase.SummonUnit;
|
|
}
|
|
}
|
|
|
|
private object entityCase_;
|
|
/// <summary>Enum of possible cases for the "entityCase_" oneof.</summary>
|
|
public enum EntityCaseOneofCase {
|
|
None = 0,
|
|
Actor = 11,
|
|
NpcMonster = 4,
|
|
Npc = 7,
|
|
Prop = 12,
|
|
SummonUnit = 5,
|
|
}
|
|
private EntityCaseOneofCase entityCaseCase_ = EntityCaseOneofCase.None;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public EntityCaseOneofCase EntityCaseCase {
|
|
get { return entityCaseCase_; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void ClearEntityCase() {
|
|
entityCaseCase_ = EntityCaseOneofCase.None;
|
|
entityCase_ = null;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public override bool Equals(object other) {
|
|
return Equals(other as SceneEntityInfo);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public bool Equals(SceneEntityInfo other) {
|
|
if (ReferenceEquals(other, null)) {
|
|
return false;
|
|
}
|
|
if (ReferenceEquals(other, this)) {
|
|
return true;
|
|
}
|
|
if (GroupId != other.GroupId) return false;
|
|
if (InstId != other.InstId) return false;
|
|
if (EntityId != other.EntityId) return false;
|
|
if (!object.Equals(Motion, other.Motion)) return false;
|
|
if (!object.Equals(Actor, other.Actor)) return false;
|
|
if (!object.Equals(NpcMonster, other.NpcMonster)) return false;
|
|
if (!object.Equals(Npc, other.Npc)) return false;
|
|
if (!object.Equals(Prop, other.Prop)) return false;
|
|
if (!object.Equals(SummonUnit, other.SummonUnit)) return false;
|
|
if (EntityCaseCase != other.EntityCaseCase) 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 (GroupId != 0) hash ^= GroupId.GetHashCode();
|
|
if (InstId != 0) hash ^= InstId.GetHashCode();
|
|
if (EntityId != 0) hash ^= EntityId.GetHashCode();
|
|
if (motion_ != null) hash ^= Motion.GetHashCode();
|
|
if (entityCaseCase_ == EntityCaseOneofCase.Actor) hash ^= Actor.GetHashCode();
|
|
if (entityCaseCase_ == EntityCaseOneofCase.NpcMonster) hash ^= NpcMonster.GetHashCode();
|
|
if (entityCaseCase_ == EntityCaseOneofCase.Npc) hash ^= Npc.GetHashCode();
|
|
if (entityCaseCase_ == EntityCaseOneofCase.Prop) hash ^= Prop.GetHashCode();
|
|
if (entityCaseCase_ == EntityCaseOneofCase.SummonUnit) hash ^= SummonUnit.GetHashCode();
|
|
hash ^= (int) entityCaseCase_;
|
|
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 (EntityId != 0) {
|
|
output.WriteRawTag(8);
|
|
output.WriteUInt32(EntityId);
|
|
}
|
|
if (InstId != 0) {
|
|
output.WriteRawTag(24);
|
|
output.WriteUInt32(InstId);
|
|
}
|
|
if (entityCaseCase_ == EntityCaseOneofCase.NpcMonster) {
|
|
output.WriteRawTag(34);
|
|
output.WriteMessage(NpcMonster);
|
|
}
|
|
if (entityCaseCase_ == EntityCaseOneofCase.SummonUnit) {
|
|
output.WriteRawTag(42);
|
|
output.WriteMessage(SummonUnit);
|
|
}
|
|
if (entityCaseCase_ == EntityCaseOneofCase.Npc) {
|
|
output.WriteRawTag(58);
|
|
output.WriteMessage(Npc);
|
|
}
|
|
if (entityCaseCase_ == EntityCaseOneofCase.Actor) {
|
|
output.WriteRawTag(90);
|
|
output.WriteMessage(Actor);
|
|
}
|
|
if (entityCaseCase_ == EntityCaseOneofCase.Prop) {
|
|
output.WriteRawTag(98);
|
|
output.WriteMessage(Prop);
|
|
}
|
|
if (motion_ != null) {
|
|
output.WriteRawTag(106);
|
|
output.WriteMessage(Motion);
|
|
}
|
|
if (GroupId != 0) {
|
|
output.WriteRawTag(112);
|
|
output.WriteUInt32(GroupId);
|
|
}
|
|
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 (EntityId != 0) {
|
|
output.WriteRawTag(8);
|
|
output.WriteUInt32(EntityId);
|
|
}
|
|
if (InstId != 0) {
|
|
output.WriteRawTag(24);
|
|
output.WriteUInt32(InstId);
|
|
}
|
|
if (entityCaseCase_ == EntityCaseOneofCase.NpcMonster) {
|
|
output.WriteRawTag(34);
|
|
output.WriteMessage(NpcMonster);
|
|
}
|
|
if (entityCaseCase_ == EntityCaseOneofCase.SummonUnit) {
|
|
output.WriteRawTag(42);
|
|
output.WriteMessage(SummonUnit);
|
|
}
|
|
if (entityCaseCase_ == EntityCaseOneofCase.Npc) {
|
|
output.WriteRawTag(58);
|
|
output.WriteMessage(Npc);
|
|
}
|
|
if (entityCaseCase_ == EntityCaseOneofCase.Actor) {
|
|
output.WriteRawTag(90);
|
|
output.WriteMessage(Actor);
|
|
}
|
|
if (entityCaseCase_ == EntityCaseOneofCase.Prop) {
|
|
output.WriteRawTag(98);
|
|
output.WriteMessage(Prop);
|
|
}
|
|
if (motion_ != null) {
|
|
output.WriteRawTag(106);
|
|
output.WriteMessage(Motion);
|
|
}
|
|
if (GroupId != 0) {
|
|
output.WriteRawTag(112);
|
|
output.WriteUInt32(GroupId);
|
|
}
|
|
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 (GroupId != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(GroupId);
|
|
}
|
|
if (InstId != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(InstId);
|
|
}
|
|
if (EntityId != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(EntityId);
|
|
}
|
|
if (motion_ != null) {
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Motion);
|
|
}
|
|
if (entityCaseCase_ == EntityCaseOneofCase.Actor) {
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Actor);
|
|
}
|
|
if (entityCaseCase_ == EntityCaseOneofCase.NpcMonster) {
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(NpcMonster);
|
|
}
|
|
if (entityCaseCase_ == EntityCaseOneofCase.Npc) {
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Npc);
|
|
}
|
|
if (entityCaseCase_ == EntityCaseOneofCase.Prop) {
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Prop);
|
|
}
|
|
if (entityCaseCase_ == EntityCaseOneofCase.SummonUnit) {
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(SummonUnit);
|
|
}
|
|
if (_unknownFields != null) {
|
|
size += _unknownFields.CalculateSize();
|
|
}
|
|
return size;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void MergeFrom(SceneEntityInfo other) {
|
|
if (other == null) {
|
|
return;
|
|
}
|
|
if (other.GroupId != 0) {
|
|
GroupId = other.GroupId;
|
|
}
|
|
if (other.InstId != 0) {
|
|
InstId = other.InstId;
|
|
}
|
|
if (other.EntityId != 0) {
|
|
EntityId = other.EntityId;
|
|
}
|
|
if (other.motion_ != null) {
|
|
if (motion_ == null) {
|
|
Motion = new global::EggLink.DanhengServer.Proto.MotionInfo();
|
|
}
|
|
Motion.MergeFrom(other.Motion);
|
|
}
|
|
switch (other.EntityCaseCase) {
|
|
case EntityCaseOneofCase.Actor:
|
|
if (Actor == null) {
|
|
Actor = new global::EggLink.DanhengServer.Proto.SceneActorInfo();
|
|
}
|
|
Actor.MergeFrom(other.Actor);
|
|
break;
|
|
case EntityCaseOneofCase.NpcMonster:
|
|
if (NpcMonster == null) {
|
|
NpcMonster = new global::EggLink.DanhengServer.Proto.SceneNpcMonsterInfo();
|
|
}
|
|
NpcMonster.MergeFrom(other.NpcMonster);
|
|
break;
|
|
case EntityCaseOneofCase.Npc:
|
|
if (Npc == null) {
|
|
Npc = new global::EggLink.DanhengServer.Proto.SceneNpcInfo();
|
|
}
|
|
Npc.MergeFrom(other.Npc);
|
|
break;
|
|
case EntityCaseOneofCase.Prop:
|
|
if (Prop == null) {
|
|
Prop = new global::EggLink.DanhengServer.Proto.ScenePropInfo();
|
|
}
|
|
Prop.MergeFrom(other.Prop);
|
|
break;
|
|
case EntityCaseOneofCase.SummonUnit:
|
|
if (SummonUnit == null) {
|
|
SummonUnit = new global::EggLink.DanhengServer.Proto.SceneSummonUnitInfo();
|
|
}
|
|
SummonUnit.MergeFrom(other.SummonUnit);
|
|
break;
|
|
}
|
|
|
|
_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: {
|
|
EntityId = input.ReadUInt32();
|
|
break;
|
|
}
|
|
case 24: {
|
|
InstId = input.ReadUInt32();
|
|
break;
|
|
}
|
|
case 34: {
|
|
global::EggLink.DanhengServer.Proto.SceneNpcMonsterInfo subBuilder = new global::EggLink.DanhengServer.Proto.SceneNpcMonsterInfo();
|
|
if (entityCaseCase_ == EntityCaseOneofCase.NpcMonster) {
|
|
subBuilder.MergeFrom(NpcMonster);
|
|
}
|
|
input.ReadMessage(subBuilder);
|
|
NpcMonster = subBuilder;
|
|
break;
|
|
}
|
|
case 42: {
|
|
global::EggLink.DanhengServer.Proto.SceneSummonUnitInfo subBuilder = new global::EggLink.DanhengServer.Proto.SceneSummonUnitInfo();
|
|
if (entityCaseCase_ == EntityCaseOneofCase.SummonUnit) {
|
|
subBuilder.MergeFrom(SummonUnit);
|
|
}
|
|
input.ReadMessage(subBuilder);
|
|
SummonUnit = subBuilder;
|
|
break;
|
|
}
|
|
case 58: {
|
|
global::EggLink.DanhengServer.Proto.SceneNpcInfo subBuilder = new global::EggLink.DanhengServer.Proto.SceneNpcInfo();
|
|
if (entityCaseCase_ == EntityCaseOneofCase.Npc) {
|
|
subBuilder.MergeFrom(Npc);
|
|
}
|
|
input.ReadMessage(subBuilder);
|
|
Npc = subBuilder;
|
|
break;
|
|
}
|
|
case 90: {
|
|
global::EggLink.DanhengServer.Proto.SceneActorInfo subBuilder = new global::EggLink.DanhengServer.Proto.SceneActorInfo();
|
|
if (entityCaseCase_ == EntityCaseOneofCase.Actor) {
|
|
subBuilder.MergeFrom(Actor);
|
|
}
|
|
input.ReadMessage(subBuilder);
|
|
Actor = subBuilder;
|
|
break;
|
|
}
|
|
case 98: {
|
|
global::EggLink.DanhengServer.Proto.ScenePropInfo subBuilder = new global::EggLink.DanhengServer.Proto.ScenePropInfo();
|
|
if (entityCaseCase_ == EntityCaseOneofCase.Prop) {
|
|
subBuilder.MergeFrom(Prop);
|
|
}
|
|
input.ReadMessage(subBuilder);
|
|
Prop = subBuilder;
|
|
break;
|
|
}
|
|
case 106: {
|
|
if (motion_ == null) {
|
|
Motion = new global::EggLink.DanhengServer.Proto.MotionInfo();
|
|
}
|
|
input.ReadMessage(Motion);
|
|
break;
|
|
}
|
|
case 112: {
|
|
GroupId = 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: {
|
|
EntityId = input.ReadUInt32();
|
|
break;
|
|
}
|
|
case 24: {
|
|
InstId = input.ReadUInt32();
|
|
break;
|
|
}
|
|
case 34: {
|
|
global::EggLink.DanhengServer.Proto.SceneNpcMonsterInfo subBuilder = new global::EggLink.DanhengServer.Proto.SceneNpcMonsterInfo();
|
|
if (entityCaseCase_ == EntityCaseOneofCase.NpcMonster) {
|
|
subBuilder.MergeFrom(NpcMonster);
|
|
}
|
|
input.ReadMessage(subBuilder);
|
|
NpcMonster = subBuilder;
|
|
break;
|
|
}
|
|
case 42: {
|
|
global::EggLink.DanhengServer.Proto.SceneSummonUnitInfo subBuilder = new global::EggLink.DanhengServer.Proto.SceneSummonUnitInfo();
|
|
if (entityCaseCase_ == EntityCaseOneofCase.SummonUnit) {
|
|
subBuilder.MergeFrom(SummonUnit);
|
|
}
|
|
input.ReadMessage(subBuilder);
|
|
SummonUnit = subBuilder;
|
|
break;
|
|
}
|
|
case 58: {
|
|
global::EggLink.DanhengServer.Proto.SceneNpcInfo subBuilder = new global::EggLink.DanhengServer.Proto.SceneNpcInfo();
|
|
if (entityCaseCase_ == EntityCaseOneofCase.Npc) {
|
|
subBuilder.MergeFrom(Npc);
|
|
}
|
|
input.ReadMessage(subBuilder);
|
|
Npc = subBuilder;
|
|
break;
|
|
}
|
|
case 90: {
|
|
global::EggLink.DanhengServer.Proto.SceneActorInfo subBuilder = new global::EggLink.DanhengServer.Proto.SceneActorInfo();
|
|
if (entityCaseCase_ == EntityCaseOneofCase.Actor) {
|
|
subBuilder.MergeFrom(Actor);
|
|
}
|
|
input.ReadMessage(subBuilder);
|
|
Actor = subBuilder;
|
|
break;
|
|
}
|
|
case 98: {
|
|
global::EggLink.DanhengServer.Proto.ScenePropInfo subBuilder = new global::EggLink.DanhengServer.Proto.ScenePropInfo();
|
|
if (entityCaseCase_ == EntityCaseOneofCase.Prop) {
|
|
subBuilder.MergeFrom(Prop);
|
|
}
|
|
input.ReadMessage(subBuilder);
|
|
Prop = subBuilder;
|
|
break;
|
|
}
|
|
case 106: {
|
|
if (motion_ == null) {
|
|
Motion = new global::EggLink.DanhengServer.Proto.MotionInfo();
|
|
}
|
|
input.ReadMessage(Motion);
|
|
break;
|
|
}
|
|
case 112: {
|
|
GroupId = input.ReadUInt32();
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
#endif
|
|
|
|
}
|
|
|
|
#endregion
|
|
|
|
}
|
|
|
|
#endregion Designer generated code
|