From 8ffac13f7f8edf1bfb07250d8bac1c2c4ad88ee3 Mon Sep 17 00:00:00 2001 From: huyulong <1838407198@qq.com> Date: Fri, 29 Nov 2024 15:13:32 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0proto=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- xiaofang/Assets/Resources/Ain/Npc.controller | 174 +- xiaofang/Assets/Script/npc/RecuseNpc.cs | 35 +- xiaofang/Assets/comm/Proto/Common.cs | 281 +++ .../{ProtoBufffer.cs.meta => Common.cs.meta} | 2 +- xiaofang/Assets/comm/Proto/Fps.cs | 12 +- xiaofang/Assets/comm/Proto/Hall.cs | 72 + xiaofang/Assets/comm/Proto/Join.cs | 2174 ++++++++++++++++- xiaofang/Assets/comm/Proto/Move.cs | 103 +- xiaofang/Assets/comm/Proto/Object.cs | 1497 ++++++++++++ xiaofang/Assets/comm/Proto/Object.cs.meta | 11 + xiaofang/Assets/comm/Proto/Prop.cs | 15 + xiaofang/Assets/comm/Proto/ProtoBufffer.cs | 28 - xiaofang/Assets/comm/Proto/Room.cs | 1392 ++++++++++- xiaofang/Assets/comm/test.cs | 1 + 14 files changed, 5679 insertions(+), 118 deletions(-) create mode 100644 xiaofang/Assets/comm/Proto/Common.cs rename xiaofang/Assets/comm/Proto/{ProtoBufffer.cs.meta => Common.cs.meta} (83%) create mode 100644 xiaofang/Assets/comm/Proto/Object.cs create mode 100644 xiaofang/Assets/comm/Proto/Object.cs.meta delete mode 100644 xiaofang/Assets/comm/Proto/ProtoBufffer.cs diff --git a/xiaofang/Assets/Resources/Ain/Npc.controller b/xiaofang/Assets/Resources/Ain/Npc.controller index ca475901..4a3367da 100644 --- a/xiaofang/Assets/Resources/Ain/Npc.controller +++ b/xiaofang/Assets/Resources/Ain/Npc.controller @@ -1,6 +1,34 @@ %YAML 1.1 %TAG !u! tag:unity3d.com,2011: ---- !u!1101 &-5083329074022439226 +--- !u!1102 &-7494286096945644898 +AnimatorState: + serializedVersion: 6 + m_ObjectHideFlags: 1 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: idle + m_Speed: 1 + m_CycleOffset: 0 + m_Transitions: + - {fileID: 3074207396828194077} + - {fileID: -3798024589101560023} + m_StateMachineBehaviours: [] + m_Position: {x: 50, y: 50, z: 0} + m_IKOnFeet: 0 + m_WriteDefaultValues: 1 + m_Mirror: 0 + m_SpeedParameterActive: 0 + m_MirrorParameterActive: 0 + m_CycleOffsetParameterActive: 0 + m_TimeParameterActive: 0 + m_Motion: {fileID: 7400000, guid: 471152417041a2940a4295d01794f152, type: 2} + m_Tag: + m_SpeedParameter: + m_MirrorParameter: + m_CycleOffsetParameter: + m_TimeParameter: +--- !u!1101 &-7478834394725811032 AnimatorStateTransition: m_ObjectHideFlags: 1 m_CorrespondingSourceObject: {fileID: 0} @@ -8,11 +36,11 @@ AnimatorStateTransition: m_PrefabAsset: {fileID: 0} m_Name: m_Conditions: - - m_ConditionMode: 2 - m_ConditionEvent: Recuse + - m_ConditionMode: 6 + m_ConditionEvent: state m_EventTreshold: 0 m_DstStateMachine: {fileID: 0} - m_DstState: {fileID: -1085241712214742412} + m_DstState: {fileID: -963242654641360267} m_Solo: 0 m_Mute: 0 m_IsExit: 0 @@ -25,6 +53,31 @@ AnimatorStateTransition: m_InterruptionSource: 0 m_OrderedInterruption: 1 m_CanTransitionToSelf: 1 +--- !u!1101 &-3798024589101560023 +AnimatorStateTransition: + m_ObjectHideFlags: 1 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: + m_Conditions: + - m_ConditionMode: 6 + m_ConditionEvent: state + m_EventTreshold: 0 + m_DstStateMachine: {fileID: 0} + m_DstState: {fileID: -963242654641360267} + m_Solo: 0 + m_Mute: 0 + m_IsExit: 0 + serializedVersion: 3 + m_TransitionDuration: 0.25 + m_TransitionOffset: 0 + m_ExitTime: 0.9390244 + m_HasExitTime: 1 + m_HasFixedDuration: 1 + m_InterruptionSource: 0 + m_OrderedInterruption: 1 + m_CanTransitionToSelf: 1 --- !u!1101 &-2928487774769089836 AnimatorStateTransition: m_ObjectHideFlags: 1 @@ -33,9 +86,9 @@ AnimatorStateTransition: m_PrefabAsset: {fileID: 0} m_Name: m_Conditions: - - m_ConditionMode: 1 - m_ConditionEvent: Recuse - m_EventTreshold: 0 + - m_ConditionMode: 6 + m_ConditionEvent: state + m_EventTreshold: 1 m_DstStateMachine: {fileID: 0} m_DstState: {fileID: 5494399718017335990} m_Solo: 0 @@ -66,8 +119,8 @@ AnimatorStateMachine: m_State: {fileID: 5494399718017335990} m_Position: {x: 310, y: 120, z: 0} - serializedVersion: 1 - m_State: {fileID: -1085241712214742412} - m_Position: {x: 310, y: 220, z: 0} + m_State: {fileID: -7494286096945644898} + m_Position: {x: 300, y: 250, z: 0} m_ChildStateMachines: [] m_AnyStateTransitions: [] m_EntryTransitions: [] @@ -78,32 +131,31 @@ AnimatorStateMachine: m_ExitPosition: {x: 800, y: 120, z: 0} m_ParentStateMachinePosition: {x: 800, y: 20, z: 0} m_DefaultState: {fileID: -963242654641360267} ---- !u!1102 &-1085241712214742412 -AnimatorState: - serializedVersion: 6 +--- !u!1101 &-1024762781344007907 +AnimatorStateTransition: m_ObjectHideFlags: 1 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_Name: New State - m_Speed: 1 - m_CycleOffset: 0 - m_Transitions: [] - m_StateMachineBehaviours: [] - m_Position: {x: 50, y: 50, z: 0} - m_IKOnFeet: 0 - m_WriteDefaultValues: 1 - m_Mirror: 0 - m_SpeedParameterActive: 0 - m_MirrorParameterActive: 0 - m_CycleOffsetParameterActive: 0 - m_TimeParameterActive: 0 - m_Motion: {fileID: -203655887218126122, guid: 4f5096cf35822b94cacebf7fb5d86d34, type: 3} - m_Tag: - m_SpeedParameter: - m_MirrorParameter: - m_CycleOffsetParameter: - m_TimeParameter: + m_Name: + m_Conditions: + - m_ConditionMode: 6 + m_ConditionEvent: state + m_EventTreshold: 2 + m_DstStateMachine: {fileID: 0} + m_DstState: {fileID: -7494286096945644898} + m_Solo: 0 + m_Mute: 0 + m_IsExit: 0 + serializedVersion: 3 + m_TransitionDuration: 0.25 + m_TransitionOffset: 0 + m_ExitTime: 0.57865167 + m_HasExitTime: 1 + m_HasFixedDuration: 1 + m_InterruptionSource: 0 + m_OrderedInterruption: 1 + m_CanTransitionToSelf: 1 --- !u!1102 &-963242654641360267 AnimatorState: serializedVersion: 6 @@ -116,6 +168,7 @@ AnimatorState: m_CycleOffset: 0 m_Transitions: - {fileID: -2928487774769089836} + - {fileID: -931227757920040213} m_StateMachineBehaviours: [] m_Position: {x: 50, y: 50, z: 0} m_IKOnFeet: 0 @@ -131,6 +184,31 @@ AnimatorState: m_MirrorParameter: m_CycleOffsetParameter: m_TimeParameter: +--- !u!1101 &-931227757920040213 +AnimatorStateTransition: + m_ObjectHideFlags: 1 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: + m_Conditions: + - m_ConditionMode: 6 + m_ConditionEvent: state + m_EventTreshold: 2 + m_DstStateMachine: {fileID: 0} + m_DstState: {fileID: -7494286096945644898} + m_Solo: 0 + m_Mute: 0 + m_IsExit: 0 + serializedVersion: 3 + m_TransitionDuration: 0.25 + m_TransitionOffset: 0 + m_ExitTime: 0.9292453 + m_HasExitTime: 1 + m_HasFixedDuration: 1 + m_InterruptionSource: 0 + m_OrderedInterruption: 1 + m_CanTransitionToSelf: 1 --- !u!91 &9100000 AnimatorController: m_ObjectHideFlags: 0 @@ -146,6 +224,12 @@ AnimatorController: m_DefaultInt: 0 m_DefaultBool: 0 m_Controller: {fileID: 9100000} + - m_Name: state + m_Type: 3 + m_DefaultFloat: 0 + m_DefaultInt: 0 + m_DefaultBool: 0 + m_Controller: {fileID: 9100000} m_AnimatorLayers: - serializedVersion: 5 m_Name: Base Layer @@ -159,6 +243,31 @@ AnimatorController: m_IKPass: 0 m_SyncedLayerAffectsTiming: 0 m_Controller: {fileID: 9100000} +--- !u!1101 &3074207396828194077 +AnimatorStateTransition: + m_ObjectHideFlags: 1 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: + m_Conditions: + - m_ConditionMode: 6 + m_ConditionEvent: state + m_EventTreshold: 1 + m_DstStateMachine: {fileID: 0} + m_DstState: {fileID: 5494399718017335990} + m_Solo: 0 + m_Mute: 0 + m_IsExit: 0 + serializedVersion: 3 + m_TransitionDuration: 0.25 + m_TransitionOffset: 0 + m_ExitTime: 0.9390244 + m_HasExitTime: 1 + m_HasFixedDuration: 1 + m_InterruptionSource: 0 + m_OrderedInterruption: 1 + m_CanTransitionToSelf: 1 --- !u!1102 &5494399718017335990 AnimatorState: serializedVersion: 6 @@ -170,7 +279,8 @@ AnimatorState: m_Speed: 1 m_CycleOffset: 0 m_Transitions: - - {fileID: -5083329074022439226} + - {fileID: -1024762781344007907} + - {fileID: -7478834394725811032} m_StateMachineBehaviours: [] m_Position: {x: 50, y: 50, z: 0} m_IKOnFeet: 0 diff --git a/xiaofang/Assets/Script/npc/RecuseNpc.cs b/xiaofang/Assets/Script/npc/RecuseNpc.cs index 41f9c522..91b5b071 100644 --- a/xiaofang/Assets/Script/npc/RecuseNpc.cs +++ b/xiaofang/Assets/Script/npc/RecuseNpc.cs @@ -7,7 +7,7 @@ public enum Npcstate { idle, dead, - healthy + run } public class RecuseNpc : MonoBehaviour @@ -18,7 +18,7 @@ public class RecuseNpc : MonoBehaviour private Animator anim; - private Npcstate nstate = Npcstate.dead; + public Npcstate nstate = Npcstate.dead; private bool movebool = false; private Transform target; @@ -44,8 +44,9 @@ public class RecuseNpc : MonoBehaviour public void Setnpcstate()//点击救援按钮执行完动作后对按钮进行隐藏 { + movebool = true; - nstate = Npcstate.healthy; + nstate = Npcstate.run; recusebtn.gameObject.SetActive(false); Debug.Log("Setnpcstate调用"); } @@ -63,19 +64,33 @@ public class RecuseNpc : MonoBehaviour switch (nstate)//通过枚举状态实现人物是否被救援,以及动作的改变 { case Npcstate.idle: - anim.SetBool("Recuse", false); + SetAni(2); break; - case Npcstate.healthy: - anim.SetBool("Recuse", true); - transform.LookAt(target); - transform.position = Vector3.Lerp(transform.position, target.position, 0.3f * Time.deltaTime); + case Npcstate.run: + movebool = true; + Run(); break; case Npcstate.dead: - + SetAni(0); break; } + } - + //跑步逻辑 + public void Run() + { + if (movebool) + { + SetAni(1); + transform.LookAt(target); + transform.position = Vector3.Lerp(transform.position, target.position, 0.3f * Time.deltaTime); + } + } + + + public void SetAni(int x) + { + anim.SetInteger("state", x); } diff --git a/xiaofang/Assets/comm/Proto/Common.cs b/xiaofang/Assets/comm/Proto/Common.cs new file mode 100644 index 00000000..4e106243 --- /dev/null +++ b/xiaofang/Assets/comm/Proto/Common.cs @@ -0,0 +1,281 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: common.proto +// +#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; +/// Holder for reflection information generated from common.proto +public static partial class CommonReflection { + + #region Descriptor + /// File descriptor for common.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static CommonReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Cgxjb21tb24ucHJvdG8iLgoNUmVzdWx0TWVzc2FnZRIMCgRjb2RlGAEgASgF", + "Eg8KB21lc3NhZ2UYAiABKAlCB1oFLi87cGJiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::ResultMessage), global::ResultMessage.Parser, new[]{ "Code", "Message" }, null, null, null, null) + })); + } + #endregion + +} +#region Messages +[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] +public sealed partial class ResultMessage : pb::IMessage +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage +#endif +{ + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ResultMessage()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::CommonReflection.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 ResultMessage() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ResultMessage(ResultMessage other) : this() { + code_ = other.code_; + message_ = other.message_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ResultMessage Clone() { + return new ResultMessage(this); + } + + /// Field number for the "code" field. + public const int CodeFieldNumber = 1; + private int code_; + /// + /// 閿欒鐮 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Code { + get { return code_; } + set { + code_ = value; + } + } + + /// Field number for the "message" field. + public const int MessageFieldNumber = 2; + private string message_ = ""; + /// + /// 閿欒淇℃伅 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Message { + get { return message_; } + set { + message_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ResultMessage); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ResultMessage other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Code != other.Code) return false; + if (Message != other.Message) 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 (Code != 0) hash ^= Code.GetHashCode(); + if (Message.Length != 0) hash ^= Message.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 (Code != 0) { + output.WriteRawTag(8); + output.WriteInt32(Code); + } + if (Message.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Message); + } + 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 (Code != 0) { + output.WriteRawTag(8); + output.WriteInt32(Code); + } + if (Message.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Message); + } + 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 (Code != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Code); + } + if (Message.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Message); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ResultMessage other) { + if (other == null) { + return; + } + if (other.Code != 0) { + Code = other.Code; + } + if (other.Message.Length != 0) { + Message = other.Message; + } + _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: { + Code = input.ReadInt32(); + break; + } + case 18: { + Message = input.ReadString(); + 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: { + Code = input.ReadInt32(); + break; + } + case 18: { + Message = input.ReadString(); + break; + } + } + } + } + #endif + +} + +#endregion + + +#endregion Designer generated code diff --git a/xiaofang/Assets/comm/Proto/ProtoBufffer.cs.meta b/xiaofang/Assets/comm/Proto/Common.cs.meta similarity index 83% rename from xiaofang/Assets/comm/Proto/ProtoBufffer.cs.meta rename to xiaofang/Assets/comm/Proto/Common.cs.meta index 0c279cd2..1f62f667 100644 --- a/xiaofang/Assets/comm/Proto/ProtoBufffer.cs.meta +++ b/xiaofang/Assets/comm/Proto/Common.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 09a7d1a0777441d489f8b7ffae5077c9 +guid: 8f08a6ce1ce72944ab924e71bac47c6f MonoImporter: externalObjects: {} serializedVersion: 2 diff --git a/xiaofang/Assets/comm/Proto/Fps.cs b/xiaofang/Assets/comm/Proto/Fps.cs index 8465fa89..b2a64f5d 100644 --- a/xiaofang/Assets/comm/Proto/Fps.cs +++ b/xiaofang/Assets/comm/Proto/Fps.cs @@ -27,7 +27,7 @@ public static partial class FpsReflection { "B2ZyYW1lSUQYASABKA1IAIgBARIZCgVpbnB1dBgCIAMoCzIKLklucHV0RGF0", "YUIKCghfZnJhbWVJRCJpCglJbnB1dERhdGESCgoCaWQYASABKAkSCwoDc0lk", "GAIgASgJEgkKAXgYAyABKAISCQoBeRgEIAEoAhISCgpyb29tU2VhdElkGAUg", - "ASgFEgkKAXoYBiABKAISDgoGcm9vbUlkGAcgASgJIg8KDUVtcHR5UmVzcG9u", + "ASgFEgkKAXoYBiABKAISDgoGcm9vbUlkGAggASgJIg8KDUVtcHR5UmVzcG9u", "c2VCB1oFLi87cGJiBnByb3RvMw==")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { }, @@ -630,7 +630,7 @@ public sealed partial class InputData : pb::IMessage } /// Field number for the "roomId" field. - public const int RoomIdFieldNumber = 7; + public const int RoomIdFieldNumber = 8; private string roomId_ = ""; /// ///鎴块棿id @@ -723,7 +723,7 @@ public sealed partial class InputData : pb::IMessage output.WriteFloat(Z); } if (RoomId.Length != 0) { - output.WriteRawTag(58); + output.WriteRawTag(66); output.WriteString(RoomId); } if (_unknownFields != null) { @@ -761,7 +761,7 @@ public sealed partial class InputData : pb::IMessage output.WriteFloat(Z); } if (RoomId.Length != 0) { - output.WriteRawTag(58); + output.WriteRawTag(66); output.WriteString(RoomId); } if (_unknownFields != null) { @@ -871,7 +871,7 @@ public sealed partial class InputData : pb::IMessage Z = input.ReadFloat(); break; } - case 58: { + case 66: { RoomId = input.ReadString(); break; } @@ -918,7 +918,7 @@ public sealed partial class InputData : pb::IMessage Z = input.ReadFloat(); break; } - case 58: { + case 66: { RoomId = input.ReadString(); break; } diff --git a/xiaofang/Assets/comm/Proto/Hall.cs b/xiaofang/Assets/comm/Proto/Hall.cs index ed173479..88f09750 100644 --- a/xiaofang/Assets/comm/Proto/Hall.cs +++ b/xiaofang/Assets/comm/Proto/Hall.cs @@ -1217,6 +1217,9 @@ public sealed partial class JoinRoomResponse : pb::IMessage /// Field number for the "data" field. public const int DataFieldNumber = 3; private global::PlayerJoinResponse data_; + /// + /// 鐜╁鍔犲叆鎴块棿杩斿洖鏁版嵁 + /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::PlayerJoinResponse Data { @@ -1494,6 +1497,9 @@ public sealed partial class PlayerJoinResponse : pb::IMessageField number for the "UserName" field. public const int UserNameFieldNumber = 1; private string userName_ = ""; + /// + /// 鐢ㄦ埛鍚 + /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string UserName { @@ -1506,6 +1512,9 @@ public sealed partial class PlayerJoinResponse : pb::IMessageField number for the "RoomId" field. public const int RoomIdFieldNumber = 2; private string roomId_ = ""; + /// + /// 鎴块棿Id + /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string RoomId { @@ -1518,6 +1527,9 @@ public sealed partial class PlayerJoinResponse : pb::IMessageField number for the "Status" field. public const int StatusFieldNumber = 3; private int status_; + /// + /// 鐘舵 0 寰呭姞鍏 1杩涜涓 2宸茬粨鏉 + /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int Status { @@ -1530,6 +1542,9 @@ public sealed partial class PlayerJoinResponse : pb::IMessageField number for the "RoleName" field. public const int RoleNameFieldNumber = 4; private string roleName_ = ""; + /// + /// 瑙掕壊鍚 + /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string RoleName { @@ -1542,6 +1557,9 @@ public sealed partial class PlayerJoinResponse : pb::IMessageField number for the "IsLeadingNPC" field. public const int IsLeadingNPCFieldNumber = 5; private int isLeadingNPC_; + /// + /// 1=姝よ亴涓氭湁鍒嗙NPC鐨勫姛鑳 + /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int IsLeadingNPC { @@ -1554,6 +1572,9 @@ public sealed partial class PlayerJoinResponse : pb::IMessageField number for the "Online" field. public const int OnlineFieldNumber = 6; private bool online_; + /// + /// 鍒ゆ柇鏄惁鍦ㄧ嚎 true 鍦ㄧ嚎 false 绂荤嚎 + /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Online { @@ -1566,6 +1587,9 @@ public sealed partial class PlayerJoinResponse : pb::IMessageField number for the "RoleId" field. public const int RoleIdFieldNumber = 7; private int roleId_; + /// + /// 瑙掕壊id + /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int RoleId { @@ -1578,6 +1602,9 @@ public sealed partial class PlayerJoinResponse : pb::IMessageField number for the "GroupLeader" field. public const int GroupLeaderFieldNumber = 8; private int groupLeader_; + /// + /// 鏄惁鏄粍闀 0 缁勫憳 1 缁勯暱 2 鎬绘寚鎸 3 涓绘寔浜 + /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int GroupLeader { @@ -1590,6 +1617,9 @@ public sealed partial class PlayerJoinResponse : pb::IMessageField number for the "ActionMode" field. public const int ActionModeFieldNumber = 9; private int actionMode_; + /// + /// 0=涓绘寔浜 1=鎸囦护寮忚鍔 2=鑷敱琛屽姩 + /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int ActionMode { @@ -1602,6 +1632,9 @@ public sealed partial class PlayerJoinResponse : pb::IMessageField number for the "Group" field. public const int GroupFieldNumber = 10; private int group_; + /// + /// 灏忕粍褰掑睘 -1 鏃犲綊灞 鏈夊兼湁褰掑睘 + /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int Group { @@ -1614,6 +1647,9 @@ public sealed partial class PlayerJoinResponse : pb::IMessageField number for the "X" field. public const int XFieldNumber = 11; private float x_; + /// + /// 鍧愭爣x + /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public float X { @@ -1626,6 +1662,9 @@ public sealed partial class PlayerJoinResponse : pb::IMessageField number for the "Y" field. public const int YFieldNumber = 12; private float y_; + /// + /// 鍧愭爣y + /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public float Y { @@ -1638,6 +1677,9 @@ public sealed partial class PlayerJoinResponse : pb::IMessageField number for the "Z" field. public const int ZFieldNumber = 13; private float z_; + /// + /// 鍧愭爣z + /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public float Z { @@ -1650,6 +1692,9 @@ public sealed partial class PlayerJoinResponse : pb::IMessageField number for the "OverseeCond" field. public const int OverseeCondFieldNumber = 14; private string overseeCond_ = ""; + /// + /// 鍒嗙鍖哄煙Id + /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string OverseeCond { @@ -1662,6 +1707,9 @@ public sealed partial class PlayerJoinResponse : pb::IMessageField number for the "SendFrameCount" field. public const int SendFrameCountFieldNumber = 15; private int sendFrameCount_; + /// + /// 鐜╁鍙戦佺殑甯ф暟 + /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int SendFrameCount { @@ -1674,6 +1722,9 @@ public sealed partial class PlayerJoinResponse : pb::IMessageField number for the "MoveSpeedFirst" field. public const int MoveSpeedFirstFieldNumber = 16; private int moveSpeedFirst_; + /// + /// 绉诲姩閫熷害1 + /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int MoveSpeedFirst { @@ -1686,6 +1737,9 @@ public sealed partial class PlayerJoinResponse : pb::IMessageField number for the "MoveSpeedSecond" field. public const int MoveSpeedSecondFieldNumber = 17; private int moveSpeedSecond_; + /// + /// 绉诲姩閫熷害2 + /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int MoveSpeedSecond { @@ -1698,6 +1752,9 @@ public sealed partial class PlayerJoinResponse : pb::IMessageField number for the "MoveSpeedThird" field. public const int MoveSpeedThirdFieldNumber = 18; private int moveSpeedThird_; + /// + /// 绉诲姩閫熷害3 + /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int MoveSpeedThird { @@ -1710,6 +1767,9 @@ public sealed partial class PlayerJoinResponse : pb::IMessageField number for the "BearLoad" field. public const int BearLoadFieldNumber = 19; private int bearLoad_; + /// + /// 璐熼噸 + /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int BearLoad { @@ -1722,6 +1782,9 @@ public sealed partial class PlayerJoinResponse : pb::IMessageField number for the "Protection" field. public const int ProtectionFieldNumber = 20; private int protection_; + /// + /// 闃叉姢鍊 + /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int Protection { @@ -1734,6 +1797,9 @@ public sealed partial class PlayerJoinResponse : pb::IMessageField number for the "Health" field. public const int HealthFieldNumber = 21; private int health_; + /// + /// 鍋ュ悍鍊 100 + /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int Health { @@ -1746,6 +1812,9 @@ public sealed partial class PlayerJoinResponse : pb::IMessageField number for the "RoleStatus" field. public const int RoleStatusFieldNumber = 22; private int roleStatus_; + /// + /// 瑙掕壊鐘舵 0姝e父 1琛屽姩鍙楅檺 2璐熶激 3鏄忚糠 4鎵嬪彈浼 + /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int RoleStatus { @@ -1758,6 +1827,9 @@ public sealed partial class PlayerJoinResponse : pb::IMessageField number for the "UserId" field. public const int UserIdFieldNumber = 23; private long userId_; + /// + /// 鐢ㄦ埛id + /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public long UserId { diff --git a/xiaofang/Assets/comm/Proto/Join.cs b/xiaofang/Assets/comm/Proto/Join.cs index 33bae7dc..a72b8e1a 100644 --- a/xiaofang/Assets/comm/Proto/Join.cs +++ b/xiaofang/Assets/comm/Proto/Join.cs @@ -22,16 +22,38 @@ public static partial class JoinReflection { static JoinReflection() { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( - "Cgpqb2luLnByb3RvIogBChBVc2VySm9pblJlc3BvbnNlEg4KBnVzZXJJZBgB", + "Cgpqb2luLnByb3RvIp8CChBVc2VySm9pblJlc3BvbnNlEg4KBnVzZXJJZBgB", "IAEoAxIQCghuaWNrTmFtZRgCIAEoCRIQCghyb2xlTmFtZRgDIAEoCRIOCgZy", "b29tSWQYBCABKAkSDgoGb25saW5lGAUgASgIEhMKC21lc3NhZ2VUeXBlGAYg", - "ASgFEgsKA2NtZBgHIAEoCSI3ChBSb29tVXNlclJlc3BvbnNlEiMKCHVzZXJM", - "aXN0GAEgAygLMhEuVXNlckpvaW5SZXNwb25zZUIHWgUuLztwYmIGcHJvdG8z")); + "ASgFEgsKA2NtZBgHIAEoCRIYChBpbmNpZGVudFBvc2l0aW9uGAggASgJEhIK", + "CmZpcmVSYWRpdXMYCSABKAISEQoJZmlyZVZhbHVlGAogASgFEicKDHRhc2tS", + "ZXNwb25zZRgLIAEoCzIRLlRhc2tJbmZvUmVzcG9uc2USKwoOb2JqZWN0UmVz", + "cG9uc2UYDCABKAsyEy5PYmplY3RJbmZvUmVzcG9uc2UiNwoQUm9vbVVzZXJS", + "ZXNwb25zZRIjCgh1c2VyTGlzdBgBIAMoCzIRLlVzZXJKb2luUmVzcG9uc2Ui", + "ogIKEFRhc2tJbmZvUmVzcG9uc2USDgoGVGFza0lkGAEgASgJEg4KBlN0YXR1", + "cxgCIAEoCRIOCgZSb29tSWQYAyABKAkSCQoBWBgEIAEoAhIJCgFZGAUgASgC", + "EgkKAVoYBiABKAISDAoEVHlwZRgHIAEoCRIRCglUaW1lTGltaXQYCCABKAMS", + "DAoERGVzYxgJIAEoCRIPCgdUcmlnZ2VyGAogASgJEhEKCU5leHRUYXNrcxgL", + "IAEoCRISCgpUYXJnZXRUeXBlGAwgASgJEg4KBlJld2FyZBgNIAEoCRIMCgRO", + "b3RlGA4gASgJEhIKCkNyZWF0ZVRpbWUYDyABKAkSEgoKVXBkYXRlVGltZRgQ", + "IAEoCRIQCghUb1VzZXJJZBgRIAEoCSKvAwoST2JqZWN0SW5mb1Jlc3BvbnNl", + "Eg4KBlJvb21JZBgBIAEoCRIKCgJJZBgCIAEoCRIQCghPYmplY3RJZBgDIAEo", + "CRIMCgROb3RlGAQgASgJEgwKBFR5cGUYBSABKAkSDAoETmFtZRgGIAEoCRIW", + "Cg5OYW1lU2hvd09mZnNldBgHIAEoAxISCgpTaG93UmFkaXVzGAggASgDEgwK", + "BEljb24YCSABKAkSDAoEUm9sZRgKIAEoCRISCgpJdGVtRGVwZW5kGAsgASgJ", + "EhAKCFRha2VUaW1lGAwgASgDEhMKC05lZWRQbGF5ZXJzGA0gASgJEhIKClRh", + "c2tTdGF0dXMYDiABKAkSEgoKU2VsZWN0TGlzdBgPIAEoCRINCgVPbk9mZhgQ", + "IAEoAxIOCgZTdGF0dXMYESABKAkSEQoJUmVzQ2hhbmdlGBIgASgJEhcKD1Bh", + "cmFsbGVsQ29udHJvbBgTIAEoAxISCgpFeHRyYVZhbHVlGBQgASgJEg8KB1Vz", + "ZXJJZHMYFSABKAkSEgoKQ3JlYXRlVGltZRgWIAEoCRISCgpVcGRhdGVUaW1l", + "GBcgASgJQgdaBS4vO3BiYgZwcm90bzM=")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { }, new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::UserJoinResponse), global::UserJoinResponse.Parser, new[]{ "UserId", "NickName", "RoleName", "RoomId", "Online", "MessageType", "Cmd" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::RoomUserResponse), global::RoomUserResponse.Parser, new[]{ "UserList" }, null, null, null, null) + new pbr::GeneratedClrTypeInfo(typeof(global::UserJoinResponse), global::UserJoinResponse.Parser, new[]{ "UserId", "NickName", "RoleName", "RoomId", "Online", "MessageType", "Cmd", "IncidentPosition", "FireRadius", "FireValue", "TaskResponse", "ObjectResponse" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::RoomUserResponse), global::RoomUserResponse.Parser, new[]{ "UserList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::TaskInfoResponse), global::TaskInfoResponse.Parser, new[]{ "TaskId", "Status", "RoomId", "X", "Y", "Z", "Type", "TimeLimit", "Desc", "Trigger", "NextTasks", "TargetType", "Reward", "Note", "CreateTime", "UpdateTime", "ToUserId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::ObjectInfoResponse), global::ObjectInfoResponse.Parser, new[]{ "RoomId", "Id", "ObjectId", "Note", "Type", "Name", "NameShowOffset", "ShowRadius", "Icon", "Role", "ItemDepend", "TakeTime", "NeedPlayers", "TaskStatus", "SelectList", "OnOff", "Status", "ResChange", "ParallelControl", "ExtraValue", "UserIds", "CreateTime", "UpdateTime" }, null, null, null, null) })); } #endregion @@ -80,6 +102,11 @@ public sealed partial class UserJoinResponse : pb::IMessage online_ = other.online_; messageType_ = other.messageType_; cmd_ = other.cmd_; + incidentPosition_ = other.incidentPosition_; + fireRadius_ = other.fireRadius_; + fireValue_ = other.fireValue_; + taskResponse_ = other.taskResponse_ != null ? other.taskResponse_.Clone() : null; + objectResponse_ = other.objectResponse_ != null ? other.objectResponse_.Clone() : null; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } @@ -168,7 +195,7 @@ public sealed partial class UserJoinResponse : pb::IMessage public const int MessageTypeFieldNumber = 6; private int messageType_; /// - ///浜嬩欢鐘舵 1 鐢ㄦ埛涓婄嚎 2鐢ㄦ埛涓嬬嚎 3 鐢ㄦ埛鍔犲叆鎴块棿 + ///浜嬩欢鐘舵 1 鐢ㄦ埛涓婄嚎 2鐢ㄦ埛涓嬬嚎 3 鐢ㄦ埛鍔犲叆鎴块棿 4 浜嬫晠鍙戠敓 5 鐏娍 6 浠诲姟 7 瀵硅薄鎿嶄綔 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -194,6 +221,81 @@ public sealed partial class UserJoinResponse : pb::IMessage } } + /// Field number for the "incidentPosition" field. + public const int IncidentPositionFieldNumber = 8; + private string incidentPosition_ = ""; + /// + ///浜嬩欢鍙戠敓浣嶇疆 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string IncidentPosition { + get { return incidentPosition_; } + set { + incidentPosition_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "fireRadius" field. + public const int FireRadiusFieldNumber = 9; + private float fireRadius_; + /// + ///鐏娍鍗婂緞 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float FireRadius { + get { return fireRadius_; } + set { + fireRadius_ = value; + } + } + + /// Field number for the "fireValue" field. + public const int FireValueFieldNumber = 10; + private int fireValue_; + /// + ///鐏娍鍊 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int FireValue { + get { return fireValue_; } + set { + fireValue_ = value; + } + } + + /// Field number for the "taskResponse" field. + public const int TaskResponseFieldNumber = 11; + private global::TaskInfoResponse taskResponse_; + /// + ///浠诲姟淇℃伅 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::TaskInfoResponse TaskResponse { + get { return taskResponse_; } + set { + taskResponse_ = value; + } + } + + /// Field number for the "objectResponse" field. + public const int ObjectResponseFieldNumber = 12; + private global::ObjectInfoResponse objectResponse_; + /// + ///瀵硅薄淇℃伅 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::ObjectInfoResponse ObjectResponse { + get { return objectResponse_; } + set { + objectResponse_ = value; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { @@ -216,6 +318,11 @@ public sealed partial class UserJoinResponse : pb::IMessage if (Online != other.Online) return false; if (MessageType != other.MessageType) return false; if (Cmd != other.Cmd) return false; + if (IncidentPosition != other.IncidentPosition) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(FireRadius, other.FireRadius)) return false; + if (FireValue != other.FireValue) return false; + if (!object.Equals(TaskResponse, other.TaskResponse)) return false; + if (!object.Equals(ObjectResponse, other.ObjectResponse)) return false; return Equals(_unknownFields, other._unknownFields); } @@ -230,6 +337,11 @@ public sealed partial class UserJoinResponse : pb::IMessage if (Online != false) hash ^= Online.GetHashCode(); if (MessageType != 0) hash ^= MessageType.GetHashCode(); if (Cmd.Length != 0) hash ^= Cmd.GetHashCode(); + if (IncidentPosition.Length != 0) hash ^= IncidentPosition.GetHashCode(); + if (FireRadius != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(FireRadius); + if (FireValue != 0) hash ^= FireValue.GetHashCode(); + if (taskResponse_ != null) hash ^= TaskResponse.GetHashCode(); + if (objectResponse_ != null) hash ^= ObjectResponse.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -276,6 +388,26 @@ public sealed partial class UserJoinResponse : pb::IMessage output.WriteRawTag(58); output.WriteString(Cmd); } + if (IncidentPosition.Length != 0) { + output.WriteRawTag(66); + output.WriteString(IncidentPosition); + } + if (FireRadius != 0F) { + output.WriteRawTag(77); + output.WriteFloat(FireRadius); + } + if (FireValue != 0) { + output.WriteRawTag(80); + output.WriteInt32(FireValue); + } + if (taskResponse_ != null) { + output.WriteRawTag(90); + output.WriteMessage(TaskResponse); + } + if (objectResponse_ != null) { + output.WriteRawTag(98); + output.WriteMessage(ObjectResponse); + } if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -314,6 +446,26 @@ public sealed partial class UserJoinResponse : pb::IMessage output.WriteRawTag(58); output.WriteString(Cmd); } + if (IncidentPosition.Length != 0) { + output.WriteRawTag(66); + output.WriteString(IncidentPosition); + } + if (FireRadius != 0F) { + output.WriteRawTag(77); + output.WriteFloat(FireRadius); + } + if (FireValue != 0) { + output.WriteRawTag(80); + output.WriteInt32(FireValue); + } + if (taskResponse_ != null) { + output.WriteRawTag(90); + output.WriteMessage(TaskResponse); + } + if (objectResponse_ != null) { + output.WriteRawTag(98); + output.WriteMessage(ObjectResponse); + } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -345,6 +497,21 @@ public sealed partial class UserJoinResponse : pb::IMessage if (Cmd.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Cmd); } + if (IncidentPosition.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(IncidentPosition); + } + if (FireRadius != 0F) { + size += 1 + 4; + } + if (FireValue != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(FireValue); + } + if (taskResponse_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(TaskResponse); + } + if (objectResponse_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ObjectResponse); + } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -378,6 +545,27 @@ public sealed partial class UserJoinResponse : pb::IMessage if (other.Cmd.Length != 0) { Cmd = other.Cmd; } + if (other.IncidentPosition.Length != 0) { + IncidentPosition = other.IncidentPosition; + } + if (other.FireRadius != 0F) { + FireRadius = other.FireRadius; + } + if (other.FireValue != 0) { + FireValue = other.FireValue; + } + if (other.taskResponse_ != null) { + if (taskResponse_ == null) { + TaskResponse = new global::TaskInfoResponse(); + } + TaskResponse.MergeFrom(other.TaskResponse); + } + if (other.objectResponse_ != null) { + if (objectResponse_ == null) { + ObjectResponse = new global::ObjectInfoResponse(); + } + ObjectResponse.MergeFrom(other.ObjectResponse); + } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -425,6 +613,32 @@ public sealed partial class UserJoinResponse : pb::IMessage Cmd = input.ReadString(); break; } + case 66: { + IncidentPosition = input.ReadString(); + break; + } + case 77: { + FireRadius = input.ReadFloat(); + break; + } + case 80: { + FireValue = input.ReadInt32(); + break; + } + case 90: { + if (taskResponse_ == null) { + TaskResponse = new global::TaskInfoResponse(); + } + input.ReadMessage(TaskResponse); + break; + } + case 98: { + if (objectResponse_ == null) { + ObjectResponse = new global::ObjectInfoResponse(); + } + input.ReadMessage(ObjectResponse); + break; + } } } #endif @@ -472,6 +686,32 @@ public sealed partial class UserJoinResponse : pb::IMessage Cmd = input.ReadString(); break; } + case 66: { + IncidentPosition = input.ReadString(); + break; + } + case 77: { + FireRadius = input.ReadFloat(); + break; + } + case 80: { + FireValue = input.ReadInt32(); + break; + } + case 90: { + if (taskResponse_ == null) { + TaskResponse = new global::TaskInfoResponse(); + } + input.ReadMessage(TaskResponse); + break; + } + case 98: { + if (objectResponse_ == null) { + ObjectResponse = new global::ObjectInfoResponse(); + } + input.ReadMessage(ObjectResponse); + break; + } } } } @@ -669,6 +909,1928 @@ public sealed partial class RoomUserResponse : pb::IMessage } +[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] +public sealed partial class TaskInfoResponse : pb::IMessage +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage +#endif +{ + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TaskInfoResponse()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::JoinReflection.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 TaskInfoResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TaskInfoResponse(TaskInfoResponse other) : this() { + taskId_ = other.taskId_; + status_ = other.status_; + roomId_ = other.roomId_; + x_ = other.x_; + y_ = other.y_; + z_ = other.z_; + type_ = other.type_; + timeLimit_ = other.timeLimit_; + desc_ = other.desc_; + trigger_ = other.trigger_; + nextTasks_ = other.nextTasks_; + targetType_ = other.targetType_; + reward_ = other.reward_; + note_ = other.note_; + createTime_ = other.createTime_; + updateTime_ = other.updateTime_; + toUserId_ = other.toUserId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TaskInfoResponse Clone() { + return new TaskInfoResponse(this); + } + + /// Field number for the "TaskId" field. + public const int TaskIdFieldNumber = 1; + private string taskId_ = ""; + /// + /// 浠诲姟id + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string TaskId { + get { return taskId_; } + set { + taskId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "Status" field. + public const int StatusFieldNumber = 2; + private string status_ = ""; + /// + /// 鐘舵 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Status { + get { return status_; } + set { + status_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "RoomId" field. + public const int RoomIdFieldNumber = 3; + private string roomId_ = ""; + /// + /// 鎴块棿id + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string RoomId { + get { return roomId_; } + set { + roomId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "X" field. + public const int XFieldNumber = 4; + private float x_; + /// + /// x鍧愭爣 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float X { + get { return x_; } + set { + x_ = value; + } + } + + /// Field number for the "Y" field. + public const int YFieldNumber = 5; + private float y_; + /// + /// y鍧愭爣 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float Y { + get { return y_; } + set { + y_ = value; + } + } + + /// Field number for the "Z" field. + public const int ZFieldNumber = 6; + private float z_; + /// + /// z鍧愭爣 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float Z { + get { return z_; } + set { + z_ = value; + } + } + + /// Field number for the "Type" field. + public const int TypeFieldNumber = 7; + private string type_ = ""; + /// + /// 绫诲瀷 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Type { + get { return type_; } + set { + type_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "TimeLimit" field. + public const int TimeLimitFieldNumber = 8; + private long timeLimit_; + /// + /// 鏃堕棿闄愬埗 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long TimeLimit { + get { return timeLimit_; } + set { + timeLimit_ = value; + } + } + + /// Field number for the "Desc" field. + public const int DescFieldNumber = 9; + private string desc_ = ""; + /// + /// 鎻忚堪 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Desc { + get { return desc_; } + set { + desc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "Trigger" field. + public const int TriggerFieldNumber = 10; + private string trigger_ = ""; + /// + /// 瑙﹀彂鏉′欢 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Trigger { + get { return trigger_; } + set { + trigger_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "NextTasks" field. + public const int NextTasksFieldNumber = 11; + private string nextTasks_ = ""; + /// + /// 涓嬩竴姝ヤ换鍔 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NextTasks { + get { return nextTasks_; } + set { + nextTasks_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "TargetType" field. + public const int TargetTypeFieldNumber = 12; + private string targetType_ = ""; + /// + /// 鐩爣绫诲瀷 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string TargetType { + get { return targetType_; } + set { + targetType_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "Reward" field. + public const int RewardFieldNumber = 13; + private string reward_ = ""; + /// + /// 濂栧姳 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Reward { + get { return reward_; } + set { + reward_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "Note" field. + public const int NoteFieldNumber = 14; + private string note_ = ""; + /// + /// 澶囨敞 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Note { + get { return note_; } + set { + note_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "CreateTime" field. + public const int CreateTimeFieldNumber = 15; + private string createTime_ = ""; + /// + /// 鍒涘缓鏃堕棿 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string CreateTime { + get { return createTime_; } + set { + createTime_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "UpdateTime" field. + public const int UpdateTimeFieldNumber = 16; + private string updateTime_ = ""; + /// + /// 鏇存柊鏃堕棿 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string UpdateTime { + get { return updateTime_; } + set { + updateTime_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "ToUserId" field. + public const int ToUserIdFieldNumber = 17; + private string toUserId_ = ""; + /// + /// 鐩爣鐢ㄦ埛id + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ToUserId { + get { return toUserId_; } + set { + toUserId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TaskInfoResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TaskInfoResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (TaskId != other.TaskId) return false; + if (Status != other.Status) return false; + if (RoomId != other.RoomId) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(X, other.X)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Y, other.Y)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Z, other.Z)) return false; + if (Type != other.Type) return false; + if (TimeLimit != other.TimeLimit) return false; + if (Desc != other.Desc) return false; + if (Trigger != other.Trigger) return false; + if (NextTasks != other.NextTasks) return false; + if (TargetType != other.TargetType) return false; + if (Reward != other.Reward) return false; + if (Note != other.Note) return false; + if (CreateTime != other.CreateTime) return false; + if (UpdateTime != other.UpdateTime) return false; + if (ToUserId != other.ToUserId) 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 (TaskId.Length != 0) hash ^= TaskId.GetHashCode(); + if (Status.Length != 0) hash ^= Status.GetHashCode(); + if (RoomId.Length != 0) hash ^= RoomId.GetHashCode(); + if (X != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(X); + if (Y != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Y); + if (Z != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Z); + if (Type.Length != 0) hash ^= Type.GetHashCode(); + if (TimeLimit != 0L) hash ^= TimeLimit.GetHashCode(); + if (Desc.Length != 0) hash ^= Desc.GetHashCode(); + if (Trigger.Length != 0) hash ^= Trigger.GetHashCode(); + if (NextTasks.Length != 0) hash ^= NextTasks.GetHashCode(); + if (TargetType.Length != 0) hash ^= TargetType.GetHashCode(); + if (Reward.Length != 0) hash ^= Reward.GetHashCode(); + if (Note.Length != 0) hash ^= Note.GetHashCode(); + if (CreateTime.Length != 0) hash ^= CreateTime.GetHashCode(); + if (UpdateTime.Length != 0) hash ^= UpdateTime.GetHashCode(); + if (ToUserId.Length != 0) hash ^= ToUserId.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 (TaskId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(TaskId); + } + if (Status.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Status); + } + if (RoomId.Length != 0) { + output.WriteRawTag(26); + output.WriteString(RoomId); + } + if (X != 0F) { + output.WriteRawTag(37); + output.WriteFloat(X); + } + if (Y != 0F) { + output.WriteRawTag(45); + output.WriteFloat(Y); + } + if (Z != 0F) { + output.WriteRawTag(53); + output.WriteFloat(Z); + } + if (Type.Length != 0) { + output.WriteRawTag(58); + output.WriteString(Type); + } + if (TimeLimit != 0L) { + output.WriteRawTag(64); + output.WriteInt64(TimeLimit); + } + if (Desc.Length != 0) { + output.WriteRawTag(74); + output.WriteString(Desc); + } + if (Trigger.Length != 0) { + output.WriteRawTag(82); + output.WriteString(Trigger); + } + if (NextTasks.Length != 0) { + output.WriteRawTag(90); + output.WriteString(NextTasks); + } + if (TargetType.Length != 0) { + output.WriteRawTag(98); + output.WriteString(TargetType); + } + if (Reward.Length != 0) { + output.WriteRawTag(106); + output.WriteString(Reward); + } + if (Note.Length != 0) { + output.WriteRawTag(114); + output.WriteString(Note); + } + if (CreateTime.Length != 0) { + output.WriteRawTag(122); + output.WriteString(CreateTime); + } + if (UpdateTime.Length != 0) { + output.WriteRawTag(130, 1); + output.WriteString(UpdateTime); + } + if (ToUserId.Length != 0) { + output.WriteRawTag(138, 1); + output.WriteString(ToUserId); + } + 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 (TaskId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(TaskId); + } + if (Status.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Status); + } + if (RoomId.Length != 0) { + output.WriteRawTag(26); + output.WriteString(RoomId); + } + if (X != 0F) { + output.WriteRawTag(37); + output.WriteFloat(X); + } + if (Y != 0F) { + output.WriteRawTag(45); + output.WriteFloat(Y); + } + if (Z != 0F) { + output.WriteRawTag(53); + output.WriteFloat(Z); + } + if (Type.Length != 0) { + output.WriteRawTag(58); + output.WriteString(Type); + } + if (TimeLimit != 0L) { + output.WriteRawTag(64); + output.WriteInt64(TimeLimit); + } + if (Desc.Length != 0) { + output.WriteRawTag(74); + output.WriteString(Desc); + } + if (Trigger.Length != 0) { + output.WriteRawTag(82); + output.WriteString(Trigger); + } + if (NextTasks.Length != 0) { + output.WriteRawTag(90); + output.WriteString(NextTasks); + } + if (TargetType.Length != 0) { + output.WriteRawTag(98); + output.WriteString(TargetType); + } + if (Reward.Length != 0) { + output.WriteRawTag(106); + output.WriteString(Reward); + } + if (Note.Length != 0) { + output.WriteRawTag(114); + output.WriteString(Note); + } + if (CreateTime.Length != 0) { + output.WriteRawTag(122); + output.WriteString(CreateTime); + } + if (UpdateTime.Length != 0) { + output.WriteRawTag(130, 1); + output.WriteString(UpdateTime); + } + if (ToUserId.Length != 0) { + output.WriteRawTag(138, 1); + output.WriteString(ToUserId); + } + 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 (TaskId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TaskId); + } + if (Status.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Status); + } + if (RoomId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(RoomId); + } + if (X != 0F) { + size += 1 + 4; + } + if (Y != 0F) { + size += 1 + 4; + } + if (Z != 0F) { + size += 1 + 4; + } + if (Type.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Type); + } + if (TimeLimit != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(TimeLimit); + } + if (Desc.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc); + } + if (Trigger.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Trigger); + } + if (NextTasks.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NextTasks); + } + if (TargetType.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TargetType); + } + if (Reward.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Reward); + } + if (Note.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Note); + } + if (CreateTime.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(CreateTime); + } + if (UpdateTime.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(UpdateTime); + } + if (ToUserId.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(ToUserId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TaskInfoResponse other) { + if (other == null) { + return; + } + if (other.TaskId.Length != 0) { + TaskId = other.TaskId; + } + if (other.Status.Length != 0) { + Status = other.Status; + } + if (other.RoomId.Length != 0) { + RoomId = other.RoomId; + } + if (other.X != 0F) { + X = other.X; + } + if (other.Y != 0F) { + Y = other.Y; + } + if (other.Z != 0F) { + Z = other.Z; + } + if (other.Type.Length != 0) { + Type = other.Type; + } + if (other.TimeLimit != 0L) { + TimeLimit = other.TimeLimit; + } + if (other.Desc.Length != 0) { + Desc = other.Desc; + } + if (other.Trigger.Length != 0) { + Trigger = other.Trigger; + } + if (other.NextTasks.Length != 0) { + NextTasks = other.NextTasks; + } + if (other.TargetType.Length != 0) { + TargetType = other.TargetType; + } + if (other.Reward.Length != 0) { + Reward = other.Reward; + } + if (other.Note.Length != 0) { + Note = other.Note; + } + if (other.CreateTime.Length != 0) { + CreateTime = other.CreateTime; + } + if (other.UpdateTime.Length != 0) { + UpdateTime = other.UpdateTime; + } + if (other.ToUserId.Length != 0) { + ToUserId = other.ToUserId; + } + _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 10: { + TaskId = input.ReadString(); + break; + } + case 18: { + Status = input.ReadString(); + break; + } + case 26: { + RoomId = input.ReadString(); + break; + } + case 37: { + X = input.ReadFloat(); + break; + } + case 45: { + Y = input.ReadFloat(); + break; + } + case 53: { + Z = input.ReadFloat(); + break; + } + case 58: { + Type = input.ReadString(); + break; + } + case 64: { + TimeLimit = input.ReadInt64(); + break; + } + case 74: { + Desc = input.ReadString(); + break; + } + case 82: { + Trigger = input.ReadString(); + break; + } + case 90: { + NextTasks = input.ReadString(); + break; + } + case 98: { + TargetType = input.ReadString(); + break; + } + case 106: { + Reward = input.ReadString(); + break; + } + case 114: { + Note = input.ReadString(); + break; + } + case 122: { + CreateTime = input.ReadString(); + break; + } + case 130: { + UpdateTime = input.ReadString(); + break; + } + case 138: { + ToUserId = input.ReadString(); + 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 10: { + TaskId = input.ReadString(); + break; + } + case 18: { + Status = input.ReadString(); + break; + } + case 26: { + RoomId = input.ReadString(); + break; + } + case 37: { + X = input.ReadFloat(); + break; + } + case 45: { + Y = input.ReadFloat(); + break; + } + case 53: { + Z = input.ReadFloat(); + break; + } + case 58: { + Type = input.ReadString(); + break; + } + case 64: { + TimeLimit = input.ReadInt64(); + break; + } + case 74: { + Desc = input.ReadString(); + break; + } + case 82: { + Trigger = input.ReadString(); + break; + } + case 90: { + NextTasks = input.ReadString(); + break; + } + case 98: { + TargetType = input.ReadString(); + break; + } + case 106: { + Reward = input.ReadString(); + break; + } + case 114: { + Note = input.ReadString(); + break; + } + case 122: { + CreateTime = input.ReadString(); + break; + } + case 130: { + UpdateTime = input.ReadString(); + break; + } + case 138: { + ToUserId = input.ReadString(); + break; + } + } + } + } + #endif + +} + +[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] +public sealed partial class ObjectInfoResponse : pb::IMessage +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage +#endif +{ + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ObjectInfoResponse()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::JoinReflection.Descriptor.MessageTypes[3]; } + } + + [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 ObjectInfoResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ObjectInfoResponse(ObjectInfoResponse other) : this() { + roomId_ = other.roomId_; + id_ = other.id_; + objectId_ = other.objectId_; + note_ = other.note_; + type_ = other.type_; + name_ = other.name_; + nameShowOffset_ = other.nameShowOffset_; + showRadius_ = other.showRadius_; + icon_ = other.icon_; + role_ = other.role_; + itemDepend_ = other.itemDepend_; + takeTime_ = other.takeTime_; + needPlayers_ = other.needPlayers_; + taskStatus_ = other.taskStatus_; + selectList_ = other.selectList_; + onOff_ = other.onOff_; + status_ = other.status_; + resChange_ = other.resChange_; + parallelControl_ = other.parallelControl_; + extraValue_ = other.extraValue_; + userIds_ = other.userIds_; + createTime_ = other.createTime_; + updateTime_ = other.updateTime_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ObjectInfoResponse Clone() { + return new ObjectInfoResponse(this); + } + + /// Field number for the "RoomId" field. + public const int RoomIdFieldNumber = 1; + private string roomId_ = ""; + /// + /// 瀵硅薄id + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string RoomId { + get { return roomId_; } + set { + roomId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "Id" field. + public const int IdFieldNumber = 2; + private string id_ = ""; + /// + /// ID + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Id { + get { return id_; } + set { + id_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "ObjectId" field. + public const int ObjectIdFieldNumber = 3; + private string objectId_ = ""; + /// + /// 瀵硅薄ID + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ObjectId { + get { return objectId_; } + set { + objectId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "Note" field. + public const int NoteFieldNumber = 4; + private string note_ = ""; + /// + /// 鐘舵 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Note { + get { return note_; } + set { + note_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "Type" field. + public const int TypeFieldNumber = 5; + private string type_ = ""; + /// + /// 瀵硅薄绫诲瀷 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Type { + get { return type_; } + set { + type_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "Name" field. + public const int NameFieldNumber = 6; + private string name_ = ""; + /// + /// 瀵硅薄鏂囨湰Id + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "NameShowOffset" field. + public const int NameShowOffsetFieldNumber = 7; + private long nameShowOffset_; + /// + /// 瀵硅薄鏂囨湰鏄剧ず鍋忕Щ閲 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long NameShowOffset { + get { return nameShowOffset_; } + set { + nameShowOffset_ = value; + } + } + + /// Field number for the "ShowRadius" field. + public const int ShowRadiusFieldNumber = 8; + private long showRadius_; + /// + /// 瀵硅薄鏄剧ず鍗婂緞 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long ShowRadius { + get { return showRadius_; } + set { + showRadius_ = value; + } + } + + /// Field number for the "Icon" field. + public const int IconFieldNumber = 9; + private string icon_ = ""; + /// + /// 瀵硅薄鍥炬爣 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Icon { + get { return icon_; } + set { + icon_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "Role" field. + public const int RoleFieldNumber = 10; + private string role_ = ""; + /// + /// 瀵硅薄瑙掕壊 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Role { + get { return role_; } + set { + role_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "ItemDepend" field. + public const int ItemDependFieldNumber = 11; + private string itemDepend_ = ""; + /// + /// 渚濊禆鐗╁搧 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ItemDepend { + get { return itemDepend_; } + set { + itemDepend_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "TakeTime" field. + public const int TakeTimeFieldNumber = 12; + private long takeTime_; + /// + /// 浜や簰銆佽鏉℃椂闂 -1 绔嬪嵆鎵ц + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long TakeTime { + get { return takeTime_; } + set { + takeTime_ = value; + } + } + + /// Field number for the "NeedPlayers" field. + public const int NeedPlayersFieldNumber = 13; + private string needPlayers_ = ""; + /// + /// 鍒ゅ畾鑼冨洿锛岀帺瀹舵暟閲忥紝鏄惁鍙搷浣滐紙褰撲汉鏁颁笉婊¤冻鏃讹級 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NeedPlayers { + get { return needPlayers_; } + set { + needPlayers_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "TaskStatus" field. + public const int TaskStatusFieldNumber = 14; + private string taskStatus_ = ""; + /// + /// 瀵瑰簲浜嬩欢ID + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string TaskStatus { + get { return taskStatus_; } + set { + taskStatus_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "SelectList" field. + public const int SelectListFieldNumber = 15; + private string selectList_ = ""; + /// + /// 閫夋嫨鍒楄〃 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string SelectList { + get { return selectList_; } + set { + selectList_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "OnOff" field. + public const int OnOffFieldNumber = 16; + private long onOff_; + /// + /// 鎿嶄綔鐘舵 0涓嶅彲鎿嶄綔 1 鍙搷浣 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long OnOff { + get { return onOff_; } + set { + onOff_ = value; + } + } + + /// Field number for the "Status" field. + public const int StatusFieldNumber = 17; + private string status_ = ""; + /// + /// 鐘舵 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Status { + get { return status_; } + set { + status_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "ResChange" field. + public const int ResChangeFieldNumber = 18; + private string resChange_ = ""; + /// + /// 璧勬簮鍙樺寲 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ResChange { + get { return resChange_; } + set { + resChange_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "ParallelControl" field. + public const int ParallelControlFieldNumber = 19; + private long parallelControl_; + /// + /// 鏄惁鏀寔澶氫汉鎿嶄綔 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long ParallelControl { + get { return parallelControl_; } + set { + parallelControl_ = value; + } + } + + /// Field number for the "ExtraValue" field. + public const int ExtraValueFieldNumber = 20; + private string extraValue_ = ""; + /// + /// 棰濆鍙傛暟 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ExtraValue { + get { return extraValue_; } + set { + extraValue_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "UserIds" field. + public const int UserIdsFieldNumber = 21; + private string userIds_ = ""; + /// + /// 鐜╁id鍒楄〃 閫楀彿鍒嗛殧 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string UserIds { + get { return userIds_; } + set { + userIds_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "CreateTime" field. + public const int CreateTimeFieldNumber = 22; + private string createTime_ = ""; + /// + /// 鍒涘缓鏃堕棿 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string CreateTime { + get { return createTime_; } + set { + createTime_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "UpdateTime" field. + public const int UpdateTimeFieldNumber = 23; + private string updateTime_ = ""; + /// + /// 鏇存柊鏃堕棿 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string UpdateTime { + get { return updateTime_; } + set { + updateTime_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ObjectInfoResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ObjectInfoResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (RoomId != other.RoomId) return false; + if (Id != other.Id) return false; + if (ObjectId != other.ObjectId) return false; + if (Note != other.Note) return false; + if (Type != other.Type) return false; + if (Name != other.Name) return false; + if (NameShowOffset != other.NameShowOffset) return false; + if (ShowRadius != other.ShowRadius) return false; + if (Icon != other.Icon) return false; + if (Role != other.Role) return false; + if (ItemDepend != other.ItemDepend) return false; + if (TakeTime != other.TakeTime) return false; + if (NeedPlayers != other.NeedPlayers) return false; + if (TaskStatus != other.TaskStatus) return false; + if (SelectList != other.SelectList) return false; + if (OnOff != other.OnOff) return false; + if (Status != other.Status) return false; + if (ResChange != other.ResChange) return false; + if (ParallelControl != other.ParallelControl) return false; + if (ExtraValue != other.ExtraValue) return false; + if (UserIds != other.UserIds) return false; + if (CreateTime != other.CreateTime) return false; + if (UpdateTime != other.UpdateTime) 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 (RoomId.Length != 0) hash ^= RoomId.GetHashCode(); + if (Id.Length != 0) hash ^= Id.GetHashCode(); + if (ObjectId.Length != 0) hash ^= ObjectId.GetHashCode(); + if (Note.Length != 0) hash ^= Note.GetHashCode(); + if (Type.Length != 0) hash ^= Type.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (NameShowOffset != 0L) hash ^= NameShowOffset.GetHashCode(); + if (ShowRadius != 0L) hash ^= ShowRadius.GetHashCode(); + if (Icon.Length != 0) hash ^= Icon.GetHashCode(); + if (Role.Length != 0) hash ^= Role.GetHashCode(); + if (ItemDepend.Length != 0) hash ^= ItemDepend.GetHashCode(); + if (TakeTime != 0L) hash ^= TakeTime.GetHashCode(); + if (NeedPlayers.Length != 0) hash ^= NeedPlayers.GetHashCode(); + if (TaskStatus.Length != 0) hash ^= TaskStatus.GetHashCode(); + if (SelectList.Length != 0) hash ^= SelectList.GetHashCode(); + if (OnOff != 0L) hash ^= OnOff.GetHashCode(); + if (Status.Length != 0) hash ^= Status.GetHashCode(); + if (ResChange.Length != 0) hash ^= ResChange.GetHashCode(); + if (ParallelControl != 0L) hash ^= ParallelControl.GetHashCode(); + if (ExtraValue.Length != 0) hash ^= ExtraValue.GetHashCode(); + if (UserIds.Length != 0) hash ^= UserIds.GetHashCode(); + if (CreateTime.Length != 0) hash ^= CreateTime.GetHashCode(); + if (UpdateTime.Length != 0) hash ^= UpdateTime.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 (RoomId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(RoomId); + } + if (Id.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Id); + } + if (ObjectId.Length != 0) { + output.WriteRawTag(26); + output.WriteString(ObjectId); + } + if (Note.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Note); + } + if (Type.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Type); + } + if (Name.Length != 0) { + output.WriteRawTag(50); + output.WriteString(Name); + } + if (NameShowOffset != 0L) { + output.WriteRawTag(56); + output.WriteInt64(NameShowOffset); + } + if (ShowRadius != 0L) { + output.WriteRawTag(64); + output.WriteInt64(ShowRadius); + } + if (Icon.Length != 0) { + output.WriteRawTag(74); + output.WriteString(Icon); + } + if (Role.Length != 0) { + output.WriteRawTag(82); + output.WriteString(Role); + } + if (ItemDepend.Length != 0) { + output.WriteRawTag(90); + output.WriteString(ItemDepend); + } + if (TakeTime != 0L) { + output.WriteRawTag(96); + output.WriteInt64(TakeTime); + } + if (NeedPlayers.Length != 0) { + output.WriteRawTag(106); + output.WriteString(NeedPlayers); + } + if (TaskStatus.Length != 0) { + output.WriteRawTag(114); + output.WriteString(TaskStatus); + } + if (SelectList.Length != 0) { + output.WriteRawTag(122); + output.WriteString(SelectList); + } + if (OnOff != 0L) { + output.WriteRawTag(128, 1); + output.WriteInt64(OnOff); + } + if (Status.Length != 0) { + output.WriteRawTag(138, 1); + output.WriteString(Status); + } + if (ResChange.Length != 0) { + output.WriteRawTag(146, 1); + output.WriteString(ResChange); + } + if (ParallelControl != 0L) { + output.WriteRawTag(152, 1); + output.WriteInt64(ParallelControl); + } + if (ExtraValue.Length != 0) { + output.WriteRawTag(162, 1); + output.WriteString(ExtraValue); + } + if (UserIds.Length != 0) { + output.WriteRawTag(170, 1); + output.WriteString(UserIds); + } + if (CreateTime.Length != 0) { + output.WriteRawTag(178, 1); + output.WriteString(CreateTime); + } + if (UpdateTime.Length != 0) { + output.WriteRawTag(186, 1); + output.WriteString(UpdateTime); + } + 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 (RoomId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(RoomId); + } + if (Id.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Id); + } + if (ObjectId.Length != 0) { + output.WriteRawTag(26); + output.WriteString(ObjectId); + } + if (Note.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Note); + } + if (Type.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Type); + } + if (Name.Length != 0) { + output.WriteRawTag(50); + output.WriteString(Name); + } + if (NameShowOffset != 0L) { + output.WriteRawTag(56); + output.WriteInt64(NameShowOffset); + } + if (ShowRadius != 0L) { + output.WriteRawTag(64); + output.WriteInt64(ShowRadius); + } + if (Icon.Length != 0) { + output.WriteRawTag(74); + output.WriteString(Icon); + } + if (Role.Length != 0) { + output.WriteRawTag(82); + output.WriteString(Role); + } + if (ItemDepend.Length != 0) { + output.WriteRawTag(90); + output.WriteString(ItemDepend); + } + if (TakeTime != 0L) { + output.WriteRawTag(96); + output.WriteInt64(TakeTime); + } + if (NeedPlayers.Length != 0) { + output.WriteRawTag(106); + output.WriteString(NeedPlayers); + } + if (TaskStatus.Length != 0) { + output.WriteRawTag(114); + output.WriteString(TaskStatus); + } + if (SelectList.Length != 0) { + output.WriteRawTag(122); + output.WriteString(SelectList); + } + if (OnOff != 0L) { + output.WriteRawTag(128, 1); + output.WriteInt64(OnOff); + } + if (Status.Length != 0) { + output.WriteRawTag(138, 1); + output.WriteString(Status); + } + if (ResChange.Length != 0) { + output.WriteRawTag(146, 1); + output.WriteString(ResChange); + } + if (ParallelControl != 0L) { + output.WriteRawTag(152, 1); + output.WriteInt64(ParallelControl); + } + if (ExtraValue.Length != 0) { + output.WriteRawTag(162, 1); + output.WriteString(ExtraValue); + } + if (UserIds.Length != 0) { + output.WriteRawTag(170, 1); + output.WriteString(UserIds); + } + if (CreateTime.Length != 0) { + output.WriteRawTag(178, 1); + output.WriteString(CreateTime); + } + if (UpdateTime.Length != 0) { + output.WriteRawTag(186, 1); + output.WriteString(UpdateTime); + } + 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 (RoomId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(RoomId); + } + if (Id.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Id); + } + if (ObjectId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ObjectId); + } + if (Note.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Note); + } + if (Type.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Type); + } + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (NameShowOffset != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(NameShowOffset); + } + if (ShowRadius != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(ShowRadius); + } + if (Icon.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Icon); + } + if (Role.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Role); + } + if (ItemDepend.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ItemDepend); + } + if (TakeTime != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(TakeTime); + } + if (NeedPlayers.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NeedPlayers); + } + if (TaskStatus.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TaskStatus); + } + if (SelectList.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(SelectList); + } + if (OnOff != 0L) { + size += 2 + pb::CodedOutputStream.ComputeInt64Size(OnOff); + } + if (Status.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(Status); + } + if (ResChange.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(ResChange); + } + if (ParallelControl != 0L) { + size += 2 + pb::CodedOutputStream.ComputeInt64Size(ParallelControl); + } + if (ExtraValue.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(ExtraValue); + } + if (UserIds.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(UserIds); + } + if (CreateTime.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(CreateTime); + } + if (UpdateTime.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(UpdateTime); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ObjectInfoResponse other) { + if (other == null) { + return; + } + if (other.RoomId.Length != 0) { + RoomId = other.RoomId; + } + if (other.Id.Length != 0) { + Id = other.Id; + } + if (other.ObjectId.Length != 0) { + ObjectId = other.ObjectId; + } + if (other.Note.Length != 0) { + Note = other.Note; + } + if (other.Type.Length != 0) { + Type = other.Type; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.NameShowOffset != 0L) { + NameShowOffset = other.NameShowOffset; + } + if (other.ShowRadius != 0L) { + ShowRadius = other.ShowRadius; + } + if (other.Icon.Length != 0) { + Icon = other.Icon; + } + if (other.Role.Length != 0) { + Role = other.Role; + } + if (other.ItemDepend.Length != 0) { + ItemDepend = other.ItemDepend; + } + if (other.TakeTime != 0L) { + TakeTime = other.TakeTime; + } + if (other.NeedPlayers.Length != 0) { + NeedPlayers = other.NeedPlayers; + } + if (other.TaskStatus.Length != 0) { + TaskStatus = other.TaskStatus; + } + if (other.SelectList.Length != 0) { + SelectList = other.SelectList; + } + if (other.OnOff != 0L) { + OnOff = other.OnOff; + } + if (other.Status.Length != 0) { + Status = other.Status; + } + if (other.ResChange.Length != 0) { + ResChange = other.ResChange; + } + if (other.ParallelControl != 0L) { + ParallelControl = other.ParallelControl; + } + if (other.ExtraValue.Length != 0) { + ExtraValue = other.ExtraValue; + } + if (other.UserIds.Length != 0) { + UserIds = other.UserIds; + } + if (other.CreateTime.Length != 0) { + CreateTime = other.CreateTime; + } + if (other.UpdateTime.Length != 0) { + UpdateTime = other.UpdateTime; + } + _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 10: { + RoomId = input.ReadString(); + break; + } + case 18: { + Id = input.ReadString(); + break; + } + case 26: { + ObjectId = input.ReadString(); + break; + } + case 34: { + Note = input.ReadString(); + break; + } + case 42: { + Type = input.ReadString(); + break; + } + case 50: { + Name = input.ReadString(); + break; + } + case 56: { + NameShowOffset = input.ReadInt64(); + break; + } + case 64: { + ShowRadius = input.ReadInt64(); + break; + } + case 74: { + Icon = input.ReadString(); + break; + } + case 82: { + Role = input.ReadString(); + break; + } + case 90: { + ItemDepend = input.ReadString(); + break; + } + case 96: { + TakeTime = input.ReadInt64(); + break; + } + case 106: { + NeedPlayers = input.ReadString(); + break; + } + case 114: { + TaskStatus = input.ReadString(); + break; + } + case 122: { + SelectList = input.ReadString(); + break; + } + case 128: { + OnOff = input.ReadInt64(); + break; + } + case 138: { + Status = input.ReadString(); + break; + } + case 146: { + ResChange = input.ReadString(); + break; + } + case 152: { + ParallelControl = input.ReadInt64(); + break; + } + case 162: { + ExtraValue = input.ReadString(); + break; + } + case 170: { + UserIds = input.ReadString(); + break; + } + case 178: { + CreateTime = input.ReadString(); + break; + } + case 186: { + UpdateTime = input.ReadString(); + 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 10: { + RoomId = input.ReadString(); + break; + } + case 18: { + Id = input.ReadString(); + break; + } + case 26: { + ObjectId = input.ReadString(); + break; + } + case 34: { + Note = input.ReadString(); + break; + } + case 42: { + Type = input.ReadString(); + break; + } + case 50: { + Name = input.ReadString(); + break; + } + case 56: { + NameShowOffset = input.ReadInt64(); + break; + } + case 64: { + ShowRadius = input.ReadInt64(); + break; + } + case 74: { + Icon = input.ReadString(); + break; + } + case 82: { + Role = input.ReadString(); + break; + } + case 90: { + ItemDepend = input.ReadString(); + break; + } + case 96: { + TakeTime = input.ReadInt64(); + break; + } + case 106: { + NeedPlayers = input.ReadString(); + break; + } + case 114: { + TaskStatus = input.ReadString(); + break; + } + case 122: { + SelectList = input.ReadString(); + break; + } + case 128: { + OnOff = input.ReadInt64(); + break; + } + case 138: { + Status = input.ReadString(); + break; + } + case 146: { + ResChange = input.ReadString(); + break; + } + case 152: { + ParallelControl = input.ReadInt64(); + break; + } + case 162: { + ExtraValue = input.ReadString(); + break; + } + case 170: { + UserIds = input.ReadString(); + break; + } + case 178: { + CreateTime = input.ReadString(); + break; + } + case 186: { + UpdateTime = input.ReadString(); + break; + } + } + } + } + #endif + +} + #endregion diff --git a/xiaofang/Assets/comm/Proto/Move.cs b/xiaofang/Assets/comm/Proto/Move.cs index cd58110a..3bee5ef9 100644 --- a/xiaofang/Assets/comm/Proto/Move.cs +++ b/xiaofang/Assets/comm/Proto/Move.cs @@ -22,20 +22,21 @@ public static partial class MoveReflection { static MoveReflection() { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( - "Cgptb3ZlLnByb3RvIiIKEE5wY0NyZWF0ZVJlcXVlc3QSDgoGcm9vbUlkGAEg", - "ASgJIhMKEU5wY0NyZWF0ZVJlc3BvbnNlIi8KC01vdmVSZXF1ZXN0Eg4KBnJv", - "b21JZBgBIAEoCRIQCghtb3ZlVHlwZRgCIAEoBSJKCgxNb3ZlUmVzcG9uc2US", - "DgoGdXNlcklkGAIgASgJEg4KBnJvb21JZBgDIAEoCRIaCghtb3ZlRGF0YRgB", - "IAMoCzIILk5wY0RhdGEifAoHTnBjRGF0YRIJCgF4GAEgASgCEgkKAXkYAiAB", - "KAISCQoBehgDIAEoAhIOCgZ1c2VySWQYBCABKAkSEAoIbmlja05hbWUYCCAB", - "KAkSDAoEdHlwZRgFIAEoBRIRCglmb3JtYXRpb24YBiABKAUSDQoFZXZlbnQY", - "ByABKAUiVQoSTW92ZVJvb21Bb2lSZXF1ZXN0Eg4KBnJvb21JZBgBIAEoCRIO", - "CgZ1c2VySWQYAiABKAMSCQoBeBgDIAEoAhIJCgF5GAQgASgCEgkKAXoYBSAB", - "KAIiFQoTTW92ZVJvb21Bb2lSZXNwb25zZUIHWgUuLztwYmIGcHJvdG8z")); + "Cgptb3ZlLnByb3RvIkcKEE5wY0NyZWF0ZVJlcXVlc3QSDgoGcm9vbUlkGAEg", + "ASgJEhIKCnRlbXBsYXRlSWQYAiABKAMSDwoHc2NlbmVJZBgDIAEoCSITChFO", + "cGNDcmVhdGVSZXNwb25zZSIvCgtNb3ZlUmVxdWVzdBIOCgZyb29tSWQYASAB", + "KAkSEAoIbW92ZVR5cGUYAiABKAUiSgoMTW92ZVJlc3BvbnNlEg4KBnVzZXJJ", + "ZBgCIAEoCRIOCgZyb29tSWQYAyABKAkSGgoIbW92ZURhdGEYASADKAsyCC5O", + "cGNEYXRhInwKB05wY0RhdGESCQoBeBgBIAEoAhIJCgF5GAIgASgCEgkKAXoY", + "AyABKAISDgoGdXNlcklkGAQgASgJEhAKCG5pY2tOYW1lGAggASgJEgwKBHR5", + "cGUYBSABKAUSEQoJZm9ybWF0aW9uGAYgASgFEg0KBWV2ZW50GAcgASgFIlUK", + "Ek1vdmVSb29tQW9pUmVxdWVzdBIOCgZyb29tSWQYASABKAkSDgoGdXNlcklk", + "GAIgASgDEgkKAXgYAyABKAISCQoBeRgEIAEoAhIJCgF6GAUgASgCIhUKE01v", + "dmVSb29tQW9pUmVzcG9uc2VCB1oFLi87cGJiBnByb3RvMw==")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { }, new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::NpcCreateRequest), global::NpcCreateRequest.Parser, new[]{ "RoomId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::NpcCreateRequest), global::NpcCreateRequest.Parser, new[]{ "RoomId", "TemplateId", "SceneId" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::NpcCreateResponse), global::NpcCreateResponse.Parser, null, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::MoveRequest), global::MoveRequest.Parser, new[]{ "RoomId", "MoveType" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::MoveResponse), global::MoveResponse.Parser, new[]{ "UserId", "RoomId", "MoveData" }, null, null, null, null), @@ -84,6 +85,8 @@ public sealed partial class NpcCreateRequest : pb::IMessage [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public NpcCreateRequest(NpcCreateRequest other) : this() { roomId_ = other.roomId_; + templateId_ = other.templateId_; + sceneId_ = other.sceneId_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } @@ -108,6 +111,36 @@ public sealed partial class NpcCreateRequest : pb::IMessage } } + /// Field number for the "templateId" field. + public const int TemplateIdFieldNumber = 2; + private long templateId_; + /// + /// 婕旂粌妯℃澘id + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long TemplateId { + get { return templateId_; } + set { + templateId_ = value; + } + } + + /// Field number for the "sceneId" field. + public const int SceneIdFieldNumber = 3; + private string sceneId_ = ""; + /// + /// 鍦烘櫙Id + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string SceneId { + get { return sceneId_; } + set { + sceneId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { @@ -124,6 +157,8 @@ public sealed partial class NpcCreateRequest : pb::IMessage return true; } if (RoomId != other.RoomId) return false; + if (TemplateId != other.TemplateId) return false; + if (SceneId != other.SceneId) return false; return Equals(_unknownFields, other._unknownFields); } @@ -132,6 +167,8 @@ public sealed partial class NpcCreateRequest : pb::IMessage public override int GetHashCode() { int hash = 1; if (RoomId.Length != 0) hash ^= RoomId.GetHashCode(); + if (TemplateId != 0L) hash ^= TemplateId.GetHashCode(); + if (SceneId.Length != 0) hash ^= SceneId.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -154,6 +191,14 @@ public sealed partial class NpcCreateRequest : pb::IMessage output.WriteRawTag(10); output.WriteString(RoomId); } + if (TemplateId != 0L) { + output.WriteRawTag(16); + output.WriteInt64(TemplateId); + } + if (SceneId.Length != 0) { + output.WriteRawTag(26); + output.WriteString(SceneId); + } if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -168,6 +213,14 @@ public sealed partial class NpcCreateRequest : pb::IMessage output.WriteRawTag(10); output.WriteString(RoomId); } + if (TemplateId != 0L) { + output.WriteRawTag(16); + output.WriteInt64(TemplateId); + } + if (SceneId.Length != 0) { + output.WriteRawTag(26); + output.WriteString(SceneId); + } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -181,6 +234,12 @@ public sealed partial class NpcCreateRequest : pb::IMessage if (RoomId.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(RoomId); } + if (TemplateId != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(TemplateId); + } + if (SceneId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(SceneId); + } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -196,6 +255,12 @@ public sealed partial class NpcCreateRequest : pb::IMessage if (other.RoomId.Length != 0) { RoomId = other.RoomId; } + if (other.TemplateId != 0L) { + TemplateId = other.TemplateId; + } + if (other.SceneId.Length != 0) { + SceneId = other.SceneId; + } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -219,6 +284,14 @@ public sealed partial class NpcCreateRequest : pb::IMessage RoomId = input.ReadString(); break; } + case 16: { + TemplateId = input.ReadInt64(); + break; + } + case 26: { + SceneId = input.ReadString(); + break; + } } } #endif @@ -242,6 +315,14 @@ public sealed partial class NpcCreateRequest : pb::IMessage RoomId = input.ReadString(); break; } + case 16: { + TemplateId = input.ReadInt64(); + break; + } + case 26: { + SceneId = input.ReadString(); + break; + } } } } diff --git a/xiaofang/Assets/comm/Proto/Object.cs b/xiaofang/Assets/comm/Proto/Object.cs new file mode 100644 index 00000000..30c4e469 --- /dev/null +++ b/xiaofang/Assets/comm/Proto/Object.cs @@ -0,0 +1,1497 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: object.proto +// +#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; +/// Holder for reflection information generated from object.proto +public static partial class ObjectReflection { + + #region Descriptor + /// File descriptor for object.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ObjectReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CgxvYmplY3QucHJvdG8iXgoNUmVxdWVzdE9iamVjdBIKCgJJZBgBIAEoCRIQ", + "CghPYmplY3RJZBgCIAEoCRIOCgZTdGF0dXMYAyABKAkSDwoHVXNlcklkcxgE", + "IAEoCRIOCgZSb29tSWQYBSABKAkiqwMKDlJlc3BvbnNlT2JqZWN0EgoKAklk", + "GAEgASgJEhAKCE9iamVjdElkGAIgASgJEgwKBE5vdGUYAyABKAkSDAoEVHlw", + "ZRgEIAEoCRIMCgROYW1lGAUgASgJEhYKDk5hbWVTaG93T2Zmc2V0GAYgASgD", + "EhIKClNob3dSYWRpdXMYByABKAMSDAoESWNvbhgIIAEoCRIMCgRSb2xlGAkg", + "ASgJEhIKCkl0ZW1EZXBlbmQYCiABKAkSEAoIVGFrZVRpbWUYCyABKAMSEwoL", + "TmVlZFBsYXllcnMYDCABKAkSEgoKVGFza1N0YXR1cxgNIAEoCRISCgpTZWxl", + "Y3RMaXN0GA4gASgJEg0KBU9uT2ZmGA8gASgDEg4KBlN0YXR1cxgQIAEoCRIR", + "CglSZXNDaGFuZ2UYESABKAkSFwoPUGFyYWxsZWxDb250cm9sGBIgASgDEhIK", + "CkV4dHJhVmFsdWUYEyABKAkSDwoHVXNlcklkcxgUIAEoCRISCgpDcmVhdGVU", + "aW1lGBUgASgJEhIKClVwZGF0ZVRpbWUYFiABKAkSDgoGUm9vbUlkGBcgASgJ", + "QgdaBS4vO3BiYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::RequestObject), global::RequestObject.Parser, new[]{ "Id", "ObjectId", "Status", "UserIds", "RoomId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::ResponseObject), global::ResponseObject.Parser, new[]{ "Id", "ObjectId", "Note", "Type", "Name", "NameShowOffset", "ShowRadius", "Icon", "Role", "ItemDepend", "TakeTime", "NeedPlayers", "TaskStatus", "SelectList", "OnOff", "Status", "ResChange", "ParallelControl", "ExtraValue", "UserIds", "CreateTime", "UpdateTime", "RoomId" }, null, null, null, null) + })); + } + #endregion + +} +#region Messages +/// +/// 瀹氫箟璇锋眰鍜屽搷搴旂殑娑堟伅绫诲瀷 +/// +[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] +public sealed partial class RequestObject : pb::IMessage +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage +#endif +{ + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RequestObject()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::ObjectReflection.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 RequestObject() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RequestObject(RequestObject other) : this() { + id_ = other.id_; + objectId_ = other.objectId_; + status_ = other.status_; + userIds_ = other.userIds_; + roomId_ = other.roomId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RequestObject Clone() { + return new RequestObject(this); + } + + /// Field number for the "Id" field. + public const int IdFieldNumber = 1; + private string id_ = ""; + /// + /// ID + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Id { + get { return id_; } + set { + id_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "ObjectId" field. + public const int ObjectIdFieldNumber = 2; + private string objectId_ = ""; + /// + /// 瀵硅薄ID + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ObjectId { + get { return objectId_; } + set { + objectId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "Status" field. + public const int StatusFieldNumber = 3; + private string status_ = ""; + /// + /// 鐘舵 0 鏈娇鐢/鍏抽棴 1 宸蹭娇鐢/寮鍚 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Status { + get { return status_; } + set { + status_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "UserIds" field. + public const int UserIdsFieldNumber = 4; + private string userIds_ = ""; + /// + /// 鐢ㄦ埛ID "1,2,3" 澶氫釜鐢ㄦ埛鐢ㄩ楀彿鍒嗛殧 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string UserIds { + get { return userIds_; } + set { + userIds_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "RoomId" field. + public const int RoomIdFieldNumber = 5; + private string roomId_ = ""; + /// + /// 鎴块棿ID + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string RoomId { + get { return roomId_; } + set { + roomId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RequestObject); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RequestObject other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (ObjectId != other.ObjectId) return false; + if (Status != other.Status) return false; + if (UserIds != other.UserIds) return false; + if (RoomId != other.RoomId) 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 (Id.Length != 0) hash ^= Id.GetHashCode(); + if (ObjectId.Length != 0) hash ^= ObjectId.GetHashCode(); + if (Status.Length != 0) hash ^= Status.GetHashCode(); + if (UserIds.Length != 0) hash ^= UserIds.GetHashCode(); + if (RoomId.Length != 0) hash ^= RoomId.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 (Id.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Id); + } + if (ObjectId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(ObjectId); + } + if (Status.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Status); + } + if (UserIds.Length != 0) { + output.WriteRawTag(34); + output.WriteString(UserIds); + } + if (RoomId.Length != 0) { + output.WriteRawTag(42); + output.WriteString(RoomId); + } + 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 (Id.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Id); + } + if (ObjectId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(ObjectId); + } + if (Status.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Status); + } + if (UserIds.Length != 0) { + output.WriteRawTag(34); + output.WriteString(UserIds); + } + if (RoomId.Length != 0) { + output.WriteRawTag(42); + output.WriteString(RoomId); + } + 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 (Id.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Id); + } + if (ObjectId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ObjectId); + } + if (Status.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Status); + } + if (UserIds.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(UserIds); + } + if (RoomId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(RoomId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RequestObject other) { + if (other == null) { + return; + } + if (other.Id.Length != 0) { + Id = other.Id; + } + if (other.ObjectId.Length != 0) { + ObjectId = other.ObjectId; + } + if (other.Status.Length != 0) { + Status = other.Status; + } + if (other.UserIds.Length != 0) { + UserIds = other.UserIds; + } + if (other.RoomId.Length != 0) { + RoomId = other.RoomId; + } + _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 10: { + Id = input.ReadString(); + break; + } + case 18: { + ObjectId = input.ReadString(); + break; + } + case 26: { + Status = input.ReadString(); + break; + } + case 34: { + UserIds = input.ReadString(); + break; + } + case 42: { + RoomId = input.ReadString(); + 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 10: { + Id = input.ReadString(); + break; + } + case 18: { + ObjectId = input.ReadString(); + break; + } + case 26: { + Status = input.ReadString(); + break; + } + case 34: { + UserIds = input.ReadString(); + break; + } + case 42: { + RoomId = input.ReadString(); + break; + } + } + } + } + #endif + +} + +[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] +public sealed partial class ResponseObject : pb::IMessage +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage +#endif +{ + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ResponseObject()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::ObjectReflection.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 ResponseObject() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ResponseObject(ResponseObject other) : this() { + id_ = other.id_; + objectId_ = other.objectId_; + note_ = other.note_; + type_ = other.type_; + name_ = other.name_; + nameShowOffset_ = other.nameShowOffset_; + showRadius_ = other.showRadius_; + icon_ = other.icon_; + role_ = other.role_; + itemDepend_ = other.itemDepend_; + takeTime_ = other.takeTime_; + needPlayers_ = other.needPlayers_; + taskStatus_ = other.taskStatus_; + selectList_ = other.selectList_; + onOff_ = other.onOff_; + status_ = other.status_; + resChange_ = other.resChange_; + parallelControl_ = other.parallelControl_; + extraValue_ = other.extraValue_; + userIds_ = other.userIds_; + createTime_ = other.createTime_; + updateTime_ = other.updateTime_; + roomId_ = other.roomId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ResponseObject Clone() { + return new ResponseObject(this); + } + + /// Field number for the "Id" field. + public const int IdFieldNumber = 1; + private string id_ = ""; + /// + /// ID + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Id { + get { return id_; } + set { + id_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "ObjectId" field. + public const int ObjectIdFieldNumber = 2; + private string objectId_ = ""; + /// + /// 瀵硅薄ID + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ObjectId { + get { return objectId_; } + set { + objectId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "Note" field. + public const int NoteFieldNumber = 3; + private string note_ = ""; + /// + /// 鐘舵 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Note { + get { return note_; } + set { + note_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "Type" field. + public const int TypeFieldNumber = 4; + private string type_ = ""; + /// + /// 瀵硅薄绫诲瀷 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Type { + get { return type_; } + set { + type_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "Name" field. + public const int NameFieldNumber = 5; + private string name_ = ""; + /// + /// 瀵硅薄鏂囨湰Id + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "NameShowOffset" field. + public const int NameShowOffsetFieldNumber = 6; + private long nameShowOffset_; + /// + /// 瀵硅薄鏂囨湰鏄剧ず鍋忕Щ閲 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long NameShowOffset { + get { return nameShowOffset_; } + set { + nameShowOffset_ = value; + } + } + + /// Field number for the "ShowRadius" field. + public const int ShowRadiusFieldNumber = 7; + private long showRadius_; + /// + /// 瀵硅薄鏄剧ず鍗婂緞 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long ShowRadius { + get { return showRadius_; } + set { + showRadius_ = value; + } + } + + /// Field number for the "Icon" field. + public const int IconFieldNumber = 8; + private string icon_ = ""; + /// + /// 瀵硅薄鍥炬爣 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Icon { + get { return icon_; } + set { + icon_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "Role" field. + public const int RoleFieldNumber = 9; + private string role_ = ""; + /// + /// 瀵硅薄瑙掕壊 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Role { + get { return role_; } + set { + role_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "ItemDepend" field. + public const int ItemDependFieldNumber = 10; + private string itemDepend_ = ""; + /// + /// 渚濊禆鐗╁搧 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ItemDepend { + get { return itemDepend_; } + set { + itemDepend_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "TakeTime" field. + public const int TakeTimeFieldNumber = 11; + private long takeTime_; + /// + /// 浜や簰銆佽鏉℃椂闂 -1 绔嬪嵆鎵ц + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long TakeTime { + get { return takeTime_; } + set { + takeTime_ = value; + } + } + + /// Field number for the "NeedPlayers" field. + public const int NeedPlayersFieldNumber = 12; + private string needPlayers_ = ""; + /// + /// 鍒ゅ畾鑼冨洿锛岀帺瀹舵暟閲忥紝鏄惁鍙搷浣滐紙褰撲汉鏁颁笉婊¤冻鏃讹級 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NeedPlayers { + get { return needPlayers_; } + set { + needPlayers_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "TaskStatus" field. + public const int TaskStatusFieldNumber = 13; + private string taskStatus_ = ""; + /// + /// 瀵瑰簲浜嬩欢ID + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string TaskStatus { + get { return taskStatus_; } + set { + taskStatus_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "SelectList" field. + public const int SelectListFieldNumber = 14; + private string selectList_ = ""; + /// + /// 閫夋嫨鍒楄〃 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string SelectList { + get { return selectList_; } + set { + selectList_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "OnOff" field. + public const int OnOffFieldNumber = 15; + private long onOff_; + /// + /// 鎿嶄綔鐘舵 0涓嶅彲鎿嶄綔 1 鍙搷浣 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long OnOff { + get { return onOff_; } + set { + onOff_ = value; + } + } + + /// Field number for the "Status" field. + public const int StatusFieldNumber = 16; + private string status_ = ""; + /// + /// 鐘舵 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Status { + get { return status_; } + set { + status_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "ResChange" field. + public const int ResChangeFieldNumber = 17; + private string resChange_ = ""; + /// + /// 璧勬簮鍙樺寲 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ResChange { + get { return resChange_; } + set { + resChange_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "ParallelControl" field. + public const int ParallelControlFieldNumber = 18; + private long parallelControl_; + /// + /// 鏄惁鏀寔澶氫汉鎿嶄綔 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long ParallelControl { + get { return parallelControl_; } + set { + parallelControl_ = value; + } + } + + /// Field number for the "ExtraValue" field. + public const int ExtraValueFieldNumber = 19; + private string extraValue_ = ""; + /// + /// 棰濆鍙傛暟 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ExtraValue { + get { return extraValue_; } + set { + extraValue_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "UserIds" field. + public const int UserIdsFieldNumber = 20; + private string userIds_ = ""; + /// + /// 鐜╁id鍒楄〃 閫楀彿鍒嗛殧 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string UserIds { + get { return userIds_; } + set { + userIds_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "CreateTime" field. + public const int CreateTimeFieldNumber = 21; + private string createTime_ = ""; + /// + /// 鍒涘缓鏃堕棿 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string CreateTime { + get { return createTime_; } + set { + createTime_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "UpdateTime" field. + public const int UpdateTimeFieldNumber = 22; + private string updateTime_ = ""; + /// + /// 鏇存柊鏃堕棿 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string UpdateTime { + get { return updateTime_; } + set { + updateTime_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "RoomId" field. + public const int RoomIdFieldNumber = 23; + private string roomId_ = ""; + /// + /// 鎴块棿ID + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string RoomId { + get { return roomId_; } + set { + roomId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ResponseObject); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ResponseObject other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (ObjectId != other.ObjectId) return false; + if (Note != other.Note) return false; + if (Type != other.Type) return false; + if (Name != other.Name) return false; + if (NameShowOffset != other.NameShowOffset) return false; + if (ShowRadius != other.ShowRadius) return false; + if (Icon != other.Icon) return false; + if (Role != other.Role) return false; + if (ItemDepend != other.ItemDepend) return false; + if (TakeTime != other.TakeTime) return false; + if (NeedPlayers != other.NeedPlayers) return false; + if (TaskStatus != other.TaskStatus) return false; + if (SelectList != other.SelectList) return false; + if (OnOff != other.OnOff) return false; + if (Status != other.Status) return false; + if (ResChange != other.ResChange) return false; + if (ParallelControl != other.ParallelControl) return false; + if (ExtraValue != other.ExtraValue) return false; + if (UserIds != other.UserIds) return false; + if (CreateTime != other.CreateTime) return false; + if (UpdateTime != other.UpdateTime) return false; + if (RoomId != other.RoomId) 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 (Id.Length != 0) hash ^= Id.GetHashCode(); + if (ObjectId.Length != 0) hash ^= ObjectId.GetHashCode(); + if (Note.Length != 0) hash ^= Note.GetHashCode(); + if (Type.Length != 0) hash ^= Type.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (NameShowOffset != 0L) hash ^= NameShowOffset.GetHashCode(); + if (ShowRadius != 0L) hash ^= ShowRadius.GetHashCode(); + if (Icon.Length != 0) hash ^= Icon.GetHashCode(); + if (Role.Length != 0) hash ^= Role.GetHashCode(); + if (ItemDepend.Length != 0) hash ^= ItemDepend.GetHashCode(); + if (TakeTime != 0L) hash ^= TakeTime.GetHashCode(); + if (NeedPlayers.Length != 0) hash ^= NeedPlayers.GetHashCode(); + if (TaskStatus.Length != 0) hash ^= TaskStatus.GetHashCode(); + if (SelectList.Length != 0) hash ^= SelectList.GetHashCode(); + if (OnOff != 0L) hash ^= OnOff.GetHashCode(); + if (Status.Length != 0) hash ^= Status.GetHashCode(); + if (ResChange.Length != 0) hash ^= ResChange.GetHashCode(); + if (ParallelControl != 0L) hash ^= ParallelControl.GetHashCode(); + if (ExtraValue.Length != 0) hash ^= ExtraValue.GetHashCode(); + if (UserIds.Length != 0) hash ^= UserIds.GetHashCode(); + if (CreateTime.Length != 0) hash ^= CreateTime.GetHashCode(); + if (UpdateTime.Length != 0) hash ^= UpdateTime.GetHashCode(); + if (RoomId.Length != 0) hash ^= RoomId.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 (Id.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Id); + } + if (ObjectId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(ObjectId); + } + if (Note.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Note); + } + if (Type.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Type); + } + if (Name.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Name); + } + if (NameShowOffset != 0L) { + output.WriteRawTag(48); + output.WriteInt64(NameShowOffset); + } + if (ShowRadius != 0L) { + output.WriteRawTag(56); + output.WriteInt64(ShowRadius); + } + if (Icon.Length != 0) { + output.WriteRawTag(66); + output.WriteString(Icon); + } + if (Role.Length != 0) { + output.WriteRawTag(74); + output.WriteString(Role); + } + if (ItemDepend.Length != 0) { + output.WriteRawTag(82); + output.WriteString(ItemDepend); + } + if (TakeTime != 0L) { + output.WriteRawTag(88); + output.WriteInt64(TakeTime); + } + if (NeedPlayers.Length != 0) { + output.WriteRawTag(98); + output.WriteString(NeedPlayers); + } + if (TaskStatus.Length != 0) { + output.WriteRawTag(106); + output.WriteString(TaskStatus); + } + if (SelectList.Length != 0) { + output.WriteRawTag(114); + output.WriteString(SelectList); + } + if (OnOff != 0L) { + output.WriteRawTag(120); + output.WriteInt64(OnOff); + } + if (Status.Length != 0) { + output.WriteRawTag(130, 1); + output.WriteString(Status); + } + if (ResChange.Length != 0) { + output.WriteRawTag(138, 1); + output.WriteString(ResChange); + } + if (ParallelControl != 0L) { + output.WriteRawTag(144, 1); + output.WriteInt64(ParallelControl); + } + if (ExtraValue.Length != 0) { + output.WriteRawTag(154, 1); + output.WriteString(ExtraValue); + } + if (UserIds.Length != 0) { + output.WriteRawTag(162, 1); + output.WriteString(UserIds); + } + if (CreateTime.Length != 0) { + output.WriteRawTag(170, 1); + output.WriteString(CreateTime); + } + if (UpdateTime.Length != 0) { + output.WriteRawTag(178, 1); + output.WriteString(UpdateTime); + } + if (RoomId.Length != 0) { + output.WriteRawTag(186, 1); + output.WriteString(RoomId); + } + 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 (Id.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Id); + } + if (ObjectId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(ObjectId); + } + if (Note.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Note); + } + if (Type.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Type); + } + if (Name.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Name); + } + if (NameShowOffset != 0L) { + output.WriteRawTag(48); + output.WriteInt64(NameShowOffset); + } + if (ShowRadius != 0L) { + output.WriteRawTag(56); + output.WriteInt64(ShowRadius); + } + if (Icon.Length != 0) { + output.WriteRawTag(66); + output.WriteString(Icon); + } + if (Role.Length != 0) { + output.WriteRawTag(74); + output.WriteString(Role); + } + if (ItemDepend.Length != 0) { + output.WriteRawTag(82); + output.WriteString(ItemDepend); + } + if (TakeTime != 0L) { + output.WriteRawTag(88); + output.WriteInt64(TakeTime); + } + if (NeedPlayers.Length != 0) { + output.WriteRawTag(98); + output.WriteString(NeedPlayers); + } + if (TaskStatus.Length != 0) { + output.WriteRawTag(106); + output.WriteString(TaskStatus); + } + if (SelectList.Length != 0) { + output.WriteRawTag(114); + output.WriteString(SelectList); + } + if (OnOff != 0L) { + output.WriteRawTag(120); + output.WriteInt64(OnOff); + } + if (Status.Length != 0) { + output.WriteRawTag(130, 1); + output.WriteString(Status); + } + if (ResChange.Length != 0) { + output.WriteRawTag(138, 1); + output.WriteString(ResChange); + } + if (ParallelControl != 0L) { + output.WriteRawTag(144, 1); + output.WriteInt64(ParallelControl); + } + if (ExtraValue.Length != 0) { + output.WriteRawTag(154, 1); + output.WriteString(ExtraValue); + } + if (UserIds.Length != 0) { + output.WriteRawTag(162, 1); + output.WriteString(UserIds); + } + if (CreateTime.Length != 0) { + output.WriteRawTag(170, 1); + output.WriteString(CreateTime); + } + if (UpdateTime.Length != 0) { + output.WriteRawTag(178, 1); + output.WriteString(UpdateTime); + } + if (RoomId.Length != 0) { + output.WriteRawTag(186, 1); + output.WriteString(RoomId); + } + 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 (Id.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Id); + } + if (ObjectId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ObjectId); + } + if (Note.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Note); + } + if (Type.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Type); + } + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (NameShowOffset != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(NameShowOffset); + } + if (ShowRadius != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(ShowRadius); + } + if (Icon.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Icon); + } + if (Role.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Role); + } + if (ItemDepend.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ItemDepend); + } + if (TakeTime != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(TakeTime); + } + if (NeedPlayers.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NeedPlayers); + } + if (TaskStatus.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TaskStatus); + } + if (SelectList.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(SelectList); + } + if (OnOff != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(OnOff); + } + if (Status.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(Status); + } + if (ResChange.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(ResChange); + } + if (ParallelControl != 0L) { + size += 2 + pb::CodedOutputStream.ComputeInt64Size(ParallelControl); + } + if (ExtraValue.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(ExtraValue); + } + if (UserIds.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(UserIds); + } + if (CreateTime.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(CreateTime); + } + if (UpdateTime.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(UpdateTime); + } + if (RoomId.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(RoomId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ResponseObject other) { + if (other == null) { + return; + } + if (other.Id.Length != 0) { + Id = other.Id; + } + if (other.ObjectId.Length != 0) { + ObjectId = other.ObjectId; + } + if (other.Note.Length != 0) { + Note = other.Note; + } + if (other.Type.Length != 0) { + Type = other.Type; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.NameShowOffset != 0L) { + NameShowOffset = other.NameShowOffset; + } + if (other.ShowRadius != 0L) { + ShowRadius = other.ShowRadius; + } + if (other.Icon.Length != 0) { + Icon = other.Icon; + } + if (other.Role.Length != 0) { + Role = other.Role; + } + if (other.ItemDepend.Length != 0) { + ItemDepend = other.ItemDepend; + } + if (other.TakeTime != 0L) { + TakeTime = other.TakeTime; + } + if (other.NeedPlayers.Length != 0) { + NeedPlayers = other.NeedPlayers; + } + if (other.TaskStatus.Length != 0) { + TaskStatus = other.TaskStatus; + } + if (other.SelectList.Length != 0) { + SelectList = other.SelectList; + } + if (other.OnOff != 0L) { + OnOff = other.OnOff; + } + if (other.Status.Length != 0) { + Status = other.Status; + } + if (other.ResChange.Length != 0) { + ResChange = other.ResChange; + } + if (other.ParallelControl != 0L) { + ParallelControl = other.ParallelControl; + } + if (other.ExtraValue.Length != 0) { + ExtraValue = other.ExtraValue; + } + if (other.UserIds.Length != 0) { + UserIds = other.UserIds; + } + if (other.CreateTime.Length != 0) { + CreateTime = other.CreateTime; + } + if (other.UpdateTime.Length != 0) { + UpdateTime = other.UpdateTime; + } + if (other.RoomId.Length != 0) { + RoomId = other.RoomId; + } + _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 10: { + Id = input.ReadString(); + break; + } + case 18: { + ObjectId = input.ReadString(); + break; + } + case 26: { + Note = input.ReadString(); + break; + } + case 34: { + Type = input.ReadString(); + break; + } + case 42: { + Name = input.ReadString(); + break; + } + case 48: { + NameShowOffset = input.ReadInt64(); + break; + } + case 56: { + ShowRadius = input.ReadInt64(); + break; + } + case 66: { + Icon = input.ReadString(); + break; + } + case 74: { + Role = input.ReadString(); + break; + } + case 82: { + ItemDepend = input.ReadString(); + break; + } + case 88: { + TakeTime = input.ReadInt64(); + break; + } + case 98: { + NeedPlayers = input.ReadString(); + break; + } + case 106: { + TaskStatus = input.ReadString(); + break; + } + case 114: { + SelectList = input.ReadString(); + break; + } + case 120: { + OnOff = input.ReadInt64(); + break; + } + case 130: { + Status = input.ReadString(); + break; + } + case 138: { + ResChange = input.ReadString(); + break; + } + case 144: { + ParallelControl = input.ReadInt64(); + break; + } + case 154: { + ExtraValue = input.ReadString(); + break; + } + case 162: { + UserIds = input.ReadString(); + break; + } + case 170: { + CreateTime = input.ReadString(); + break; + } + case 178: { + UpdateTime = input.ReadString(); + break; + } + case 186: { + RoomId = input.ReadString(); + 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 10: { + Id = input.ReadString(); + break; + } + case 18: { + ObjectId = input.ReadString(); + break; + } + case 26: { + Note = input.ReadString(); + break; + } + case 34: { + Type = input.ReadString(); + break; + } + case 42: { + Name = input.ReadString(); + break; + } + case 48: { + NameShowOffset = input.ReadInt64(); + break; + } + case 56: { + ShowRadius = input.ReadInt64(); + break; + } + case 66: { + Icon = input.ReadString(); + break; + } + case 74: { + Role = input.ReadString(); + break; + } + case 82: { + ItemDepend = input.ReadString(); + break; + } + case 88: { + TakeTime = input.ReadInt64(); + break; + } + case 98: { + NeedPlayers = input.ReadString(); + break; + } + case 106: { + TaskStatus = input.ReadString(); + break; + } + case 114: { + SelectList = input.ReadString(); + break; + } + case 120: { + OnOff = input.ReadInt64(); + break; + } + case 130: { + Status = input.ReadString(); + break; + } + case 138: { + ResChange = input.ReadString(); + break; + } + case 144: { + ParallelControl = input.ReadInt64(); + break; + } + case 154: { + ExtraValue = input.ReadString(); + break; + } + case 162: { + UserIds = input.ReadString(); + break; + } + case 170: { + CreateTime = input.ReadString(); + break; + } + case 178: { + UpdateTime = input.ReadString(); + break; + } + case 186: { + RoomId = input.ReadString(); + break; + } + } + } + } + #endif + +} + +#endregion + + +#endregion Designer generated code diff --git a/xiaofang/Assets/comm/Proto/Object.cs.meta b/xiaofang/Assets/comm/Proto/Object.cs.meta new file mode 100644 index 00000000..296e13e1 --- /dev/null +++ b/xiaofang/Assets/comm/Proto/Object.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 7a2dfd72791480141a3dca377b5196d1 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/xiaofang/Assets/comm/Proto/Prop.cs b/xiaofang/Assets/comm/Proto/Prop.cs index 8ddccef3..11c7ee85 100644 --- a/xiaofang/Assets/comm/Proto/Prop.cs +++ b/xiaofang/Assets/comm/Proto/Prop.cs @@ -419,6 +419,9 @@ public sealed partial class PropResponse : pb::IMessage /// Field number for the "propId" field. public const int PropIdFieldNumber = 1; private int propId_; + /// + /// 閬撳叿ID + /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int PropId { @@ -431,6 +434,9 @@ public sealed partial class PropResponse : pb::IMessage /// Field number for the "propServerId" field. public const int PropServerIdFieldNumber = 5; private string propServerId_ = ""; + /// + /// 鏈嶅姟绔疘D + /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string PropServerId { @@ -443,6 +449,9 @@ public sealed partial class PropResponse : pb::IMessage /// Field number for the "name" field. public const int NameFieldNumber = 2; private string name_ = ""; + /// + /// 閬撳叿鍚嶇О + /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Name { @@ -455,6 +464,9 @@ public sealed partial class PropResponse : pb::IMessage /// Field number for the "code" field. public const int CodeFieldNumber = 3; private int code_; + /// + /// 閬撳叿缂栫爜 + /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int Code { @@ -467,6 +479,9 @@ public sealed partial class PropResponse : pb::IMessage /// Field number for the "message" field. public const int MessageFieldNumber = 4; private string message_ = ""; + /// + /// 閬撳叿鎻愮ず淇℃伅 + /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Message { diff --git a/xiaofang/Assets/comm/Proto/ProtoBufffer.cs b/xiaofang/Assets/comm/Proto/ProtoBufffer.cs deleted file mode 100644 index 46b1d5a6..00000000 --- a/xiaofang/Assets/comm/Proto/ProtoBufffer.cs +++ /dev/null @@ -1,28 +0,0 @@ -using Google.Protobuf; -using System; -public class ProtoBufffer -{ - public static byte[] Serialize(IMessage message) - { - return message.ToByteArray(); - } - - public static T DeSerialize(byte[] packet) where T : IMessage, new() - { - IMessage message = new T(); - try - { - return (T)message.Descriptor.Parser.ParseFrom(packet); - } - catch (System.Exception e) - { - throw; - } - } - - internal static T DeSerialize(ByteString data) - { - throw new NotImplementedException(); - } -} - diff --git a/xiaofang/Assets/comm/Proto/Room.cs b/xiaofang/Assets/comm/Proto/Room.cs index e138e5de..25ba0064 100644 --- a/xiaofang/Assets/comm/Proto/Room.cs +++ b/xiaofang/Assets/comm/Proto/Room.cs @@ -22,7 +22,7 @@ public static partial class RoomReflection { static RoomReflection() { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( - "Cgpyb29tLnByb3RvIvMCChRSb29tVGVtcGxhdGVSZXNwb25zZRIKCgJJZBgB", + "Cgpyb29tLnByb3RvIqAEChRSb29tVGVtcGxhdGVSZXNwb25zZRIKCgJJZBgB", "IAEoAxIUCgxUZW1wbGF0ZU5hbWUYAiABKAkSEQoJQ29tcGFueUlkGAMgASgJ", "Eg8KB1NjZW5lSWQYBCABKAkSEQoJU3ViamVjdElkGAUgASgJEg4KBlN0YXR1", "cxgGIAEoCRISCgpJc1RlbXBsYXRlGAcgASgJEhAKCENyZWF0ZUJ5GAggASgJ", @@ -30,33 +30,48 @@ public static partial class RoomReflection { "YXRlVGltZRgLIAEoCRIOCgZSZW1hcmsYDCABKAkSDAoETW9kZRgNIAEoCRIY", "ChBEaXNhc3RlckxvY2F0aW9uGA4gASgJEhAKCEZpcmV3YWxsGA8gASgJEiEK", "C3Rhc2tPcm1EYXRhGBAgAygLMgwuVGFza09ybURhdGESJQoNc2VsZWN0T3Jt", - "RGF0YRgRIAMoCzIOLlNlbGVjdE9ybURhdGEi1QMKC1Rhc2tPcm1EYXRhEgoK", - "AklkGAEgASgDEhAKCFRhc2tOYW1lGAIgASgJEhAKCEdhbWVOYW1lGAMgASgJ", - "EhAKCEdhbWVUeXBlGAQgASgFEhAKCEdhbWVEZXNjGAUgASgJEhYKDkdhbWVQ", - "bGF5U2NyaXB0GAYgASgJEhMKC0dhbWVUcmlnZ2VyGAcgASgJEhgKEEdhbWVU", - "cmlnZ2VyTG9naWMYCCABKAkSFwoPR2FtZU92ZXJzZWVDb25kGAkgASgJEhUK", - "DUdhbWVUaW1lTGltaXQYCiABKAkSEAoIR2FtZVJvbGUYCyABKAkSEwoLR2Ft", - "ZVNlbGVjdHMYDCABKAkSFgoOR2FtZVRhcmdldFR5cGUYDSABKAkSGAoQR2Ft", - "ZVRhcmdldHNGaXJzdBgOIAEoCRIZChFHYW1lVGFyZ2V0c1NlY29uZBgPIAEo", - "CRIeChZHYW1lVGFyZ2V0c1NlY29uZExvZ2ljGBAgASgJEhYKDkdhbWVFeHRy", - "YVZhbHVlGBEgASgJEhAKCEdhbWVTb3J0GBIgASgJEhIKCkdhbWVJc1Nob3cY", - "EyABKAkSFQoNR2FtZUV4Y2x1c2l2ZRgUIAEoCRISCgpHYW1lUmV3YXJkGBUg", - "ASgJIp4DCg1TZWxlY3RPcm1EYXRhEgoKAklkGAEgASgDEgwKBE5vdGUYAiAB", - "KAkSDQoFR3JvdXAYAyABKAkSEAoIU2hvd1RleHQYBCABKAkSDAoESWNvbhgF", - "IAEoCRIVCg1QcmVjb25kaXRpb25zGAYgASgJEhEKCUV4Y2x1c2l2ZRgHIAEo", - "CRIQCghUYXNrVGltZRgIIAEoAxIRCglUaW1lTGltaXQYCSABKAMSEgoKTmV4", - "dFNlbGVjdBgKIAEoCRIQCghUYXNrTGluaxgLIAEoCRIXCg9UYXNrTGlua0Rl", - "dGFpbHMYDCABKAkSEAoIQ2FsbE1vZGUYDSABKAkSFQoNQ2FsbFJlY2lwaWVu", - "dBgOIAEoCRIVCg1Db3JyZWN0T3B0aW9uGA8gASgJEg4KBlJld2FyZBgQIAEo", - "CRIOCgZSZXN1bHQYESABKAkSDQoFUm91dGUYEiABKAkSFAoMVGltaW5nQ2hh", - "bmdlGBMgASgJEhEKCUFwcGxpZWRVSRgUIAEoCRIRCglVSURldGFpbHMYFSAB", - "KAkSCwoDU2VxGBYgASgJQgdaBS4vO3BiYgZwcm90bzM=")); + "RGF0YRgRIAMoCzIOLlNlbGVjdE9ybURhdGESJQoNb2JqZWN0T3JtRGF0YRgS", + "IAMoCzIOLk9iamVjdE9ybURhdGESFAoMR2FtZVBvc2l0aW9uGBYgASgJEhYK", + "DkluaXRGaXJlUmFkaXVzGBcgASgFEhQKDEluaXRGaXJlVGltZRgYIAEoBRIV", + "Cg1BZGRGaXJlUmFkaXVzGBkgASgCEhQKDEFkZEZpcmVWYWx1ZRgaIAEoAhIT", + "CgtNYXhGaXJld2FsbBgbIAEoBSLVAwoLVGFza09ybURhdGESCgoCSWQYASAB", + "KAMSEAoIVGFza05hbWUYAiABKAkSEAoIR2FtZU5hbWUYAyABKAkSEAoIR2Ft", + "ZVR5cGUYBCABKAUSEAoIR2FtZURlc2MYBSABKAkSFgoOR2FtZVBsYXlTY3Jp", + "cHQYBiABKAkSEwoLR2FtZVRyaWdnZXIYByABKAkSGAoQR2FtZVRyaWdnZXJM", + "b2dpYxgIIAEoCRIXCg9HYW1lT3ZlcnNlZUNvbmQYCSABKAkSFQoNR2FtZVRp", + "bWVMaW1pdBgKIAEoCRIQCghHYW1lUm9sZRgLIAEoCRITCgtHYW1lU2VsZWN0", + "cxgMIAEoCRIWCg5HYW1lVGFyZ2V0VHlwZRgNIAEoCRIYChBHYW1lVGFyZ2V0", + "c0ZpcnN0GA4gASgJEhkKEUdhbWVUYXJnZXRzU2Vjb25kGA8gASgJEh4KFkdh", + "bWVUYXJnZXRzU2Vjb25kTG9naWMYECABKAkSFgoOR2FtZUV4dHJhVmFsdWUY", + "ESABKAkSEAoIR2FtZVNvcnQYEiABKAkSEgoKR2FtZUlzU2hvdxgTIAEoCRIV", + "Cg1HYW1lRXhjbHVzaXZlGBQgASgJEhIKCkdhbWVSZXdhcmQYFSABKAkingMK", + "DVNlbGVjdE9ybURhdGESCgoCSWQYASABKAMSDAoETm90ZRgCIAEoCRINCgVH", + "cm91cBgDIAEoCRIQCghTaG93VGV4dBgEIAEoCRIMCgRJY29uGAUgASgJEhUK", + "DVByZWNvbmRpdGlvbnMYBiABKAkSEQoJRXhjbHVzaXZlGAcgASgJEhAKCFRh", + "c2tUaW1lGAggASgDEhEKCVRpbWVMaW1pdBgJIAEoAxISCgpOZXh0U2VsZWN0", + "GAogASgJEhAKCFRhc2tMaW5rGAsgASgJEhcKD1Rhc2tMaW5rRGV0YWlscxgM", + "IAEoCRIQCghDYWxsTW9kZRgNIAEoCRIVCg1DYWxsUmVjaXBpZW50GA4gASgJ", + "EhUKDUNvcnJlY3RPcHRpb24YDyABKAkSDgoGUmV3YXJkGBAgASgJEg4KBlJl", + "c3VsdBgRIAEoCRINCgVSb3V0ZRgSIAEoCRIUCgxUaW1pbmdDaGFuZ2UYEyAB", + "KAkSEQoJQXBwbGllZFVJGBQgASgJEhEKCVVJRGV0YWlscxgVIAEoCRILCgNT", + "ZXEYFiABKAkiqgMKDU9iamVjdE9ybURhdGESCgoCSWQYASABKAkSEAoIT2Jq", + "ZWN0SWQYAiABKAkSDAoETm90ZRgDIAEoCRIMCgRUeXBlGAQgASgJEgwKBE5h", + "bWUYBSABKAkSFgoOTmFtZVNob3dPZmZzZXQYBiABKAMSEgoKU2hvd1JhZGl1", + "cxgHIAEoAxIMCgRJY29uGAggASgJEgwKBFJvbGUYCSABKAkSEgoKSXRlbURl", + "cGVuZBgKIAEoCRIQCghUYWtlVGltZRgLIAEoAxITCgtOZWVkUGxheWVycxgM", + "IAEoCRISCgpUYXNrU3RhdHVzGA0gASgJEhIKClNlbGVjdExpc3QYDiABKAkS", + "DQoFT25PZmYYDyABKAMSDgoGU3RhdHVzGBAgASgJEhEKCVJlc0NoYW5nZRgR", + "IAEoCRIXCg9QYXJhbGxlbENvbnRyb2wYEiABKAMSEgoKRXh0cmFWYWx1ZRgT", + "IAEoCRIPCgdVc2VySWRzGBQgASgJEhIKCkNyZWF0ZVRpbWUYFSABKAkSEgoK", + "VXBkYXRlVGltZRgWIAEoCRIOCgZSb29tSWQYFyABKAlCB1oFLi87cGJiBnBy", + "b3RvMw==")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { }, new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::RoomTemplateResponse), global::RoomTemplateResponse.Parser, new[]{ "Id", "TemplateName", "CompanyId", "SceneId", "SubjectId", "Status", "IsTemplate", "CreateBy", "CreateTime", "UpdateBy", "UpdateTime", "Remark", "Mode", "DisasterLocation", "Firewall", "TaskOrmData", "SelectOrmData" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::RoomTemplateResponse), global::RoomTemplateResponse.Parser, new[]{ "Id", "TemplateName", "CompanyId", "SceneId", "SubjectId", "Status", "IsTemplate", "CreateBy", "CreateTime", "UpdateBy", "UpdateTime", "Remark", "Mode", "DisasterLocation", "Firewall", "TaskOrmData", "SelectOrmData", "ObjectOrmData", "GamePosition", "InitFireRadius", "InitFireTime", "AddFireRadius", "AddFireValue", "MaxFirewall" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::TaskOrmData), global::TaskOrmData.Parser, new[]{ "Id", "TaskName", "GameName", "GameType", "GameDesc", "GamePlayScript", "GameTrigger", "GameTriggerLogic", "GameOverseeCond", "GameTimeLimit", "GameRole", "GameSelects", "GameTargetType", "GameTargetsFirst", "GameTargetsSecond", "GameTargetsSecondLogic", "GameExtraValue", "GameSort", "GameIsShow", "GameExclusive", "GameReward" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::SelectOrmData), global::SelectOrmData.Parser, new[]{ "Id", "Note", "Group", "ShowText", "Icon", "Preconditions", "Exclusive", "TaskTime", "TimeLimit", "NextSelect", "TaskLink", "TaskLinkDetails", "CallMode", "CallRecipient", "CorrectOption", "Reward", "Result", "Route", "TimingChange", "AppliedUI", "UIDetails", "Seq" }, null, null, null, null) + new pbr::GeneratedClrTypeInfo(typeof(global::SelectOrmData), global::SelectOrmData.Parser, new[]{ "Id", "Note", "Group", "ShowText", "Icon", "Preconditions", "Exclusive", "TaskTime", "TimeLimit", "NextSelect", "TaskLink", "TaskLinkDetails", "CallMode", "CallRecipient", "CorrectOption", "Reward", "Result", "Route", "TimingChange", "AppliedUI", "UIDetails", "Seq" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::ObjectOrmData), global::ObjectOrmData.Parser, new[]{ "Id", "ObjectId", "Note", "Type", "Name", "NameShowOffset", "ShowRadius", "Icon", "Role", "ItemDepend", "TakeTime", "NeedPlayers", "TaskStatus", "SelectList", "OnOff", "Status", "ResChange", "ParallelControl", "ExtraValue", "UserIds", "CreateTime", "UpdateTime", "RoomId" }, null, null, null, null) })); } #endregion @@ -115,6 +130,13 @@ public sealed partial class RoomTemplateResponse : pb::IMessageField number for the "objectOrmData" field. + public const int ObjectOrmDataFieldNumber = 18; + private static readonly pb::FieldCodec _repeated_objectOrmData_codec + = pb::FieldCodec.ForMessage(146, global::ObjectOrmData.Parser); + private readonly pbc::RepeatedField objectOrmData_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField ObjectOrmData { + get { return objectOrmData_; } + } + + /// Field number for the "GamePosition" field. + public const int GamePositionFieldNumber = 22; + private string gamePosition_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string GamePosition { + get { return gamePosition_; } + set { + gamePosition_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "InitFireRadius" field. + public const int InitFireRadiusFieldNumber = 23; + private int initFireRadius_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int InitFireRadius { + get { return initFireRadius_; } + set { + initFireRadius_ = value; + } + } + + /// Field number for the "InitFireTime" field. + public const int InitFireTimeFieldNumber = 24; + private int initFireTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int InitFireTime { + get { return initFireTime_; } + set { + initFireTime_ = value; + } + } + + /// Field number for the "AddFireRadius" field. + public const int AddFireRadiusFieldNumber = 25; + private float addFireRadius_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float AddFireRadius { + get { return addFireRadius_; } + set { + addFireRadius_ = value; + } + } + + /// Field number for the "AddFireValue" field. + public const int AddFireValueFieldNumber = 26; + private float addFireValue_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float AddFireValue { + get { return addFireValue_; } + set { + addFireValue_ = value; + } + } + + /// Field number for the "MaxFirewall" field. + public const int MaxFirewallFieldNumber = 27; + private int maxFirewall_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int MaxFirewall { + get { return maxFirewall_; } + set { + maxFirewall_ = value; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { @@ -358,6 +463,13 @@ public sealed partial class RoomTemplateResponse : pb::IMessage } +[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] +public sealed partial class ObjectOrmData : pb::IMessage +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage +#endif +{ + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ObjectOrmData()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::RoomReflection.Descriptor.MessageTypes[3]; } + } + + [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 ObjectOrmData() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ObjectOrmData(ObjectOrmData other) : this() { + id_ = other.id_; + objectId_ = other.objectId_; + note_ = other.note_; + type_ = other.type_; + name_ = other.name_; + nameShowOffset_ = other.nameShowOffset_; + showRadius_ = other.showRadius_; + icon_ = other.icon_; + role_ = other.role_; + itemDepend_ = other.itemDepend_; + takeTime_ = other.takeTime_; + needPlayers_ = other.needPlayers_; + taskStatus_ = other.taskStatus_; + selectList_ = other.selectList_; + onOff_ = other.onOff_; + status_ = other.status_; + resChange_ = other.resChange_; + parallelControl_ = other.parallelControl_; + extraValue_ = other.extraValue_; + userIds_ = other.userIds_; + createTime_ = other.createTime_; + updateTime_ = other.updateTime_; + roomId_ = other.roomId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ObjectOrmData Clone() { + return new ObjectOrmData(this); + } + + /// Field number for the "Id" field. + public const int IdFieldNumber = 1; + private string id_ = ""; + /// + /// ID + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Id { + get { return id_; } + set { + id_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "ObjectId" field. + public const int ObjectIdFieldNumber = 2; + private string objectId_ = ""; + /// + /// 瀵硅薄ID + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ObjectId { + get { return objectId_; } + set { + objectId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "Note" field. + public const int NoteFieldNumber = 3; + private string note_ = ""; + /// + /// 鐘舵 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Note { + get { return note_; } + set { + note_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "Type" field. + public const int TypeFieldNumber = 4; + private string type_ = ""; + /// + /// 瀵硅薄绫诲瀷 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Type { + get { return type_; } + set { + type_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "Name" field. + public const int NameFieldNumber = 5; + private string name_ = ""; + /// + /// 瀵硅薄鏂囨湰Id + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "NameShowOffset" field. + public const int NameShowOffsetFieldNumber = 6; + private long nameShowOffset_; + /// + /// 瀵硅薄鏂囨湰鏄剧ず鍋忕Щ閲 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long NameShowOffset { + get { return nameShowOffset_; } + set { + nameShowOffset_ = value; + } + } + + /// Field number for the "ShowRadius" field. + public const int ShowRadiusFieldNumber = 7; + private long showRadius_; + /// + /// 瀵硅薄鏄剧ず鍗婂緞 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long ShowRadius { + get { return showRadius_; } + set { + showRadius_ = value; + } + } + + /// Field number for the "Icon" field. + public const int IconFieldNumber = 8; + private string icon_ = ""; + /// + /// 瀵硅薄鍥炬爣 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Icon { + get { return icon_; } + set { + icon_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "Role" field. + public const int RoleFieldNumber = 9; + private string role_ = ""; + /// + /// 瀵硅薄瑙掕壊 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Role { + get { return role_; } + set { + role_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "ItemDepend" field. + public const int ItemDependFieldNumber = 10; + private string itemDepend_ = ""; + /// + /// 渚濊禆鐗╁搧 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ItemDepend { + get { return itemDepend_; } + set { + itemDepend_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "TakeTime" field. + public const int TakeTimeFieldNumber = 11; + private long takeTime_; + /// + /// 浜や簰銆佽鏉℃椂闂 -1 绔嬪嵆鎵ц + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long TakeTime { + get { return takeTime_; } + set { + takeTime_ = value; + } + } + + /// Field number for the "NeedPlayers" field. + public const int NeedPlayersFieldNumber = 12; + private string needPlayers_ = ""; + /// + /// 鍒ゅ畾鑼冨洿锛岀帺瀹舵暟閲忥紝鏄惁鍙搷浣滐紙褰撲汉鏁颁笉婊¤冻鏃讹級 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NeedPlayers { + get { return needPlayers_; } + set { + needPlayers_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "TaskStatus" field. + public const int TaskStatusFieldNumber = 13; + private string taskStatus_ = ""; + /// + /// 瀵瑰簲浜嬩欢ID + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string TaskStatus { + get { return taskStatus_; } + set { + taskStatus_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "SelectList" field. + public const int SelectListFieldNumber = 14; + private string selectList_ = ""; + /// + /// 閫夋嫨鍒楄〃 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string SelectList { + get { return selectList_; } + set { + selectList_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "OnOff" field. + public const int OnOffFieldNumber = 15; + private long onOff_; + /// + /// 鎿嶄綔鐘舵 0涓嶅彲鎿嶄綔 1 鍙搷浣 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long OnOff { + get { return onOff_; } + set { + onOff_ = value; + } + } + + /// Field number for the "Status" field. + public const int StatusFieldNumber = 16; + private string status_ = ""; + /// + /// 鐘舵 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Status { + get { return status_; } + set { + status_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "ResChange" field. + public const int ResChangeFieldNumber = 17; + private string resChange_ = ""; + /// + /// 璧勬簮鍙樺寲 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ResChange { + get { return resChange_; } + set { + resChange_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "ParallelControl" field. + public const int ParallelControlFieldNumber = 18; + private long parallelControl_; + /// + /// 鏄惁鏀寔澶氫汉鎿嶄綔 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long ParallelControl { + get { return parallelControl_; } + set { + parallelControl_ = value; + } + } + + /// Field number for the "ExtraValue" field. + public const int ExtraValueFieldNumber = 19; + private string extraValue_ = ""; + /// + /// 棰濆鍙傛暟 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ExtraValue { + get { return extraValue_; } + set { + extraValue_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "UserIds" field. + public const int UserIdsFieldNumber = 20; + private string userIds_ = ""; + /// + /// 鐜╁id鍒楄〃 閫楀彿鍒嗛殧 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string UserIds { + get { return userIds_; } + set { + userIds_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "CreateTime" field. + public const int CreateTimeFieldNumber = 21; + private string createTime_ = ""; + /// + /// 鍒涘缓鏃堕棿 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string CreateTime { + get { return createTime_; } + set { + createTime_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "UpdateTime" field. + public const int UpdateTimeFieldNumber = 22; + private string updateTime_ = ""; + /// + /// 鏇存柊鏃堕棿 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string UpdateTime { + get { return updateTime_; } + set { + updateTime_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "RoomId" field. + public const int RoomIdFieldNumber = 23; + private string roomId_ = ""; + /// + /// 鎴块棿ID + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string RoomId { + get { return roomId_; } + set { + roomId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ObjectOrmData); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ObjectOrmData other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (ObjectId != other.ObjectId) return false; + if (Note != other.Note) return false; + if (Type != other.Type) return false; + if (Name != other.Name) return false; + if (NameShowOffset != other.NameShowOffset) return false; + if (ShowRadius != other.ShowRadius) return false; + if (Icon != other.Icon) return false; + if (Role != other.Role) return false; + if (ItemDepend != other.ItemDepend) return false; + if (TakeTime != other.TakeTime) return false; + if (NeedPlayers != other.NeedPlayers) return false; + if (TaskStatus != other.TaskStatus) return false; + if (SelectList != other.SelectList) return false; + if (OnOff != other.OnOff) return false; + if (Status != other.Status) return false; + if (ResChange != other.ResChange) return false; + if (ParallelControl != other.ParallelControl) return false; + if (ExtraValue != other.ExtraValue) return false; + if (UserIds != other.UserIds) return false; + if (CreateTime != other.CreateTime) return false; + if (UpdateTime != other.UpdateTime) return false; + if (RoomId != other.RoomId) 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 (Id.Length != 0) hash ^= Id.GetHashCode(); + if (ObjectId.Length != 0) hash ^= ObjectId.GetHashCode(); + if (Note.Length != 0) hash ^= Note.GetHashCode(); + if (Type.Length != 0) hash ^= Type.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (NameShowOffset != 0L) hash ^= NameShowOffset.GetHashCode(); + if (ShowRadius != 0L) hash ^= ShowRadius.GetHashCode(); + if (Icon.Length != 0) hash ^= Icon.GetHashCode(); + if (Role.Length != 0) hash ^= Role.GetHashCode(); + if (ItemDepend.Length != 0) hash ^= ItemDepend.GetHashCode(); + if (TakeTime != 0L) hash ^= TakeTime.GetHashCode(); + if (NeedPlayers.Length != 0) hash ^= NeedPlayers.GetHashCode(); + if (TaskStatus.Length != 0) hash ^= TaskStatus.GetHashCode(); + if (SelectList.Length != 0) hash ^= SelectList.GetHashCode(); + if (OnOff != 0L) hash ^= OnOff.GetHashCode(); + if (Status.Length != 0) hash ^= Status.GetHashCode(); + if (ResChange.Length != 0) hash ^= ResChange.GetHashCode(); + if (ParallelControl != 0L) hash ^= ParallelControl.GetHashCode(); + if (ExtraValue.Length != 0) hash ^= ExtraValue.GetHashCode(); + if (UserIds.Length != 0) hash ^= UserIds.GetHashCode(); + if (CreateTime.Length != 0) hash ^= CreateTime.GetHashCode(); + if (UpdateTime.Length != 0) hash ^= UpdateTime.GetHashCode(); + if (RoomId.Length != 0) hash ^= RoomId.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 (Id.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Id); + } + if (ObjectId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(ObjectId); + } + if (Note.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Note); + } + if (Type.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Type); + } + if (Name.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Name); + } + if (NameShowOffset != 0L) { + output.WriteRawTag(48); + output.WriteInt64(NameShowOffset); + } + if (ShowRadius != 0L) { + output.WriteRawTag(56); + output.WriteInt64(ShowRadius); + } + if (Icon.Length != 0) { + output.WriteRawTag(66); + output.WriteString(Icon); + } + if (Role.Length != 0) { + output.WriteRawTag(74); + output.WriteString(Role); + } + if (ItemDepend.Length != 0) { + output.WriteRawTag(82); + output.WriteString(ItemDepend); + } + if (TakeTime != 0L) { + output.WriteRawTag(88); + output.WriteInt64(TakeTime); + } + if (NeedPlayers.Length != 0) { + output.WriteRawTag(98); + output.WriteString(NeedPlayers); + } + if (TaskStatus.Length != 0) { + output.WriteRawTag(106); + output.WriteString(TaskStatus); + } + if (SelectList.Length != 0) { + output.WriteRawTag(114); + output.WriteString(SelectList); + } + if (OnOff != 0L) { + output.WriteRawTag(120); + output.WriteInt64(OnOff); + } + if (Status.Length != 0) { + output.WriteRawTag(130, 1); + output.WriteString(Status); + } + if (ResChange.Length != 0) { + output.WriteRawTag(138, 1); + output.WriteString(ResChange); + } + if (ParallelControl != 0L) { + output.WriteRawTag(144, 1); + output.WriteInt64(ParallelControl); + } + if (ExtraValue.Length != 0) { + output.WriteRawTag(154, 1); + output.WriteString(ExtraValue); + } + if (UserIds.Length != 0) { + output.WriteRawTag(162, 1); + output.WriteString(UserIds); + } + if (CreateTime.Length != 0) { + output.WriteRawTag(170, 1); + output.WriteString(CreateTime); + } + if (UpdateTime.Length != 0) { + output.WriteRawTag(178, 1); + output.WriteString(UpdateTime); + } + if (RoomId.Length != 0) { + output.WriteRawTag(186, 1); + output.WriteString(RoomId); + } + 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 (Id.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Id); + } + if (ObjectId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(ObjectId); + } + if (Note.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Note); + } + if (Type.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Type); + } + if (Name.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Name); + } + if (NameShowOffset != 0L) { + output.WriteRawTag(48); + output.WriteInt64(NameShowOffset); + } + if (ShowRadius != 0L) { + output.WriteRawTag(56); + output.WriteInt64(ShowRadius); + } + if (Icon.Length != 0) { + output.WriteRawTag(66); + output.WriteString(Icon); + } + if (Role.Length != 0) { + output.WriteRawTag(74); + output.WriteString(Role); + } + if (ItemDepend.Length != 0) { + output.WriteRawTag(82); + output.WriteString(ItemDepend); + } + if (TakeTime != 0L) { + output.WriteRawTag(88); + output.WriteInt64(TakeTime); + } + if (NeedPlayers.Length != 0) { + output.WriteRawTag(98); + output.WriteString(NeedPlayers); + } + if (TaskStatus.Length != 0) { + output.WriteRawTag(106); + output.WriteString(TaskStatus); + } + if (SelectList.Length != 0) { + output.WriteRawTag(114); + output.WriteString(SelectList); + } + if (OnOff != 0L) { + output.WriteRawTag(120); + output.WriteInt64(OnOff); + } + if (Status.Length != 0) { + output.WriteRawTag(130, 1); + output.WriteString(Status); + } + if (ResChange.Length != 0) { + output.WriteRawTag(138, 1); + output.WriteString(ResChange); + } + if (ParallelControl != 0L) { + output.WriteRawTag(144, 1); + output.WriteInt64(ParallelControl); + } + if (ExtraValue.Length != 0) { + output.WriteRawTag(154, 1); + output.WriteString(ExtraValue); + } + if (UserIds.Length != 0) { + output.WriteRawTag(162, 1); + output.WriteString(UserIds); + } + if (CreateTime.Length != 0) { + output.WriteRawTag(170, 1); + output.WriteString(CreateTime); + } + if (UpdateTime.Length != 0) { + output.WriteRawTag(178, 1); + output.WriteString(UpdateTime); + } + if (RoomId.Length != 0) { + output.WriteRawTag(186, 1); + output.WriteString(RoomId); + } + 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 (Id.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Id); + } + if (ObjectId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ObjectId); + } + if (Note.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Note); + } + if (Type.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Type); + } + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (NameShowOffset != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(NameShowOffset); + } + if (ShowRadius != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(ShowRadius); + } + if (Icon.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Icon); + } + if (Role.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Role); + } + if (ItemDepend.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ItemDepend); + } + if (TakeTime != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(TakeTime); + } + if (NeedPlayers.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NeedPlayers); + } + if (TaskStatus.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TaskStatus); + } + if (SelectList.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(SelectList); + } + if (OnOff != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(OnOff); + } + if (Status.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(Status); + } + if (ResChange.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(ResChange); + } + if (ParallelControl != 0L) { + size += 2 + pb::CodedOutputStream.ComputeInt64Size(ParallelControl); + } + if (ExtraValue.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(ExtraValue); + } + if (UserIds.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(UserIds); + } + if (CreateTime.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(CreateTime); + } + if (UpdateTime.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(UpdateTime); + } + if (RoomId.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(RoomId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ObjectOrmData other) { + if (other == null) { + return; + } + if (other.Id.Length != 0) { + Id = other.Id; + } + if (other.ObjectId.Length != 0) { + ObjectId = other.ObjectId; + } + if (other.Note.Length != 0) { + Note = other.Note; + } + if (other.Type.Length != 0) { + Type = other.Type; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.NameShowOffset != 0L) { + NameShowOffset = other.NameShowOffset; + } + if (other.ShowRadius != 0L) { + ShowRadius = other.ShowRadius; + } + if (other.Icon.Length != 0) { + Icon = other.Icon; + } + if (other.Role.Length != 0) { + Role = other.Role; + } + if (other.ItemDepend.Length != 0) { + ItemDepend = other.ItemDepend; + } + if (other.TakeTime != 0L) { + TakeTime = other.TakeTime; + } + if (other.NeedPlayers.Length != 0) { + NeedPlayers = other.NeedPlayers; + } + if (other.TaskStatus.Length != 0) { + TaskStatus = other.TaskStatus; + } + if (other.SelectList.Length != 0) { + SelectList = other.SelectList; + } + if (other.OnOff != 0L) { + OnOff = other.OnOff; + } + if (other.Status.Length != 0) { + Status = other.Status; + } + if (other.ResChange.Length != 0) { + ResChange = other.ResChange; + } + if (other.ParallelControl != 0L) { + ParallelControl = other.ParallelControl; + } + if (other.ExtraValue.Length != 0) { + ExtraValue = other.ExtraValue; + } + if (other.UserIds.Length != 0) { + UserIds = other.UserIds; + } + if (other.CreateTime.Length != 0) { + CreateTime = other.CreateTime; + } + if (other.UpdateTime.Length != 0) { + UpdateTime = other.UpdateTime; + } + if (other.RoomId.Length != 0) { + RoomId = other.RoomId; + } + _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 10: { + Id = input.ReadString(); + break; + } + case 18: { + ObjectId = input.ReadString(); + break; + } + case 26: { + Note = input.ReadString(); + break; + } + case 34: { + Type = input.ReadString(); + break; + } + case 42: { + Name = input.ReadString(); + break; + } + case 48: { + NameShowOffset = input.ReadInt64(); + break; + } + case 56: { + ShowRadius = input.ReadInt64(); + break; + } + case 66: { + Icon = input.ReadString(); + break; + } + case 74: { + Role = input.ReadString(); + break; + } + case 82: { + ItemDepend = input.ReadString(); + break; + } + case 88: { + TakeTime = input.ReadInt64(); + break; + } + case 98: { + NeedPlayers = input.ReadString(); + break; + } + case 106: { + TaskStatus = input.ReadString(); + break; + } + case 114: { + SelectList = input.ReadString(); + break; + } + case 120: { + OnOff = input.ReadInt64(); + break; + } + case 130: { + Status = input.ReadString(); + break; + } + case 138: { + ResChange = input.ReadString(); + break; + } + case 144: { + ParallelControl = input.ReadInt64(); + break; + } + case 154: { + ExtraValue = input.ReadString(); + break; + } + case 162: { + UserIds = input.ReadString(); + break; + } + case 170: { + CreateTime = input.ReadString(); + break; + } + case 178: { + UpdateTime = input.ReadString(); + break; + } + case 186: { + RoomId = input.ReadString(); + 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 10: { + Id = input.ReadString(); + break; + } + case 18: { + ObjectId = input.ReadString(); + break; + } + case 26: { + Note = input.ReadString(); + break; + } + case 34: { + Type = input.ReadString(); + break; + } + case 42: { + Name = input.ReadString(); + break; + } + case 48: { + NameShowOffset = input.ReadInt64(); + break; + } + case 56: { + ShowRadius = input.ReadInt64(); + break; + } + case 66: { + Icon = input.ReadString(); + break; + } + case 74: { + Role = input.ReadString(); + break; + } + case 82: { + ItemDepend = input.ReadString(); + break; + } + case 88: { + TakeTime = input.ReadInt64(); + break; + } + case 98: { + NeedPlayers = input.ReadString(); + break; + } + case 106: { + TaskStatus = input.ReadString(); + break; + } + case 114: { + SelectList = input.ReadString(); + break; + } + case 120: { + OnOff = input.ReadInt64(); + break; + } + case 130: { + Status = input.ReadString(); + break; + } + case 138: { + ResChange = input.ReadString(); + break; + } + case 144: { + ParallelControl = input.ReadInt64(); + break; + } + case 154: { + ExtraValue = input.ReadString(); + break; + } + case 162: { + UserIds = input.ReadString(); + break; + } + case 170: { + CreateTime = input.ReadString(); + break; + } + case 178: { + UpdateTime = input.ReadString(); + break; + } + case 186: { + RoomId = input.ReadString(); + break; + } + } + } + } + #endif + +} + #endregion diff --git a/xiaofang/Assets/comm/test.cs b/xiaofang/Assets/comm/test.cs index 4ee36644..39114758 100644 --- a/xiaofang/Assets/comm/test.cs +++ b/xiaofang/Assets/comm/test.cs @@ -300,6 +300,7 @@ public class test : MonoBehaviour case "hall.BroadcastMessage": UserJoinResponse userJoinResponse = ProtoBufffer.DeSerialize(bytes); Debug.Log("玩家昵称:" + userJoinResponse.NickName + ",房间:" + userJoinResponse.RoomId.ToString() + ",用户角色"+ userJoinResponse.RoleName); + userJoinResponse. break; //