From 0dc89a3bef3f3eaa1d1e9be3189b70697b37f87c Mon Sep 17 00:00:00 2001 From: shurongsen <1799096798@qq.com> Date: Thu, 5 Dec 2024 16:25:46 +0800 Subject: [PATCH] add --- Proto/Common.cs | 281 -- Proto/Config.cs | 83 - Proto/Config.cs.meta | 11 - Proto/Fps.cs | 1099 ----- Proto/Hall.cs | 4875 ------------------- Proto/Hall.cs.meta | 11 - Proto/Join.cs | 2837 ----------- Proto/Join.cs.meta | 11 - Proto/MessageBroadcast.cs | 525 -- Proto/MessageBroadcast.cs.meta | 11 - Proto/Move.cs | 2008 -------- Proto/Move.cs.meta | 11 - Proto/Object.cs | 1497 ------ Proto/Object.cs.meta | 11 - Proto/Prop.cs | 1936 -------- Proto/Prop.cs.meta | 11 - Proto/Room.cs | 4094 ---------------- Proto/Room.cs.meta | 11 - Proto/Task.cs | 2826 ----------- Proto/Task.cs.meta | 11 - Proto/User.cs | 1031 ---- Proto/User.cs.meta | 11 - Proto/Ws.cs | 726 --- Proto/Ws.cs.meta | 11 - Role/Attack.cs | 84 + Proto/Fps.cs.meta => Role/Attack.cs.meta | 2 +- Role/Bullet.cs | 96 + Proto/Common.cs.meta => Role/Bullet.cs.meta | 2 +- Role/Fun.cs | 15 +- Role/Role.cs | 64 +- 30 files changed, 250 insertions(+), 23952 deletions(-) delete mode 100644 Proto/Common.cs delete mode 100644 Proto/Config.cs delete mode 100644 Proto/Config.cs.meta delete mode 100644 Proto/Fps.cs delete mode 100644 Proto/Hall.cs delete mode 100644 Proto/Hall.cs.meta delete mode 100644 Proto/Join.cs delete mode 100644 Proto/Join.cs.meta delete mode 100644 Proto/MessageBroadcast.cs delete mode 100644 Proto/MessageBroadcast.cs.meta delete mode 100644 Proto/Move.cs delete mode 100644 Proto/Move.cs.meta delete mode 100644 Proto/Object.cs delete mode 100644 Proto/Object.cs.meta delete mode 100644 Proto/Prop.cs delete mode 100644 Proto/Prop.cs.meta delete mode 100644 Proto/Room.cs delete mode 100644 Proto/Room.cs.meta delete mode 100644 Proto/Task.cs delete mode 100644 Proto/Task.cs.meta delete mode 100644 Proto/User.cs delete mode 100644 Proto/User.cs.meta delete mode 100644 Proto/Ws.cs delete mode 100644 Proto/Ws.cs.meta create mode 100644 Role/Attack.cs rename Proto/Fps.cs.meta => Role/Attack.cs.meta (83%) create mode 100644 Role/Bullet.cs rename Proto/Common.cs.meta => Role/Bullet.cs.meta (83%) diff --git a/Proto/Common.cs b/Proto/Common.cs deleted file mode 100644 index 4e10624..0000000 --- a/Proto/Common.cs +++ /dev/null @@ -1,281 +0,0 @@ -// -// 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/Proto/Config.cs b/Proto/Config.cs deleted file mode 100644 index 4b9a140..0000000 --- a/Proto/Config.cs +++ /dev/null @@ -1,83 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: config.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 config.proto -public static partial class ConfigReflection { - - #region Descriptor - /// File descriptor for config.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static ConfigReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cgxjb25maWcucHJvdG8qnQEKCkVSUk9SX0NPREUSCgoGRVJSX09rEAASEAoM", - "RVJSX05vUGxheWVyEAESDgoKRVJSX05vUm9vbRACEg0KCUVSUl9Ub2tlbhAE", - "Eg0KCUVSUl9Mb2dpbhAFEg4KCkVSUl9BY3Rpb24QBhIOCgpFUlJfUGFyYW1z", - "EAcSDgoKRVJSX1NlcnZlchAIEhMKD0VSUl9Ob0F1dGhvcml0eRAJQgdaBS4v", - "O3BiYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(new[] {typeof(global::ERROR_CODE), }, null, null)); - } - #endregion - -} -#region Enums -/// -///错误码 -/// -public enum ERROR_CODE { - /// - ///OK - /// - [pbr::OriginalName("ERR_Ok")] ErrOk = 0, - /// - ///没有这个玩家 - /// - [pbr::OriginalName("ERR_NoPlayer")] ErrNoPlayer = 1, - /// - ///加入房间失败 - /// - [pbr::OriginalName("ERR_NoRoom")] ErrNoRoom = 2, - /// - ///Token验证失败 - /// - [pbr::OriginalName("ERR_Token")] ErrToken = 4, - /// - ///登录失败 - /// - [pbr::OriginalName("ERR_Login")] ErrLogin = 5, - /// - ///操作失败 - /// - [pbr::OriginalName("ERR_Action")] ErrAction = 6, - /// - ///参数错误 - /// - [pbr::OriginalName("ERR_Params")] ErrParams = 7, - /// - ///服务器内部错误 - /// - [pbr::OriginalName("ERR_Server")] ErrServer = 8, - /// - ///没有权限 - /// - [pbr::OriginalName("ERR_NoAuthority")] ErrNoAuthority = 9, -} - -#endregion - - -#endregion Designer generated code diff --git a/Proto/Config.cs.meta b/Proto/Config.cs.meta deleted file mode 100644 index 40d31e9..0000000 --- a/Proto/Config.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 6249125b6bd7a964aa825c041b9cab82 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Proto/Fps.cs b/Proto/Fps.cs deleted file mode 100644 index b2a64f5..0000000 --- a/Proto/Fps.cs +++ /dev/null @@ -1,1099 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: fps.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 fps.proto -public static partial class FpsReflection { - - #region Descriptor - /// File descriptor for fps.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static FpsReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CglmcHMucHJvdG8iNgoRQnJvYWRjYXN0RnJhbWVNc2cSIQoGZnJhbWVzGAEg", - "AygLMhEuRnJhbWVEYXRhUmVxdWVzdCJPChBGcmFtZURhdGFSZXF1ZXN0EhQK", - "B2ZyYW1lSUQYASABKA1IAIgBARIZCgVpbnB1dBgCIAMoCzIKLklucHV0RGF0", - "YUIKCghfZnJhbWVJRCJpCglJbnB1dERhdGESCgoCaWQYASABKAkSCwoDc0lk", - "GAIgASgJEgkKAXgYAyABKAISCQoBeRgEIAEoAhISCgpyb29tU2VhdElkGAUg", - "ASgFEgkKAXoYBiABKAISDgoGcm9vbUlkGAggASgJIg8KDUVtcHR5UmVzcG9u", - "c2VCB1oFLi87cGJiBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::BroadcastFrameMsg), global::BroadcastFrameMsg.Parser, new[]{ "Frames" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::FrameDataRequest), global::FrameDataRequest.Parser, new[]{ "FrameID", "Input" }, new[]{ "FrameID" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::InputData), global::InputData.Parser, new[]{ "Id", "SId", "X", "Y", "RoomSeatId", "Z", "RoomId" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::EmptyResponse), global::EmptyResponse.Parser, null, null, null, null, null) - })); - } - #endregion - -} -#region Messages -/// -///广播帧消息 -/// -[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] -public sealed partial class BroadcastFrameMsg : pb::IMessage -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage -#endif -{ - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BroadcastFrameMsg()); - 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::FpsReflection.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 BroadcastFrameMsg() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public BroadcastFrameMsg(BroadcastFrameMsg other) : this() { - frames_ = other.frames_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public BroadcastFrameMsg Clone() { - return new BroadcastFrameMsg(this); - } - - /// Field number for the "frames" field. - public const int FramesFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_frames_codec - = pb::FieldCodec.ForMessage(10, global::FrameDataRequest.Parser); - private readonly pbc::RepeatedField frames_ = new pbc::RepeatedField(); - /// - ///帧数据 - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Frames { - get { return frames_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as BroadcastFrameMsg); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(BroadcastFrameMsg other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!frames_.Equals(other.frames_)) 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; - hash ^= frames_.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 - frames_.WriteTo(output, _repeated_frames_codec); - 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) { - frames_.WriteTo(ref output, _repeated_frames_codec); - 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; - size += frames_.CalculateSize(_repeated_frames_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(BroadcastFrameMsg other) { - if (other == null) { - return; - } - frames_.Add(other.frames_); - _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: { - frames_.AddEntriesFrom(input, _repeated_frames_codec); - 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: { - frames_.AddEntriesFrom(ref input, _repeated_frames_codec); - break; - } - } - } - } - #endif - -} - -/// -///帧数据 -/// -[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] -public sealed partial class FrameDataRequest : pb::IMessage -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage -#endif -{ - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FrameDataRequest()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [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::FpsReflection.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 FrameDataRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FrameDataRequest(FrameDataRequest other) : this() { - _hasBits0 = other._hasBits0; - frameID_ = other.frameID_; - input_ = other.input_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FrameDataRequest Clone() { - return new FrameDataRequest(this); - } - - /// Field number for the "frameID" field. - public const int FrameIDFieldNumber = 1; - private readonly static uint FrameIDDefaultValue = 0; - - private uint frameID_; - /// - ///帧ID - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint FrameID { - get { if ((_hasBits0 & 1) != 0) { return frameID_; } else { return FrameIDDefaultValue; } } - set { - _hasBits0 |= 1; - frameID_ = value; - } - } - /// Gets whether the "frameID" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasFrameID { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "frameID" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearFrameID() { - _hasBits0 &= ~1; - } - - /// Field number for the "input" field. - public const int InputFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_input_codec - = pb::FieldCodec.ForMessage(18, global::InputData.Parser); - private readonly pbc::RepeatedField input_ = new pbc::RepeatedField(); - /// - ///操作输入 - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Input { - get { return input_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as FrameDataRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(FrameDataRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (FrameID != other.FrameID) return false; - if(!input_.Equals(other.input_)) 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 (HasFrameID) hash ^= FrameID.GetHashCode(); - hash ^= input_.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 (HasFrameID) { - output.WriteRawTag(8); - output.WriteUInt32(FrameID); - } - input_.WriteTo(output, _repeated_input_codec); - 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 (HasFrameID) { - output.WriteRawTag(8); - output.WriteUInt32(FrameID); - } - input_.WriteTo(ref output, _repeated_input_codec); - 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 (HasFrameID) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(FrameID); - } - size += input_.CalculateSize(_repeated_input_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(FrameDataRequest other) { - if (other == null) { - return; - } - if (other.HasFrameID) { - FrameID = other.FrameID; - } - input_.Add(other.input_); - _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: { - FrameID = input.ReadUInt32(); - break; - } - case 18: { - input_.AddEntriesFrom(input, _repeated_input_codec); - 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: { - FrameID = input.ReadUInt32(); - break; - } - case 18: { - input_.AddEntriesFrom(ref input, _repeated_input_codec); - break; - } - } - } - } - #endif - -} - -/// -///帧存储操作输入 -/// -[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] -public sealed partial class InputData : pb::IMessage -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage -#endif -{ - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new InputData()); - 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::FpsReflection.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 InputData() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public InputData(InputData other) : this() { - id_ = other.id_; - sId_ = other.sId_; - x_ = other.x_; - y_ = other.y_; - roomSeatId_ = other.roomSeatId_; - z_ = other.z_; - roomId_ = other.roomId_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public InputData Clone() { - return new InputData(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 "sId" field. - public const int SIdFieldNumber = 2; - private string sId_ = ""; - /// - ///操作id - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string SId { - get { return sId_; } - set { - sId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "x" field. - public const int XFieldNumber = 3; - 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 = 4; - 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 "roomSeatId" field. - public const int RoomSeatIdFieldNumber = 5; - private int roomSeatId_; - /// - ///操作者的位置索引id(1~N) - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int RoomSeatId { - get { return roomSeatId_; } - set { - roomSeatId_ = 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 "roomId" field. - public const int RoomIdFieldNumber = 8; - 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 InputData); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(InputData other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Id != other.Id) return false; - if (SId != other.SId) return false; - if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(X, other.X)) return false; - if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Y, other.Y)) return false; - if (RoomSeatId != other.RoomSeatId) return false; - if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Z, other.Z)) 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 (SId.Length != 0) hash ^= SId.GetHashCode(); - if (X != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(X); - if (Y != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Y); - if (RoomSeatId != 0) hash ^= RoomSeatId.GetHashCode(); - if (Z != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Z); - 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 (SId.Length != 0) { - output.WriteRawTag(18); - output.WriteString(SId); - } - if (X != 0F) { - output.WriteRawTag(29); - output.WriteFloat(X); - } - if (Y != 0F) { - output.WriteRawTag(37); - output.WriteFloat(Y); - } - if (RoomSeatId != 0) { - output.WriteRawTag(40); - output.WriteInt32(RoomSeatId); - } - if (Z != 0F) { - output.WriteRawTag(53); - output.WriteFloat(Z); - } - if (RoomId.Length != 0) { - output.WriteRawTag(66); - 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 (SId.Length != 0) { - output.WriteRawTag(18); - output.WriteString(SId); - } - if (X != 0F) { - output.WriteRawTag(29); - output.WriteFloat(X); - } - if (Y != 0F) { - output.WriteRawTag(37); - output.WriteFloat(Y); - } - if (RoomSeatId != 0) { - output.WriteRawTag(40); - output.WriteInt32(RoomSeatId); - } - if (Z != 0F) { - output.WriteRawTag(53); - output.WriteFloat(Z); - } - if (RoomId.Length != 0) { - output.WriteRawTag(66); - 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 (SId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(SId); - } - if (X != 0F) { - size += 1 + 4; - } - if (Y != 0F) { - size += 1 + 4; - } - if (RoomSeatId != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(RoomSeatId); - } - if (Z != 0F) { - size += 1 + 4; - } - 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(InputData other) { - if (other == null) { - return; - } - if (other.Id.Length != 0) { - Id = other.Id; - } - if (other.SId.Length != 0) { - SId = other.SId; - } - if (other.X != 0F) { - X = other.X; - } - if (other.Y != 0F) { - Y = other.Y; - } - if (other.RoomSeatId != 0) { - RoomSeatId = other.RoomSeatId; - } - if (other.Z != 0F) { - Z = other.Z; - } - 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: { - SId = input.ReadString(); - break; - } - case 29: { - X = input.ReadFloat(); - break; - } - case 37: { - Y = input.ReadFloat(); - break; - } - case 40: { - RoomSeatId = input.ReadInt32(); - break; - } - case 53: { - Z = input.ReadFloat(); - break; - } - case 66: { - 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: { - SId = input.ReadString(); - break; - } - case 29: { - X = input.ReadFloat(); - break; - } - case 37: { - Y = input.ReadFloat(); - break; - } - case 40: { - RoomSeatId = input.ReadInt32(); - break; - } - case 53: { - Z = input.ReadFloat(); - break; - } - case 66: { - RoomId = input.ReadString(); - break; - } - } - } - } - #endif - -} - -/// -/// 空白消息 -/// -[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] -public sealed partial class EmptyResponse : pb::IMessage -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage -#endif -{ - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new EmptyResponse()); - 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::FpsReflection.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 EmptyResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public EmptyResponse(EmptyResponse other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public EmptyResponse Clone() { - return new EmptyResponse(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as EmptyResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(EmptyResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - 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 (_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 (_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 (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(EmptyResponse other) { - if (other == null) { - return; - } - _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; - } - } - #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; - } - } - } - #endif - -} - -#endregion - - -#endregion Designer generated code diff --git a/Proto/Hall.cs b/Proto/Hall.cs deleted file mode 100644 index 88f0975..0000000 --- a/Proto/Hall.cs +++ /dev/null @@ -1,4875 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: hall.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 hall.proto -public static partial class HallReflection { - - #region Descriptor - /// File descriptor for hall.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static HallReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CgpoYWxsLnByb3RvIi8KDExvZ2luUmVxdWVzdBIOCgZ1c2VySWQYASABKAkS", - "DwoHYWNjb3VudBgCIAEoCSIuCg1Mb2dpblJlc3BvbnNlEg8KB21lc3NhZ2UY", - "ASABKAkSDAoEY29kZRgCIAEoBSIfCgxIZWxsb1JlcXVlc3QSDwoHbWVzc2Fn", - "ZRgBIAEoCSIgCg1IZWxsb1Jlc3BvbnNlEg8KB21lc3NhZ2UYASABKAkiIQoP", - "Sm9pblJvb21SZXF1ZXN0Eg4KBnJvb21JZBgBIAEoCSJUChBKb2luUm9vbVJl", - "c3BvbnNlEg8KB21lc3NhZ2UYASABKAkSDAoEY29kZRgCIAEoBRIhCgRkYXRh", - "GAMgASgLMhMuUGxheWVySm9pblJlc3BvbnNlIrcDChJQbGF5ZXJKb2luUmVz", - "cG9uc2USEAoIVXNlck5hbWUYASABKAkSDgoGUm9vbUlkGAIgASgJEg4KBlN0", - "YXR1cxgDIAEoBRIQCghSb2xlTmFtZRgEIAEoCRIUCgxJc0xlYWRpbmdOUEMY", - "BSABKAUSDgoGT25saW5lGAYgASgIEg4KBlJvbGVJZBgHIAEoBRITCgtHcm91", - "cExlYWRlchgIIAEoBRISCgpBY3Rpb25Nb2RlGAkgASgFEg0KBUdyb3VwGAog", - "ASgFEgkKAVgYCyABKAISCQoBWRgMIAEoAhIJCgFaGA0gASgCEhMKC092ZXJz", - "ZWVDb25kGA4gASgJEhYKDlNlbmRGcmFtZUNvdW50GA8gASgFEhYKDk1vdmVT", - "cGVlZEZpcnN0GBAgASgFEhcKD01vdmVTcGVlZFNlY29uZBgRIAEoBRIWCg5N", - "b3ZlU3BlZWRUaGlyZBgSIAEoBRIQCghCZWFyTG9hZBgTIAEoBRISCgpQcm90", - "ZWN0aW9uGBQgASgFEg4KBkhlYWx0aBgVIAEoBRISCgpSb2xlU3RhdHVzGBYg", - "ASgFEg4KBlVzZXJJZBgXIAEoAyIpChNQcm9wVGVtcGxhdGVSZXF1ZXN0EhIK", - "CnRlbXBsYXRlSWQYASABKAMiSwoUUHJvcFRlbXBsYXRlUmVzcG9uc2USEgoK", - "VGVtcGxhdGVJZBgBIAEoAxILCgNOdW0YAiABKAMSEgoKTWF0ZXJpYWxJZBgD", - "IAEoAyI7Cg9QcGNQcm9wUmVzcG9uc2USKAoJcmVzcG9uc2VzGAEgAygLMhUu", - "UHJvcFRlbXBsYXRlUmVzcG9uc2UiWgoTUnBjUm9vbUluZm9SZXNwb25zZRIK", - "CgJJZBgBIAEoAxISCgpUZW1wbGF0ZUlkGAIgASgDEg4KBlN0YXR1cxgDIAEo", - "AxITCgtSZXNlcnZlRGF0ZRgEIAEoAyI5ChNVc2VyVGVtcGxhdGVSZXF1ZXN0", - "EhIKCnRlbXBsYXRlSWQYASABKAMSDgoGUm9vbUlkGAIgASgJIjgKDFVzZXJU", - "ZW1wbGF0ZRIoCglyZXNwb25zZXMYASADKAsyFS5Vc2VyVGVtcGxhdGVSZXNw", - "b25zZSKVAQoUVXNlclRlbXBsYXRlUmVzcG9uc2USDgoGUm9vbUlkGAEgASgD", - "Eg4KBlVzZXJJZBgCIAEoAxIOCgZTdGF0dXMYAyABKAUSEgoKVGVtcGxhdGVJ", - "ZBgEIAEoAxIOCgZSb2xlSWQYBSABKAMSEwoLQmlydGhBcmVhSWQYBiABKAMS", - "FAoMQ2hhcmdlQXJlYUlkGAcgASgDImIKD1VzZXJJbmZvUmVxdWVzdBIOCgZV", - "c2VySWQYASABKAMSDgoGU3RhdHVzGAIgASgFEg4KBlJvb21JZBgDIAEoCRIJ", - "CgF4GAQgASgCEgkKAXkYBSABKAISCQoBehgGIAEoAiISChBVc2VySW5mb1Jl", - "c3BvbnNlQgdaBS4vO3BiYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::LoginRequest), global::LoginRequest.Parser, new[]{ "UserId", "Account" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::LoginResponse), global::LoginResponse.Parser, new[]{ "Message", "Code" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::HelloRequest), global::HelloRequest.Parser, new[]{ "Message" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::HelloResponse), global::HelloResponse.Parser, new[]{ "Message" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::JoinRoomRequest), global::JoinRoomRequest.Parser, new[]{ "RoomId" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::JoinRoomResponse), global::JoinRoomResponse.Parser, new[]{ "Message", "Code", "Data" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::PlayerJoinResponse), global::PlayerJoinResponse.Parser, new[]{ "UserName", "RoomId", "Status", "RoleName", "IsLeadingNPC", "Online", "RoleId", "GroupLeader", "ActionMode", "Group", "X", "Y", "Z", "OverseeCond", "SendFrameCount", "MoveSpeedFirst", "MoveSpeedSecond", "MoveSpeedThird", "BearLoad", "Protection", "Health", "RoleStatus", "UserId" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::PropTemplateRequest), global::PropTemplateRequest.Parser, new[]{ "TemplateId" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::PropTemplateResponse), global::PropTemplateResponse.Parser, new[]{ "TemplateId", "Num", "MaterialId" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::PpcPropResponse), global::PpcPropResponse.Parser, new[]{ "Responses" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::RpcRoomInfoResponse), global::RpcRoomInfoResponse.Parser, new[]{ "Id", "TemplateId", "Status", "ReserveDate" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::UserTemplateRequest), global::UserTemplateRequest.Parser, new[]{ "TemplateId", "RoomId" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::UserTemplate), global::UserTemplate.Parser, new[]{ "Responses" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::UserTemplateResponse), global::UserTemplateResponse.Parser, new[]{ "RoomId", "UserId", "Status", "TemplateId", "RoleId", "BirthAreaId", "ChargeAreaId" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::UserInfoRequest), global::UserInfoRequest.Parser, new[]{ "UserId", "Status", "RoomId", "X", "Y", "Z" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::UserInfoResponse), global::UserInfoResponse.Parser, null, null, null, null, null) - })); - } - #endregion - -} -#region Messages -[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] -public sealed partial class LoginRequest : pb::IMessage -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage -#endif -{ - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new LoginRequest()); - 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::HallReflection.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 LoginRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public LoginRequest(LoginRequest other) : this() { - userId_ = other.userId_; - account_ = other.account_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public LoginRequest Clone() { - return new LoginRequest(this); - } - - /// Field number for the "userId" field. - public const int UserIdFieldNumber = 1; - private string userId_ = ""; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string UserId { - get { return userId_; } - set { - userId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "account" field. - public const int AccountFieldNumber = 2; - private string account_ = ""; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Account { - get { return account_; } - set { - account_ = 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 LoginRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(LoginRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (UserId != other.UserId) return false; - if (Account != other.Account) 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 (UserId.Length != 0) hash ^= UserId.GetHashCode(); - if (Account.Length != 0) hash ^= Account.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 (UserId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(UserId); - } - if (Account.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Account); - } - 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 (UserId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(UserId); - } - if (Account.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Account); - } - 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 (UserId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(UserId); - } - if (Account.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Account); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(LoginRequest other) { - if (other == null) { - return; - } - if (other.UserId.Length != 0) { - UserId = other.UserId; - } - if (other.Account.Length != 0) { - Account = other.Account; - } - _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: { - UserId = input.ReadString(); - break; - } - case 18: { - Account = 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: { - UserId = input.ReadString(); - break; - } - case 18: { - Account = input.ReadString(); - break; - } - } - } - } - #endif - -} - -[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] -public sealed partial class LoginResponse : pb::IMessage -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage -#endif -{ - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new LoginResponse()); - 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::HallReflection.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 LoginResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public LoginResponse(LoginResponse other) : this() { - message_ = other.message_; - code_ = other.code_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public LoginResponse Clone() { - return new LoginResponse(this); - } - - /// Field number for the "message" field. - public const int MessageFieldNumber = 1; - 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"); - } - } - - /// Field number for the "code" field. - public const int CodeFieldNumber = 2; - private int code_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int Code { - get { return code_; } - set { - code_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as LoginResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(LoginResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Message != other.Message) return false; - if (Code != other.Code) 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 (Message.Length != 0) hash ^= Message.GetHashCode(); - if (Code != 0) hash ^= Code.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 (Message.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Message); - } - if (Code != 0) { - output.WriteRawTag(16); - output.WriteInt32(Code); - } - 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 (Message.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Message); - } - if (Code != 0) { - output.WriteRawTag(16); - output.WriteInt32(Code); - } - 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 (Message.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Message); - } - if (Code != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(Code); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(LoginResponse other) { - if (other == null) { - return; - } - if (other.Message.Length != 0) { - Message = other.Message; - } - if (other.Code != 0) { - Code = other.Code; - } - _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: { - Message = input.ReadString(); - break; - } - case 16: { - Code = input.ReadInt32(); - 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: { - Message = input.ReadString(); - break; - } - case 16: { - Code = input.ReadInt32(); - break; - } - } - } - } - #endif - -} - -[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] -public sealed partial class HelloRequest : pb::IMessage -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage -#endif -{ - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new HelloRequest()); - 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::HallReflection.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 HelloRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public HelloRequest(HelloRequest other) : this() { - message_ = other.message_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public HelloRequest Clone() { - return new HelloRequest(this); - } - - /// Field number for the "message" field. - public const int MessageFieldNumber = 1; - 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 HelloRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(HelloRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - 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 (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 (Message.Length != 0) { - output.WriteRawTag(10); - 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 (Message.Length != 0) { - output.WriteRawTag(10); - 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 (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(HelloRequest other) { - if (other == null) { - return; - } - 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 10: { - 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 10: { - Message = input.ReadString(); - break; - } - } - } - } - #endif - -} - -[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] -public sealed partial class HelloResponse : pb::IMessage -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage -#endif -{ - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new HelloResponse()); - 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::HallReflection.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 HelloResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public HelloResponse(HelloResponse other) : this() { - message_ = other.message_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public HelloResponse Clone() { - return new HelloResponse(this); - } - - /// Field number for the "message" field. - public const int MessageFieldNumber = 1; - 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 HelloResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(HelloResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - 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 (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 (Message.Length != 0) { - output.WriteRawTag(10); - 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 (Message.Length != 0) { - output.WriteRawTag(10); - 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 (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(HelloResponse other) { - if (other == null) { - return; - } - 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 10: { - 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 10: { - Message = input.ReadString(); - break; - } - } - } - } - #endif - -} - -[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] -public sealed partial class JoinRoomRequest : pb::IMessage -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage -#endif -{ - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new JoinRoomRequest()); - 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::HallReflection.Descriptor.MessageTypes[4]; } - } - - [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 JoinRoomRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public JoinRoomRequest(JoinRoomRequest other) : this() { - roomId_ = other.roomId_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public JoinRoomRequest Clone() { - return new JoinRoomRequest(this); - } - - /// Field number for the "roomId" field. - public const int RoomIdFieldNumber = 1; - private string roomId_ = ""; - [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 JoinRoomRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(JoinRoomRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - 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 (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 (RoomId.Length != 0) { - output.WriteRawTag(10); - 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 (RoomId.Length != 0) { - output.WriteRawTag(10); - 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 (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(JoinRoomRequest other) { - if (other == null) { - return; - } - 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: { - 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: { - RoomId = input.ReadString(); - break; - } - } - } - } - #endif - -} - -[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] -public sealed partial class JoinRoomResponse : pb::IMessage -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage -#endif -{ - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new JoinRoomResponse()); - 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::HallReflection.Descriptor.MessageTypes[5]; } - } - - [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 JoinRoomResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public JoinRoomResponse(JoinRoomResponse other) : this() { - message_ = other.message_; - code_ = other.code_; - data_ = other.data_ != null ? other.data_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public JoinRoomResponse Clone() { - return new JoinRoomResponse(this); - } - - /// Field number for the "message" field. - public const int MessageFieldNumber = 1; - 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"); - } - } - - /// Field number for the "code" field. - public const int CodeFieldNumber = 2; - 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 "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 { - get { return data_; } - set { - data_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as JoinRoomResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(JoinRoomResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Message != other.Message) return false; - if (Code != other.Code) return false; - if (!object.Equals(Data, other.Data)) 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 (Message.Length != 0) hash ^= Message.GetHashCode(); - if (Code != 0) hash ^= Code.GetHashCode(); - if (data_ != null) hash ^= Data.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 (Message.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Message); - } - if (Code != 0) { - output.WriteRawTag(16); - output.WriteInt32(Code); - } - if (data_ != null) { - output.WriteRawTag(26); - output.WriteMessage(Data); - } - 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 (Message.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Message); - } - if (Code != 0) { - output.WriteRawTag(16); - output.WriteInt32(Code); - } - if (data_ != null) { - output.WriteRawTag(26); - output.WriteMessage(Data); - } - 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 (Message.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Message); - } - if (Code != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(Code); - } - if (data_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Data); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(JoinRoomResponse other) { - if (other == null) { - return; - } - if (other.Message.Length != 0) { - Message = other.Message; - } - if (other.Code != 0) { - Code = other.Code; - } - if (other.data_ != null) { - if (data_ == null) { - Data = new global::PlayerJoinResponse(); - } - Data.MergeFrom(other.Data); - } - _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: { - Message = input.ReadString(); - break; - } - case 16: { - Code = input.ReadInt32(); - break; - } - case 26: { - if (data_ == null) { - Data = new global::PlayerJoinResponse(); - } - input.ReadMessage(Data); - 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: { - Message = input.ReadString(); - break; - } - case 16: { - Code = input.ReadInt32(); - break; - } - case 26: { - if (data_ == null) { - Data = new global::PlayerJoinResponse(); - } - input.ReadMessage(Data); - break; - } - } - } - } - #endif - -} - -[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] -public sealed partial class PlayerJoinResponse : pb::IMessage -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage -#endif -{ - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PlayerJoinResponse()); - 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::HallReflection.Descriptor.MessageTypes[6]; } - } - - [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 PlayerJoinResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public PlayerJoinResponse(PlayerJoinResponse other) : this() { - userName_ = other.userName_; - roomId_ = other.roomId_; - status_ = other.status_; - roleName_ = other.roleName_; - isLeadingNPC_ = other.isLeadingNPC_; - online_ = other.online_; - roleId_ = other.roleId_; - groupLeader_ = other.groupLeader_; - actionMode_ = other.actionMode_; - group_ = other.group_; - x_ = other.x_; - y_ = other.y_; - z_ = other.z_; - overseeCond_ = other.overseeCond_; - sendFrameCount_ = other.sendFrameCount_; - moveSpeedFirst_ = other.moveSpeedFirst_; - moveSpeedSecond_ = other.moveSpeedSecond_; - moveSpeedThird_ = other.moveSpeedThird_; - bearLoad_ = other.bearLoad_; - protection_ = other.protection_; - health_ = other.health_; - roleStatus_ = other.roleStatus_; - userId_ = other.userId_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public PlayerJoinResponse Clone() { - return new PlayerJoinResponse(this); - } - - /// Field 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 { - get { return userName_; } - set { - userName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field 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 { - get { return roomId_; } - set { - roomId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field 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 { - get { return status_; } - set { - status_ = value; - } - } - - /// Field 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 { - get { return roleName_; } - set { - roleName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field 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 { - get { return isLeadingNPC_; } - set { - isLeadingNPC_ = value; - } - } - - /// Field 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 { - get { return online_; } - set { - online_ = value; - } - } - - /// Field 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 { - get { return roleId_; } - set { - roleId_ = value; - } - } - - /// Field 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 { - get { return groupLeader_; } - set { - groupLeader_ = value; - } - } - - /// Field 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 { - get { return actionMode_; } - set { - actionMode_ = value; - } - } - - /// Field 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 { - get { return group_; } - set { - group_ = value; - } - } - - /// Field 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 { - get { return x_; } - set { - x_ = value; - } - } - - /// Field 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 { - get { return y_; } - set { - y_ = value; - } - } - - /// Field 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 { - get { return z_; } - set { - z_ = value; - } - } - - /// Field 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 { - get { return overseeCond_; } - set { - overseeCond_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field 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 { - get { return sendFrameCount_; } - set { - sendFrameCount_ = value; - } - } - - /// Field 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 { - get { return moveSpeedFirst_; } - set { - moveSpeedFirst_ = value; - } - } - - /// Field 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 { - get { return moveSpeedSecond_; } - set { - moveSpeedSecond_ = value; - } - } - - /// Field 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 { - get { return moveSpeedThird_; } - set { - moveSpeedThird_ = value; - } - } - - /// Field 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 { - get { return bearLoad_; } - set { - bearLoad_ = value; - } - } - - /// Field 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 { - get { return protection_; } - set { - protection_ = value; - } - } - - /// Field 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 { - get { return health_; } - set { - health_ = value; - } - } - - /// Field number for the "RoleStatus" field. - public const int RoleStatusFieldNumber = 22; - private int roleStatus_; - /// - /// 角色状态 0正常 1行动受限 2负伤 3昏迷 4手受伤 - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int RoleStatus { - get { return roleStatus_; } - set { - roleStatus_ = value; - } - } - - /// Field 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 { - get { return userId_; } - set { - userId_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as PlayerJoinResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(PlayerJoinResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (UserName != other.UserName) return false; - if (RoomId != other.RoomId) return false; - if (Status != other.Status) return false; - if (RoleName != other.RoleName) return false; - if (IsLeadingNPC != other.IsLeadingNPC) return false; - if (Online != other.Online) return false; - if (RoleId != other.RoleId) return false; - if (GroupLeader != other.GroupLeader) return false; - if (ActionMode != other.ActionMode) return false; - if (Group != other.Group) 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 (OverseeCond != other.OverseeCond) return false; - if (SendFrameCount != other.SendFrameCount) return false; - if (MoveSpeedFirst != other.MoveSpeedFirst) return false; - if (MoveSpeedSecond != other.MoveSpeedSecond) return false; - if (MoveSpeedThird != other.MoveSpeedThird) return false; - if (BearLoad != other.BearLoad) return false; - if (Protection != other.Protection) return false; - if (Health != other.Health) return false; - if (RoleStatus != other.RoleStatus) return false; - if (UserId != other.UserId) 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 (UserName.Length != 0) hash ^= UserName.GetHashCode(); - if (RoomId.Length != 0) hash ^= RoomId.GetHashCode(); - if (Status != 0) hash ^= Status.GetHashCode(); - if (RoleName.Length != 0) hash ^= RoleName.GetHashCode(); - if (IsLeadingNPC != 0) hash ^= IsLeadingNPC.GetHashCode(); - if (Online != false) hash ^= Online.GetHashCode(); - if (RoleId != 0) hash ^= RoleId.GetHashCode(); - if (GroupLeader != 0) hash ^= GroupLeader.GetHashCode(); - if (ActionMode != 0) hash ^= ActionMode.GetHashCode(); - if (Group != 0) hash ^= Group.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 (OverseeCond.Length != 0) hash ^= OverseeCond.GetHashCode(); - if (SendFrameCount != 0) hash ^= SendFrameCount.GetHashCode(); - if (MoveSpeedFirst != 0) hash ^= MoveSpeedFirst.GetHashCode(); - if (MoveSpeedSecond != 0) hash ^= MoveSpeedSecond.GetHashCode(); - if (MoveSpeedThird != 0) hash ^= MoveSpeedThird.GetHashCode(); - if (BearLoad != 0) hash ^= BearLoad.GetHashCode(); - if (Protection != 0) hash ^= Protection.GetHashCode(); - if (Health != 0) hash ^= Health.GetHashCode(); - if (RoleStatus != 0) hash ^= RoleStatus.GetHashCode(); - if (UserId != 0L) hash ^= UserId.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 (UserName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(UserName); - } - if (RoomId.Length != 0) { - output.WriteRawTag(18); - output.WriteString(RoomId); - } - if (Status != 0) { - output.WriteRawTag(24); - output.WriteInt32(Status); - } - if (RoleName.Length != 0) { - output.WriteRawTag(34); - output.WriteString(RoleName); - } - if (IsLeadingNPC != 0) { - output.WriteRawTag(40); - output.WriteInt32(IsLeadingNPC); - } - if (Online != false) { - output.WriteRawTag(48); - output.WriteBool(Online); - } - if (RoleId != 0) { - output.WriteRawTag(56); - output.WriteInt32(RoleId); - } - if (GroupLeader != 0) { - output.WriteRawTag(64); - output.WriteInt32(GroupLeader); - } - if (ActionMode != 0) { - output.WriteRawTag(72); - output.WriteInt32(ActionMode); - } - if (Group != 0) { - output.WriteRawTag(80); - output.WriteInt32(Group); - } - if (X != 0F) { - output.WriteRawTag(93); - output.WriteFloat(X); - } - if (Y != 0F) { - output.WriteRawTag(101); - output.WriteFloat(Y); - } - if (Z != 0F) { - output.WriteRawTag(109); - output.WriteFloat(Z); - } - if (OverseeCond.Length != 0) { - output.WriteRawTag(114); - output.WriteString(OverseeCond); - } - if (SendFrameCount != 0) { - output.WriteRawTag(120); - output.WriteInt32(SendFrameCount); - } - if (MoveSpeedFirst != 0) { - output.WriteRawTag(128, 1); - output.WriteInt32(MoveSpeedFirst); - } - if (MoveSpeedSecond != 0) { - output.WriteRawTag(136, 1); - output.WriteInt32(MoveSpeedSecond); - } - if (MoveSpeedThird != 0) { - output.WriteRawTag(144, 1); - output.WriteInt32(MoveSpeedThird); - } - if (BearLoad != 0) { - output.WriteRawTag(152, 1); - output.WriteInt32(BearLoad); - } - if (Protection != 0) { - output.WriteRawTag(160, 1); - output.WriteInt32(Protection); - } - if (Health != 0) { - output.WriteRawTag(168, 1); - output.WriteInt32(Health); - } - if (RoleStatus != 0) { - output.WriteRawTag(176, 1); - output.WriteInt32(RoleStatus); - } - if (UserId != 0L) { - output.WriteRawTag(184, 1); - output.WriteInt64(UserId); - } - 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 (UserName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(UserName); - } - if (RoomId.Length != 0) { - output.WriteRawTag(18); - output.WriteString(RoomId); - } - if (Status != 0) { - output.WriteRawTag(24); - output.WriteInt32(Status); - } - if (RoleName.Length != 0) { - output.WriteRawTag(34); - output.WriteString(RoleName); - } - if (IsLeadingNPC != 0) { - output.WriteRawTag(40); - output.WriteInt32(IsLeadingNPC); - } - if (Online != false) { - output.WriteRawTag(48); - output.WriteBool(Online); - } - if (RoleId != 0) { - output.WriteRawTag(56); - output.WriteInt32(RoleId); - } - if (GroupLeader != 0) { - output.WriteRawTag(64); - output.WriteInt32(GroupLeader); - } - if (ActionMode != 0) { - output.WriteRawTag(72); - output.WriteInt32(ActionMode); - } - if (Group != 0) { - output.WriteRawTag(80); - output.WriteInt32(Group); - } - if (X != 0F) { - output.WriteRawTag(93); - output.WriteFloat(X); - } - if (Y != 0F) { - output.WriteRawTag(101); - output.WriteFloat(Y); - } - if (Z != 0F) { - output.WriteRawTag(109); - output.WriteFloat(Z); - } - if (OverseeCond.Length != 0) { - output.WriteRawTag(114); - output.WriteString(OverseeCond); - } - if (SendFrameCount != 0) { - output.WriteRawTag(120); - output.WriteInt32(SendFrameCount); - } - if (MoveSpeedFirst != 0) { - output.WriteRawTag(128, 1); - output.WriteInt32(MoveSpeedFirst); - } - if (MoveSpeedSecond != 0) { - output.WriteRawTag(136, 1); - output.WriteInt32(MoveSpeedSecond); - } - if (MoveSpeedThird != 0) { - output.WriteRawTag(144, 1); - output.WriteInt32(MoveSpeedThird); - } - if (BearLoad != 0) { - output.WriteRawTag(152, 1); - output.WriteInt32(BearLoad); - } - if (Protection != 0) { - output.WriteRawTag(160, 1); - output.WriteInt32(Protection); - } - if (Health != 0) { - output.WriteRawTag(168, 1); - output.WriteInt32(Health); - } - if (RoleStatus != 0) { - output.WriteRawTag(176, 1); - output.WriteInt32(RoleStatus); - } - if (UserId != 0L) { - output.WriteRawTag(184, 1); - output.WriteInt64(UserId); - } - 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 (UserName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(UserName); - } - if (RoomId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(RoomId); - } - if (Status != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(Status); - } - if (RoleName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(RoleName); - } - if (IsLeadingNPC != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(IsLeadingNPC); - } - if (Online != false) { - size += 1 + 1; - } - if (RoleId != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(RoleId); - } - if (GroupLeader != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(GroupLeader); - } - if (ActionMode != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(ActionMode); - } - if (Group != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(Group); - } - if (X != 0F) { - size += 1 + 4; - } - if (Y != 0F) { - size += 1 + 4; - } - if (Z != 0F) { - size += 1 + 4; - } - if (OverseeCond.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(OverseeCond); - } - if (SendFrameCount != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(SendFrameCount); - } - if (MoveSpeedFirst != 0) { - size += 2 + pb::CodedOutputStream.ComputeInt32Size(MoveSpeedFirst); - } - if (MoveSpeedSecond != 0) { - size += 2 + pb::CodedOutputStream.ComputeInt32Size(MoveSpeedSecond); - } - if (MoveSpeedThird != 0) { - size += 2 + pb::CodedOutputStream.ComputeInt32Size(MoveSpeedThird); - } - if (BearLoad != 0) { - size += 2 + pb::CodedOutputStream.ComputeInt32Size(BearLoad); - } - if (Protection != 0) { - size += 2 + pb::CodedOutputStream.ComputeInt32Size(Protection); - } - if (Health != 0) { - size += 2 + pb::CodedOutputStream.ComputeInt32Size(Health); - } - if (RoleStatus != 0) { - size += 2 + pb::CodedOutputStream.ComputeInt32Size(RoleStatus); - } - if (UserId != 0L) { - size += 2 + pb::CodedOutputStream.ComputeInt64Size(UserId); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(PlayerJoinResponse other) { - if (other == null) { - return; - } - if (other.UserName.Length != 0) { - UserName = other.UserName; - } - if (other.RoomId.Length != 0) { - RoomId = other.RoomId; - } - if (other.Status != 0) { - Status = other.Status; - } - if (other.RoleName.Length != 0) { - RoleName = other.RoleName; - } - if (other.IsLeadingNPC != 0) { - IsLeadingNPC = other.IsLeadingNPC; - } - if (other.Online != false) { - Online = other.Online; - } - if (other.RoleId != 0) { - RoleId = other.RoleId; - } - if (other.GroupLeader != 0) { - GroupLeader = other.GroupLeader; - } - if (other.ActionMode != 0) { - ActionMode = other.ActionMode; - } - if (other.Group != 0) { - Group = other.Group; - } - if (other.X != 0F) { - X = other.X; - } - if (other.Y != 0F) { - Y = other.Y; - } - if (other.Z != 0F) { - Z = other.Z; - } - if (other.OverseeCond.Length != 0) { - OverseeCond = other.OverseeCond; - } - if (other.SendFrameCount != 0) { - SendFrameCount = other.SendFrameCount; - } - if (other.MoveSpeedFirst != 0) { - MoveSpeedFirst = other.MoveSpeedFirst; - } - if (other.MoveSpeedSecond != 0) { - MoveSpeedSecond = other.MoveSpeedSecond; - } - if (other.MoveSpeedThird != 0) { - MoveSpeedThird = other.MoveSpeedThird; - } - if (other.BearLoad != 0) { - BearLoad = other.BearLoad; - } - if (other.Protection != 0) { - Protection = other.Protection; - } - if (other.Health != 0) { - Health = other.Health; - } - if (other.RoleStatus != 0) { - RoleStatus = other.RoleStatus; - } - if (other.UserId != 0L) { - UserId = other.UserId; - } - _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: { - UserName = input.ReadString(); - break; - } - case 18: { - RoomId = input.ReadString(); - break; - } - case 24: { - Status = input.ReadInt32(); - break; - } - case 34: { - RoleName = input.ReadString(); - break; - } - case 40: { - IsLeadingNPC = input.ReadInt32(); - break; - } - case 48: { - Online = input.ReadBool(); - break; - } - case 56: { - RoleId = input.ReadInt32(); - break; - } - case 64: { - GroupLeader = input.ReadInt32(); - break; - } - case 72: { - ActionMode = input.ReadInt32(); - break; - } - case 80: { - Group = input.ReadInt32(); - break; - } - case 93: { - X = input.ReadFloat(); - break; - } - case 101: { - Y = input.ReadFloat(); - break; - } - case 109: { - Z = input.ReadFloat(); - break; - } - case 114: { - OverseeCond = input.ReadString(); - break; - } - case 120: { - SendFrameCount = input.ReadInt32(); - break; - } - case 128: { - MoveSpeedFirst = input.ReadInt32(); - break; - } - case 136: { - MoveSpeedSecond = input.ReadInt32(); - break; - } - case 144: { - MoveSpeedThird = input.ReadInt32(); - break; - } - case 152: { - BearLoad = input.ReadInt32(); - break; - } - case 160: { - Protection = input.ReadInt32(); - break; - } - case 168: { - Health = input.ReadInt32(); - break; - } - case 176: { - RoleStatus = input.ReadInt32(); - break; - } - case 184: { - UserId = input.ReadInt64(); - 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: { - UserName = input.ReadString(); - break; - } - case 18: { - RoomId = input.ReadString(); - break; - } - case 24: { - Status = input.ReadInt32(); - break; - } - case 34: { - RoleName = input.ReadString(); - break; - } - case 40: { - IsLeadingNPC = input.ReadInt32(); - break; - } - case 48: { - Online = input.ReadBool(); - break; - } - case 56: { - RoleId = input.ReadInt32(); - break; - } - case 64: { - GroupLeader = input.ReadInt32(); - break; - } - case 72: { - ActionMode = input.ReadInt32(); - break; - } - case 80: { - Group = input.ReadInt32(); - break; - } - case 93: { - X = input.ReadFloat(); - break; - } - case 101: { - Y = input.ReadFloat(); - break; - } - case 109: { - Z = input.ReadFloat(); - break; - } - case 114: { - OverseeCond = input.ReadString(); - break; - } - case 120: { - SendFrameCount = input.ReadInt32(); - break; - } - case 128: { - MoveSpeedFirst = input.ReadInt32(); - break; - } - case 136: { - MoveSpeedSecond = input.ReadInt32(); - break; - } - case 144: { - MoveSpeedThird = input.ReadInt32(); - break; - } - case 152: { - BearLoad = input.ReadInt32(); - break; - } - case 160: { - Protection = input.ReadInt32(); - break; - } - case 168: { - Health = input.ReadInt32(); - break; - } - case 176: { - RoleStatus = input.ReadInt32(); - break; - } - case 184: { - UserId = input.ReadInt64(); - break; - } - } - } - } - #endif - -} - -[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] -public sealed partial class PropTemplateRequest : pb::IMessage -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage -#endif -{ - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PropTemplateRequest()); - 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::HallReflection.Descriptor.MessageTypes[7]; } - } - - [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 PropTemplateRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public PropTemplateRequest(PropTemplateRequest other) : this() { - templateId_ = other.templateId_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public PropTemplateRequest Clone() { - return new PropTemplateRequest(this); - } - - /// Field number for the "templateId" field. - public const int TemplateIdFieldNumber = 1; - private long templateId_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long TemplateId { - get { return templateId_; } - set { - templateId_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as PropTemplateRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(PropTemplateRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (TemplateId != other.TemplateId) 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 (TemplateId != 0L) hash ^= TemplateId.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 (TemplateId != 0L) { - output.WriteRawTag(8); - output.WriteInt64(TemplateId); - } - 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 (TemplateId != 0L) { - output.WriteRawTag(8); - output.WriteInt64(TemplateId); - } - 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 (TemplateId != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(TemplateId); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(PropTemplateRequest other) { - if (other == null) { - return; - } - if (other.TemplateId != 0L) { - TemplateId = other.TemplateId; - } - _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: { - TemplateId = input.ReadInt64(); - 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: { - TemplateId = input.ReadInt64(); - break; - } - } - } - } - #endif - -} - -[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] -public sealed partial class PropTemplateResponse : pb::IMessage -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage -#endif -{ - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PropTemplateResponse()); - 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::HallReflection.Descriptor.MessageTypes[8]; } - } - - [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 PropTemplateResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public PropTemplateResponse(PropTemplateResponse other) : this() { - templateId_ = other.templateId_; - num_ = other.num_; - materialId_ = other.materialId_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public PropTemplateResponse Clone() { - return new PropTemplateResponse(this); - } - - /// Field number for the "TemplateId" field. - public const int TemplateIdFieldNumber = 1; - 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 "Num" field. - public const int NumFieldNumber = 2; - private long num_; - /// - /// 道具数量 - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long Num { - get { return num_; } - set { - num_ = value; - } - } - - /// Field number for the "MaterialId" field. - public const int MaterialIdFieldNumber = 3; - private long materialId_; - /// - /// 材料id - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long MaterialId { - get { return materialId_; } - set { - materialId_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as PropTemplateResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(PropTemplateResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (TemplateId != other.TemplateId) return false; - if (Num != other.Num) return false; - if (MaterialId != other.MaterialId) 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 (TemplateId != 0L) hash ^= TemplateId.GetHashCode(); - if (Num != 0L) hash ^= Num.GetHashCode(); - if (MaterialId != 0L) hash ^= MaterialId.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 (TemplateId != 0L) { - output.WriteRawTag(8); - output.WriteInt64(TemplateId); - } - if (Num != 0L) { - output.WriteRawTag(16); - output.WriteInt64(Num); - } - if (MaterialId != 0L) { - output.WriteRawTag(24); - output.WriteInt64(MaterialId); - } - 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 (TemplateId != 0L) { - output.WriteRawTag(8); - output.WriteInt64(TemplateId); - } - if (Num != 0L) { - output.WriteRawTag(16); - output.WriteInt64(Num); - } - if (MaterialId != 0L) { - output.WriteRawTag(24); - output.WriteInt64(MaterialId); - } - 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 (TemplateId != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(TemplateId); - } - if (Num != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(Num); - } - if (MaterialId != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(MaterialId); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(PropTemplateResponse other) { - if (other == null) { - return; - } - if (other.TemplateId != 0L) { - TemplateId = other.TemplateId; - } - if (other.Num != 0L) { - Num = other.Num; - } - if (other.MaterialId != 0L) { - MaterialId = other.MaterialId; - } - _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: { - TemplateId = input.ReadInt64(); - break; - } - case 16: { - Num = input.ReadInt64(); - break; - } - case 24: { - MaterialId = input.ReadInt64(); - 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: { - TemplateId = input.ReadInt64(); - break; - } - case 16: { - Num = input.ReadInt64(); - break; - } - case 24: { - MaterialId = input.ReadInt64(); - break; - } - } - } - } - #endif - -} - -[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] -public sealed partial class PpcPropResponse : pb::IMessage -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage -#endif -{ - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PpcPropResponse()); - 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::HallReflection.Descriptor.MessageTypes[9]; } - } - - [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 PpcPropResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public PpcPropResponse(PpcPropResponse other) : this() { - responses_ = other.responses_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public PpcPropResponse Clone() { - return new PpcPropResponse(this); - } - - /// Field number for the "responses" field. - public const int ResponsesFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_responses_codec - = pb::FieldCodec.ForMessage(10, global::PropTemplateResponse.Parser); - private readonly pbc::RepeatedField responses_ = new pbc::RepeatedField(); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Responses { - get { return responses_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as PpcPropResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(PpcPropResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!responses_.Equals(other.responses_)) 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; - hash ^= responses_.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 - responses_.WriteTo(output, _repeated_responses_codec); - 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) { - responses_.WriteTo(ref output, _repeated_responses_codec); - 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; - size += responses_.CalculateSize(_repeated_responses_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(PpcPropResponse other) { - if (other == null) { - return; - } - responses_.Add(other.responses_); - _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: { - responses_.AddEntriesFrom(input, _repeated_responses_codec); - 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: { - responses_.AddEntriesFrom(ref input, _repeated_responses_codec); - break; - } - } - } - } - #endif - -} - -[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] -public sealed partial class RpcRoomInfoResponse : pb::IMessage -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage -#endif -{ - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RpcRoomInfoResponse()); - 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::HallReflection.Descriptor.MessageTypes[10]; } - } - - [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 RpcRoomInfoResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public RpcRoomInfoResponse(RpcRoomInfoResponse other) : this() { - id_ = other.id_; - templateId_ = other.templateId_; - status_ = other.status_; - reserveDate_ = other.reserveDate_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public RpcRoomInfoResponse Clone() { - return new RpcRoomInfoResponse(this); - } - - /// Field number for the "Id" field. - public const int IdFieldNumber = 1; - private long id_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long Id { - get { return id_; } - set { - id_ = value; - } - } - - /// Field number for the "TemplateId" field. - public const int TemplateIdFieldNumber = 2; - private long templateId_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long TemplateId { - get { return templateId_; } - set { - templateId_ = value; - } - } - - /// Field number for the "Status" field. - public const int StatusFieldNumber = 3; - private long status_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long Status { - get { return status_; } - set { - status_ = value; - } - } - - /// Field number for the "ReserveDate" field. - public const int ReserveDateFieldNumber = 4; - private long reserveDate_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long ReserveDate { - get { return reserveDate_; } - set { - reserveDate_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as RpcRoomInfoResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(RpcRoomInfoResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Id != other.Id) return false; - if (TemplateId != other.TemplateId) return false; - if (Status != other.Status) return false; - if (ReserveDate != other.ReserveDate) 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 != 0L) hash ^= Id.GetHashCode(); - if (TemplateId != 0L) hash ^= TemplateId.GetHashCode(); - if (Status != 0L) hash ^= Status.GetHashCode(); - if (ReserveDate != 0L) hash ^= ReserveDate.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 != 0L) { - output.WriteRawTag(8); - output.WriteInt64(Id); - } - if (TemplateId != 0L) { - output.WriteRawTag(16); - output.WriteInt64(TemplateId); - } - if (Status != 0L) { - output.WriteRawTag(24); - output.WriteInt64(Status); - } - if (ReserveDate != 0L) { - output.WriteRawTag(32); - output.WriteInt64(ReserveDate); - } - 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 != 0L) { - output.WriteRawTag(8); - output.WriteInt64(Id); - } - if (TemplateId != 0L) { - output.WriteRawTag(16); - output.WriteInt64(TemplateId); - } - if (Status != 0L) { - output.WriteRawTag(24); - output.WriteInt64(Status); - } - if (ReserveDate != 0L) { - output.WriteRawTag(32); - output.WriteInt64(ReserveDate); - } - 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 != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(Id); - } - if (TemplateId != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(TemplateId); - } - if (Status != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(Status); - } - if (ReserveDate != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(ReserveDate); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(RpcRoomInfoResponse other) { - if (other == null) { - return; - } - if (other.Id != 0L) { - Id = other.Id; - } - if (other.TemplateId != 0L) { - TemplateId = other.TemplateId; - } - if (other.Status != 0L) { - Status = other.Status; - } - if (other.ReserveDate != 0L) { - ReserveDate = other.ReserveDate; - } - _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: { - Id = input.ReadInt64(); - break; - } - case 16: { - TemplateId = input.ReadInt64(); - break; - } - case 24: { - Status = input.ReadInt64(); - break; - } - case 32: { - ReserveDate = input.ReadInt64(); - 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: { - Id = input.ReadInt64(); - break; - } - case 16: { - TemplateId = input.ReadInt64(); - break; - } - case 24: { - Status = input.ReadInt64(); - break; - } - case 32: { - ReserveDate = input.ReadInt64(); - break; - } - } - } - } - #endif - -} - -[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] -public sealed partial class UserTemplateRequest : pb::IMessage -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage -#endif -{ - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UserTemplateRequest()); - 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::HallReflection.Descriptor.MessageTypes[11]; } - } - - [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 UserTemplateRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UserTemplateRequest(UserTemplateRequest other) : this() { - templateId_ = other.templateId_; - roomId_ = other.roomId_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UserTemplateRequest Clone() { - return new UserTemplateRequest(this); - } - - /// Field number for the "templateId" field. - public const int TemplateIdFieldNumber = 1; - private long templateId_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long TemplateId { - get { return templateId_; } - set { - templateId_ = value; - } - } - - /// Field number for the "RoomId" field. - public const int RoomIdFieldNumber = 2; - private string roomId_ = ""; - [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 UserTemplateRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(UserTemplateRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (TemplateId != other.TemplateId) 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 (TemplateId != 0L) hash ^= TemplateId.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 (TemplateId != 0L) { - output.WriteRawTag(8); - output.WriteInt64(TemplateId); - } - if (RoomId.Length != 0) { - output.WriteRawTag(18); - 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 (TemplateId != 0L) { - output.WriteRawTag(8); - output.WriteInt64(TemplateId); - } - if (RoomId.Length != 0) { - output.WriteRawTag(18); - 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 (TemplateId != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(TemplateId); - } - 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(UserTemplateRequest other) { - if (other == null) { - return; - } - if (other.TemplateId != 0L) { - TemplateId = other.TemplateId; - } - 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 8: { - TemplateId = input.ReadInt64(); - break; - } - case 18: { - 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 8: { - TemplateId = input.ReadInt64(); - break; - } - case 18: { - RoomId = input.ReadString(); - break; - } - } - } - } - #endif - -} - -[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] -public sealed partial class UserTemplate : pb::IMessage -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage -#endif -{ - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UserTemplate()); - 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::HallReflection.Descriptor.MessageTypes[12]; } - } - - [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 UserTemplate() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UserTemplate(UserTemplate other) : this() { - responses_ = other.responses_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UserTemplate Clone() { - return new UserTemplate(this); - } - - /// Field number for the "responses" field. - public const int ResponsesFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_responses_codec - = pb::FieldCodec.ForMessage(10, global::UserTemplateResponse.Parser); - private readonly pbc::RepeatedField responses_ = new pbc::RepeatedField(); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Responses { - get { return responses_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as UserTemplate); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(UserTemplate other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!responses_.Equals(other.responses_)) 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; - hash ^= responses_.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 - responses_.WriteTo(output, _repeated_responses_codec); - 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) { - responses_.WriteTo(ref output, _repeated_responses_codec); - 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; - size += responses_.CalculateSize(_repeated_responses_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(UserTemplate other) { - if (other == null) { - return; - } - responses_.Add(other.responses_); - _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: { - responses_.AddEntriesFrom(input, _repeated_responses_codec); - 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: { - responses_.AddEntriesFrom(ref input, _repeated_responses_codec); - break; - } - } - } - } - #endif - -} - -[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] -public sealed partial class UserTemplateResponse : pb::IMessage -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage -#endif -{ - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UserTemplateResponse()); - 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::HallReflection.Descriptor.MessageTypes[13]; } - } - - [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 UserTemplateResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UserTemplateResponse(UserTemplateResponse other) : this() { - roomId_ = other.roomId_; - userId_ = other.userId_; - status_ = other.status_; - templateId_ = other.templateId_; - roleId_ = other.roleId_; - birthAreaId_ = other.birthAreaId_; - chargeAreaId_ = other.chargeAreaId_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UserTemplateResponse Clone() { - return new UserTemplateResponse(this); - } - - /// Field number for the "RoomId" field. - public const int RoomIdFieldNumber = 1; - private long roomId_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long RoomId { - get { return roomId_; } - set { - roomId_ = value; - } - } - - /// Field number for the "UserId" field. - public const int UserIdFieldNumber = 2; - private long userId_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long UserId { - get { return userId_; } - set { - userId_ = value; - } - } - - /// Field number for the "Status" field. - public const int StatusFieldNumber = 3; - private int status_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int Status { - get { return status_; } - set { - status_ = value; - } - } - - /// Field number for the "TemplateId" field. - public const int TemplateIdFieldNumber = 4; - private long templateId_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long TemplateId { - get { return templateId_; } - set { - templateId_ = value; - } - } - - /// Field number for the "RoleId" field. - public const int RoleIdFieldNumber = 5; - private long roleId_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long RoleId { - get { return roleId_; } - set { - roleId_ = value; - } - } - - /// Field number for the "BirthAreaId" field. - public const int BirthAreaIdFieldNumber = 6; - private long birthAreaId_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long BirthAreaId { - get { return birthAreaId_; } - set { - birthAreaId_ = value; - } - } - - /// Field number for the "ChargeAreaId" field. - public const int ChargeAreaIdFieldNumber = 7; - private long chargeAreaId_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long ChargeAreaId { - get { return chargeAreaId_; } - set { - chargeAreaId_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as UserTemplateResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(UserTemplateResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (RoomId != other.RoomId) return false; - if (UserId != other.UserId) return false; - if (Status != other.Status) return false; - if (TemplateId != other.TemplateId) return false; - if (RoleId != other.RoleId) return false; - if (BirthAreaId != other.BirthAreaId) return false; - if (ChargeAreaId != other.ChargeAreaId) 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 != 0L) hash ^= RoomId.GetHashCode(); - if (UserId != 0L) hash ^= UserId.GetHashCode(); - if (Status != 0) hash ^= Status.GetHashCode(); - if (TemplateId != 0L) hash ^= TemplateId.GetHashCode(); - if (RoleId != 0L) hash ^= RoleId.GetHashCode(); - if (BirthAreaId != 0L) hash ^= BirthAreaId.GetHashCode(); - if (ChargeAreaId != 0L) hash ^= ChargeAreaId.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 != 0L) { - output.WriteRawTag(8); - output.WriteInt64(RoomId); - } - if (UserId != 0L) { - output.WriteRawTag(16); - output.WriteInt64(UserId); - } - if (Status != 0) { - output.WriteRawTag(24); - output.WriteInt32(Status); - } - if (TemplateId != 0L) { - output.WriteRawTag(32); - output.WriteInt64(TemplateId); - } - if (RoleId != 0L) { - output.WriteRawTag(40); - output.WriteInt64(RoleId); - } - if (BirthAreaId != 0L) { - output.WriteRawTag(48); - output.WriteInt64(BirthAreaId); - } - if (ChargeAreaId != 0L) { - output.WriteRawTag(56); - output.WriteInt64(ChargeAreaId); - } - 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 != 0L) { - output.WriteRawTag(8); - output.WriteInt64(RoomId); - } - if (UserId != 0L) { - output.WriteRawTag(16); - output.WriteInt64(UserId); - } - if (Status != 0) { - output.WriteRawTag(24); - output.WriteInt32(Status); - } - if (TemplateId != 0L) { - output.WriteRawTag(32); - output.WriteInt64(TemplateId); - } - if (RoleId != 0L) { - output.WriteRawTag(40); - output.WriteInt64(RoleId); - } - if (BirthAreaId != 0L) { - output.WriteRawTag(48); - output.WriteInt64(BirthAreaId); - } - if (ChargeAreaId != 0L) { - output.WriteRawTag(56); - output.WriteInt64(ChargeAreaId); - } - 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 != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(RoomId); - } - if (UserId != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(UserId); - } - if (Status != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(Status); - } - if (TemplateId != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(TemplateId); - } - if (RoleId != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(RoleId); - } - if (BirthAreaId != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(BirthAreaId); - } - if (ChargeAreaId != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(ChargeAreaId); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(UserTemplateResponse other) { - if (other == null) { - return; - } - if (other.RoomId != 0L) { - RoomId = other.RoomId; - } - if (other.UserId != 0L) { - UserId = other.UserId; - } - if (other.Status != 0) { - Status = other.Status; - } - if (other.TemplateId != 0L) { - TemplateId = other.TemplateId; - } - if (other.RoleId != 0L) { - RoleId = other.RoleId; - } - if (other.BirthAreaId != 0L) { - BirthAreaId = other.BirthAreaId; - } - if (other.ChargeAreaId != 0L) { - ChargeAreaId = other.ChargeAreaId; - } - _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: { - RoomId = input.ReadInt64(); - break; - } - case 16: { - UserId = input.ReadInt64(); - break; - } - case 24: { - Status = input.ReadInt32(); - break; - } - case 32: { - TemplateId = input.ReadInt64(); - break; - } - case 40: { - RoleId = input.ReadInt64(); - break; - } - case 48: { - BirthAreaId = input.ReadInt64(); - break; - } - case 56: { - ChargeAreaId = input.ReadInt64(); - 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: { - RoomId = input.ReadInt64(); - break; - } - case 16: { - UserId = input.ReadInt64(); - break; - } - case 24: { - Status = input.ReadInt32(); - break; - } - case 32: { - TemplateId = input.ReadInt64(); - break; - } - case 40: { - RoleId = input.ReadInt64(); - break; - } - case 48: { - BirthAreaId = input.ReadInt64(); - break; - } - case 56: { - ChargeAreaId = input.ReadInt64(); - break; - } - } - } - } - #endif - -} - -[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] -public sealed partial class UserInfoRequest : pb::IMessage -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage -#endif -{ - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UserInfoRequest()); - 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::HallReflection.Descriptor.MessageTypes[14]; } - } - - [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 UserInfoRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UserInfoRequest(UserInfoRequest other) : this() { - userId_ = other.userId_; - status_ = other.status_; - roomId_ = other.roomId_; - x_ = other.x_; - y_ = other.y_; - z_ = other.z_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UserInfoRequest Clone() { - return new UserInfoRequest(this); - } - - /// Field number for the "UserId" field. - public const int UserIdFieldNumber = 1; - private long userId_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long UserId { - get { return userId_; } - set { - userId_ = value; - } - } - - /// Field number for the "Status" field. - public const int StatusFieldNumber = 2; - private int status_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int Status { - get { return status_; } - set { - status_ = value; - } - } - - /// Field number for the "RoomId" field. - public const int RoomIdFieldNumber = 3; - private string roomId_ = ""; - [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_; - [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_; - [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_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public float Z { - get { return z_; } - set { - z_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as UserInfoRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(UserInfoRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (UserId != other.UserId) 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; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (UserId != 0L) hash ^= UserId.GetHashCode(); - if (Status != 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 (_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 (UserId != 0L) { - output.WriteRawTag(8); - output.WriteInt64(UserId); - } - if (Status != 0) { - output.WriteRawTag(16); - output.WriteInt32(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 (_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 (UserId != 0L) { - output.WriteRawTag(8); - output.WriteInt64(UserId); - } - if (Status != 0) { - output.WriteRawTag(16); - output.WriteInt32(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 (_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 (UserId != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(UserId); - } - if (Status != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(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 (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(UserInfoRequest other) { - if (other == null) { - return; - } - if (other.UserId != 0L) { - UserId = other.UserId; - } - if (other.Status != 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; - } - _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: { - UserId = input.ReadInt64(); - break; - } - case 16: { - Status = input.ReadInt32(); - 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; - } - } - } - #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: { - UserId = input.ReadInt64(); - break; - } - case 16: { - Status = input.ReadInt32(); - 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; - } - } - } - } - #endif - -} - -[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] -public sealed partial class UserInfoResponse : pb::IMessage -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage -#endif -{ - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UserInfoResponse()); - 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::HallReflection.Descriptor.MessageTypes[15]; } - } - - [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 UserInfoResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UserInfoResponse(UserInfoResponse other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UserInfoResponse Clone() { - return new UserInfoResponse(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as UserInfoResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(UserInfoResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - 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 (_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 (_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 (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(UserInfoResponse other) { - if (other == null) { - return; - } - _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; - } - } - #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; - } - } - } - #endif - -} - -#endregion - - -#endregion Designer generated code diff --git a/Proto/Hall.cs.meta b/Proto/Hall.cs.meta deleted file mode 100644 index 949acf0..0000000 --- a/Proto/Hall.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 8fd26537609bdf14b8eb7d5150ef5262 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Proto/Join.cs b/Proto/Join.cs deleted file mode 100644 index a72b8e1..0000000 --- a/Proto/Join.cs +++ /dev/null @@ -1,2837 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: join.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 join.proto -public static partial class JoinReflection { - - #region Descriptor - /// File descriptor for join.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static JoinReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cgpqb2luLnByb3RvIp8CChBVc2VySm9pblJlc3BvbnNlEg4KBnVzZXJJZBgB", - "IAEoAxIQCghuaWNrTmFtZRgCIAEoCRIQCghyb2xlTmFtZRgDIAEoCRIOCgZy", - "b29tSWQYBCABKAkSDgoGb25saW5lGAUgASgIEhMKC21lc3NhZ2VUeXBlGAYg", - "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", "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 - -} -#region Messages -[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] -public sealed partial class UserJoinResponse : pb::IMessage -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage -#endif -{ - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UserJoinResponse()); - 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[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 UserJoinResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UserJoinResponse(UserJoinResponse other) : this() { - userId_ = other.userId_; - nickName_ = other.nickName_; - roleName_ = other.roleName_; - roomId_ = other.roomId_; - 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); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UserJoinResponse Clone() { - return new UserJoinResponse(this); - } - - /// Field number for the "userId" field. - public const int UserIdFieldNumber = 1; - private long userId_; - /// - /// 用户id - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long UserId { - get { return userId_; } - set { - userId_ = value; - } - } - - /// Field number for the "nickName" field. - public const int NickNameFieldNumber = 2; - private string nickName_ = ""; - /// - /// 用户名 - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string NickName { - get { return nickName_; } - set { - nickName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "roleName" field. - public const int RoleNameFieldNumber = 3; - private string roleName_ = ""; - /// - /// 用户角色 - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string RoleName { - get { return roleName_; } - set { - roleName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "roomId" field. - public const int RoomIdFieldNumber = 4; - private string roomId_ = ""; - /// - ///房间号 - /// - [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 "online" field. - public const int OnlineFieldNumber = 5; - private bool online_; - /// - ///状态 接收这个用户是不是掉线了 - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Online { - get { return online_; } - set { - online_ = value; - } - } - - /// Field number for the "messageType" field. - public const int MessageTypeFieldNumber = 6; - private int messageType_; - /// - ///事件状态 1 用户上线 2用户下线 3 用户加入房间 4 事故发生 5 火势 6 任务 7 对象操作 - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int MessageType { - get { return messageType_; } - set { - messageType_ = value; - } - } - - /// Field number for the "cmd" field. - public const int CmdFieldNumber = 7; - private string cmd_ = ""; - /// - ///操作指令 - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Cmd { - get { return cmd_; } - set { - cmd_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// 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) { - return Equals(other as UserJoinResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(UserJoinResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (UserId != other.UserId) return false; - if (NickName != other.NickName) return false; - if (RoleName != other.RoleName) return false; - if (RoomId != other.RoomId) return false; - 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); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (UserId != 0L) hash ^= UserId.GetHashCode(); - if (NickName.Length != 0) hash ^= NickName.GetHashCode(); - if (RoleName.Length != 0) hash ^= RoleName.GetHashCode(); - if (RoomId.Length != 0) hash ^= RoomId.GetHashCode(); - 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(); - } - 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 (UserId != 0L) { - output.WriteRawTag(8); - output.WriteInt64(UserId); - } - if (NickName.Length != 0) { - output.WriteRawTag(18); - output.WriteString(NickName); - } - if (RoleName.Length != 0) { - output.WriteRawTag(26); - output.WriteString(RoleName); - } - if (RoomId.Length != 0) { - output.WriteRawTag(34); - output.WriteString(RoomId); - } - if (Online != false) { - output.WriteRawTag(40); - output.WriteBool(Online); - } - if (MessageType != 0) { - output.WriteRawTag(48); - output.WriteInt32(MessageType); - } - if (Cmd.Length != 0) { - 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); - } - #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 (UserId != 0L) { - output.WriteRawTag(8); - output.WriteInt64(UserId); - } - if (NickName.Length != 0) { - output.WriteRawTag(18); - output.WriteString(NickName); - } - if (RoleName.Length != 0) { - output.WriteRawTag(26); - output.WriteString(RoleName); - } - if (RoomId.Length != 0) { - output.WriteRawTag(34); - output.WriteString(RoomId); - } - if (Online != false) { - output.WriteRawTag(40); - output.WriteBool(Online); - } - if (MessageType != 0) { - output.WriteRawTag(48); - output.WriteInt32(MessageType); - } - if (Cmd.Length != 0) { - 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); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (UserId != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(UserId); - } - if (NickName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(NickName); - } - if (RoleName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(RoleName); - } - if (RoomId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(RoomId); - } - if (Online != false) { - size += 1 + 1; - } - if (MessageType != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(MessageType); - } - 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(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(UserJoinResponse other) { - if (other == null) { - return; - } - if (other.UserId != 0L) { - UserId = other.UserId; - } - if (other.NickName.Length != 0) { - NickName = other.NickName; - } - if (other.RoleName.Length != 0) { - RoleName = other.RoleName; - } - if (other.RoomId.Length != 0) { - RoomId = other.RoomId; - } - if (other.Online != false) { - Online = other.Online; - } - if (other.MessageType != 0) { - MessageType = other.MessageType; - } - 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); - } - - [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: { - UserId = input.ReadInt64(); - break; - } - case 18: { - NickName = input.ReadString(); - break; - } - case 26: { - RoleName = input.ReadString(); - break; - } - case 34: { - RoomId = input.ReadString(); - break; - } - case 40: { - Online = input.ReadBool(); - break; - } - case 48: { - MessageType = input.ReadInt32(); - break; - } - case 58: { - 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 - } - - #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: { - UserId = input.ReadInt64(); - break; - } - case 18: { - NickName = input.ReadString(); - break; - } - case 26: { - RoleName = input.ReadString(); - break; - } - case 34: { - RoomId = input.ReadString(); - break; - } - case 40: { - Online = input.ReadBool(); - break; - } - case 48: { - MessageType = input.ReadInt32(); - break; - } - case 58: { - 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 - -} - -[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] -public sealed partial class RoomUserResponse : pb::IMessage -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage -#endif -{ - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RoomUserResponse()); - 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[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 RoomUserResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public RoomUserResponse(RoomUserResponse other) : this() { - userList_ = other.userList_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public RoomUserResponse Clone() { - return new RoomUserResponse(this); - } - - /// Field number for the "userList" field. - public const int UserListFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_userList_codec - = pb::FieldCodec.ForMessage(10, global::UserJoinResponse.Parser); - private readonly pbc::RepeatedField userList_ = new pbc::RepeatedField(); - /// - ///用户列表 - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField UserList { - get { return userList_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as RoomUserResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(RoomUserResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!userList_.Equals(other.userList_)) 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; - hash ^= userList_.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 - userList_.WriteTo(output, _repeated_userList_codec); - 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) { - userList_.WriteTo(ref output, _repeated_userList_codec); - 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; - size += userList_.CalculateSize(_repeated_userList_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(RoomUserResponse other) { - if (other == null) { - return; - } - userList_.Add(other.userList_); - _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: { - userList_.AddEntriesFrom(input, _repeated_userList_codec); - 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: { - userList_.AddEntriesFrom(ref input, _repeated_userList_codec); - break; - } - } - } - } - #endif - -} - -[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 - - -#endregion Designer generated code diff --git a/Proto/Join.cs.meta b/Proto/Join.cs.meta deleted file mode 100644 index 1b6c2aa..0000000 --- a/Proto/Join.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 63abcfa0f6080534d8642cfb5eae1ac0 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Proto/MessageBroadcast.cs b/Proto/MessageBroadcast.cs deleted file mode 100644 index 090d963..0000000 --- a/Proto/MessageBroadcast.cs +++ /dev/null @@ -1,525 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: message_broadcast.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 message_broadcast.proto -public static partial class MessageBroadcastReflection { - - #region Descriptor - /// File descriptor for message_broadcast.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static MessageBroadcastReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "ChdtZXNzYWdlX2Jyb2FkY2FzdC5wcm90byJUChdNZXNzYWdlQnJvYWRjYXN0", - "UmVxdWVzdBIOCgZyb29tSWQYASABKAkSDAoEdHlwZRgCIAEoBRIOCgZyb2xl", - "SWQYAyABKAkSCwoDY21kGAQgASgJIhoKGE1lc3NhZ2VCcm9hZGNhc3RSZXNw", - "b25zZUIHWgUuLztwYmIGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::MessageBroadcastRequest), global::MessageBroadcastRequest.Parser, new[]{ "RoomId", "Type", "RoleId", "Cmd" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::MessageBroadcastResponse), global::MessageBroadcastResponse.Parser, null, null, null, null, null) - })); - } - #endregion - -} -#region Messages -[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] -public sealed partial class MessageBroadcastRequest : pb::IMessage -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage -#endif -{ - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MessageBroadcastRequest()); - 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::MessageBroadcastReflection.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 MessageBroadcastRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MessageBroadcastRequest(MessageBroadcastRequest other) : this() { - roomId_ = other.roomId_; - type_ = other.type_; - roleId_ = other.roleId_; - cmd_ = other.cmd_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MessageBroadcastRequest Clone() { - return new MessageBroadcastRequest(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 "type" field. - public const int TypeFieldNumber = 2; - private int type_; - /// - /// 消息类型 1. 文本 2. 图片 3. 语音 4. 视频 - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int Type { - get { return type_; } - set { - type_ = value; - } - } - - /// Field number for the "roleId" field. - public const int RoleIdFieldNumber = 3; - private string roleId_ = ""; - /// - /// 角色Id 如果为空就是给所有人发 - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string RoleId { - get { return roleId_; } - set { - roleId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "cmd" field. - public const int CmdFieldNumber = 4; - private string cmd_ = ""; - /// - /// 自定义命令 - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Cmd { - get { return cmd_; } - set { - cmd_ = 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 MessageBroadcastRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MessageBroadcastRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (RoomId != other.RoomId) return false; - if (Type != other.Type) return false; - if (RoleId != other.RoleId) return false; - if (Cmd != other.Cmd) 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 (Type != 0) hash ^= Type.GetHashCode(); - if (RoleId.Length != 0) hash ^= RoleId.GetHashCode(); - if (Cmd.Length != 0) hash ^= Cmd.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 (Type != 0) { - output.WriteRawTag(16); - output.WriteInt32(Type); - } - if (RoleId.Length != 0) { - output.WriteRawTag(26); - output.WriteString(RoleId); - } - if (Cmd.Length != 0) { - output.WriteRawTag(34); - output.WriteString(Cmd); - } - 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 (Type != 0) { - output.WriteRawTag(16); - output.WriteInt32(Type); - } - if (RoleId.Length != 0) { - output.WriteRawTag(26); - output.WriteString(RoleId); - } - if (Cmd.Length != 0) { - output.WriteRawTag(34); - output.WriteString(Cmd); - } - 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 (Type != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(Type); - } - if (RoleId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(RoleId); - } - if (Cmd.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Cmd); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MessageBroadcastRequest other) { - if (other == null) { - return; - } - if (other.RoomId.Length != 0) { - RoomId = other.RoomId; - } - if (other.Type != 0) { - Type = other.Type; - } - if (other.RoleId.Length != 0) { - RoleId = other.RoleId; - } - if (other.Cmd.Length != 0) { - Cmd = other.Cmd; - } - _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 16: { - Type = input.ReadInt32(); - break; - } - case 26: { - RoleId = input.ReadString(); - break; - } - case 34: { - Cmd = 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 16: { - Type = input.ReadInt32(); - break; - } - case 26: { - RoleId = input.ReadString(); - break; - } - case 34: { - Cmd = input.ReadString(); - break; - } - } - } - } - #endif - -} - -[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] -public sealed partial class MessageBroadcastResponse : pb::IMessage -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage -#endif -{ - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MessageBroadcastResponse()); - 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::MessageBroadcastReflection.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 MessageBroadcastResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MessageBroadcastResponse(MessageBroadcastResponse other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MessageBroadcastResponse Clone() { - return new MessageBroadcastResponse(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MessageBroadcastResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MessageBroadcastResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - 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 (_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 (_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 (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MessageBroadcastResponse other) { - if (other == null) { - return; - } - _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; - } - } - #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; - } - } - } - #endif - -} - -#endregion - - -#endregion Designer generated code diff --git a/Proto/MessageBroadcast.cs.meta b/Proto/MessageBroadcast.cs.meta deleted file mode 100644 index fab2149..0000000 --- a/Proto/MessageBroadcast.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 061900a49550cc74582eb8e4598a886b -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Proto/Move.cs b/Proto/Move.cs deleted file mode 100644 index 3bee5ef..0000000 --- a/Proto/Move.cs +++ /dev/null @@ -1,2008 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: move.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 move.proto -public static partial class MoveReflection { - - #region Descriptor - /// File descriptor for move.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static MoveReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "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", "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), - new pbr::GeneratedClrTypeInfo(typeof(global::NpcData), global::NpcData.Parser, new[]{ "X", "Y", "Z", "UserId", "NickName", "Type", "Formation", "Event" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::MoveRoomAoiRequest), global::MoveRoomAoiRequest.Parser, new[]{ "RoomId", "UserId", "X", "Y", "Z" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::MoveRoomAoiResponse), global::MoveRoomAoiResponse.Parser, null, null, null, null, null) - })); - } - #endregion - -} -#region Messages -[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] -public sealed partial class NpcCreateRequest : pb::IMessage -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage -#endif -{ - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new NpcCreateRequest()); - 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::MoveReflection.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 NpcCreateRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [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); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public NpcCreateRequest Clone() { - return new NpcCreateRequest(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 "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) { - return Equals(other as NpcCreateRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(NpcCreateRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - 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); - } - - [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 (TemplateId != 0L) hash ^= TemplateId.GetHashCode(); - if (SceneId.Length != 0) hash ^= SceneId.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 (TemplateId != 0L) { - output.WriteRawTag(16); - output.WriteInt64(TemplateId); - } - if (SceneId.Length != 0) { - output.WriteRawTag(26); - output.WriteString(SceneId); - } - 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 (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); - } - } - #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 (TemplateId != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(TemplateId); - } - if (SceneId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(SceneId); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(NpcCreateRequest other) { - if (other == null) { - return; - } - 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); - } - - [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 16: { - TemplateId = input.ReadInt64(); - break; - } - case 26: { - SceneId = 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 16: { - TemplateId = input.ReadInt64(); - break; - } - case 26: { - SceneId = input.ReadString(); - break; - } - } - } - } - #endif - -} - -[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] -public sealed partial class NpcCreateResponse : pb::IMessage -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage -#endif -{ - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new NpcCreateResponse()); - 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::MoveReflection.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 NpcCreateResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public NpcCreateResponse(NpcCreateResponse other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public NpcCreateResponse Clone() { - return new NpcCreateResponse(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as NpcCreateResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(NpcCreateResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - 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 (_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 (_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 (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(NpcCreateResponse other) { - if (other == null) { - return; - } - _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; - } - } - #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; - } - } - } - #endif - -} - -[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] -public sealed partial class MoveRequest : pb::IMessage -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage -#endif -{ - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MoveRequest()); - 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::MoveReflection.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 MoveRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MoveRequest(MoveRequest other) : this() { - roomId_ = other.roomId_; - moveType_ = other.moveType_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MoveRequest Clone() { - return new MoveRequest(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 "moveType" field. - public const int MoveTypeFieldNumber = 2; - private int moveType_; - /// - /// 移动类型 1.窗子边的移动 2. 门边的移动 3. 一起移动 - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int MoveType { - get { return moveType_; } - set { - moveType_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MoveRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MoveRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (RoomId != other.RoomId) return false; - if (MoveType != other.MoveType) 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 (MoveType != 0) hash ^= MoveType.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 (MoveType != 0) { - output.WriteRawTag(16); - output.WriteInt32(MoveType); - } - 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 (MoveType != 0) { - output.WriteRawTag(16); - output.WriteInt32(MoveType); - } - 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 (MoveType != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(MoveType); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MoveRequest other) { - if (other == null) { - return; - } - if (other.RoomId.Length != 0) { - RoomId = other.RoomId; - } - if (other.MoveType != 0) { - MoveType = other.MoveType; - } - _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 16: { - MoveType = input.ReadInt32(); - 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 16: { - MoveType = input.ReadInt32(); - break; - } - } - } - } - #endif - -} - -[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] -public sealed partial class MoveResponse : pb::IMessage -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage -#endif -{ - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MoveResponse()); - 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::MoveReflection.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 MoveResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MoveResponse(MoveResponse other) : this() { - userId_ = other.userId_; - roomId_ = other.roomId_; - moveData_ = other.moveData_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MoveResponse Clone() { - return new MoveResponse(this); - } - - /// Field number for the "userId" field. - public const int UserIdFieldNumber = 2; - private string userId_ = ""; - /// - /// 用户id - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string UserId { - get { return userId_; } - set { - userId_ = 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 "moveData" field. - public const int MoveDataFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_moveData_codec - = pb::FieldCodec.ForMessage(10, global::NpcData.Parser); - private readonly pbc::RepeatedField moveData_ = new pbc::RepeatedField(); - /// - /// 移动数据 - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField MoveData { - get { return moveData_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MoveResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MoveResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (UserId != other.UserId) return false; - if (RoomId != other.RoomId) return false; - if(!moveData_.Equals(other.moveData_)) 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 (UserId.Length != 0) hash ^= UserId.GetHashCode(); - if (RoomId.Length != 0) hash ^= RoomId.GetHashCode(); - hash ^= moveData_.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 - moveData_.WriteTo(output, _repeated_moveData_codec); - if (UserId.Length != 0) { - output.WriteRawTag(18); - output.WriteString(UserId); - } - if (RoomId.Length != 0) { - output.WriteRawTag(26); - 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) { - moveData_.WriteTo(ref output, _repeated_moveData_codec); - if (UserId.Length != 0) { - output.WriteRawTag(18); - output.WriteString(UserId); - } - if (RoomId.Length != 0) { - output.WriteRawTag(26); - 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 (UserId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(UserId); - } - if (RoomId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(RoomId); - } - size += moveData_.CalculateSize(_repeated_moveData_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MoveResponse other) { - if (other == null) { - return; - } - if (other.UserId.Length != 0) { - UserId = other.UserId; - } - if (other.RoomId.Length != 0) { - RoomId = other.RoomId; - } - moveData_.Add(other.moveData_); - _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: { - moveData_.AddEntriesFrom(input, _repeated_moveData_codec); - break; - } - case 18: { - UserId = input.ReadString(); - break; - } - case 26: { - 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: { - moveData_.AddEntriesFrom(ref input, _repeated_moveData_codec); - break; - } - case 18: { - UserId = input.ReadString(); - break; - } - case 26: { - RoomId = input.ReadString(); - break; - } - } - } - } - #endif - -} - -[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] -public sealed partial class NpcData : pb::IMessage -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage -#endif -{ - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new NpcData()); - 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::MoveReflection.Descriptor.MessageTypes[4]; } - } - - [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 NpcData() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public NpcData(NpcData other) : this() { - x_ = other.x_; - y_ = other.y_; - z_ = other.z_; - userId_ = other.userId_; - nickName_ = other.nickName_; - type_ = other.type_; - formation_ = other.formation_; - event_ = other.event_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public NpcData Clone() { - return new NpcData(this); - } - - /// Field number for the "x" field. - public const int XFieldNumber = 1; - private float 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 = 2; - private float 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 = 3; - private float 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 "userId" field. - public const int UserIdFieldNumber = 4; - private string userId_ = ""; - /// - /// 移动的npc的id - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string UserId { - get { return userId_; } - set { - userId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "nickName" field. - public const int NickNameFieldNumber = 8; - private string nickName_ = ""; - /// - /// 昵称 - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string NickName { - get { return nickName_; } - set { - nickName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "type" field. - public const int TypeFieldNumber = 5; - private int type_; - /// - /// 类型 1 玩家 2 NPC - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int Type { - get { return type_; } - set { - type_ = value; - } - } - - /// Field number for the "formation" field. - public const int FormationFieldNumber = 6; - private int formation_; - /// - /// 下楼对应的阵型 1-靠两侧 2-并排 - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int Formation { - get { return formation_; } - set { - formation_ = value; - } - } - - /// Field number for the "event" field. - public const int EventFieldNumber = 7; - private int event_; - /// - /// 1 进入 2 保持 3 离开 - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int Event { - get { return event_; } - set { - event_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as NpcData); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(NpcData other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - 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 (UserId != other.UserId) return false; - if (NickName != other.NickName) return false; - if (Type != other.Type) return false; - if (Formation != other.Formation) return false; - if (Event != other.Event) 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 (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 (UserId.Length != 0) hash ^= UserId.GetHashCode(); - if (NickName.Length != 0) hash ^= NickName.GetHashCode(); - if (Type != 0) hash ^= Type.GetHashCode(); - if (Formation != 0) hash ^= Formation.GetHashCode(); - if (Event != 0) hash ^= Event.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 (X != 0F) { - output.WriteRawTag(13); - output.WriteFloat(X); - } - if (Y != 0F) { - output.WriteRawTag(21); - output.WriteFloat(Y); - } - if (Z != 0F) { - output.WriteRawTag(29); - output.WriteFloat(Z); - } - if (UserId.Length != 0) { - output.WriteRawTag(34); - output.WriteString(UserId); - } - if (Type != 0) { - output.WriteRawTag(40); - output.WriteInt32(Type); - } - if (Formation != 0) { - output.WriteRawTag(48); - output.WriteInt32(Formation); - } - if (Event != 0) { - output.WriteRawTag(56); - output.WriteInt32(Event); - } - if (NickName.Length != 0) { - output.WriteRawTag(66); - output.WriteString(NickName); - } - 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 (X != 0F) { - output.WriteRawTag(13); - output.WriteFloat(X); - } - if (Y != 0F) { - output.WriteRawTag(21); - output.WriteFloat(Y); - } - if (Z != 0F) { - output.WriteRawTag(29); - output.WriteFloat(Z); - } - if (UserId.Length != 0) { - output.WriteRawTag(34); - output.WriteString(UserId); - } - if (Type != 0) { - output.WriteRawTag(40); - output.WriteInt32(Type); - } - if (Formation != 0) { - output.WriteRawTag(48); - output.WriteInt32(Formation); - } - if (Event != 0) { - output.WriteRawTag(56); - output.WriteInt32(Event); - } - if (NickName.Length != 0) { - output.WriteRawTag(66); - output.WriteString(NickName); - } - 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 (X != 0F) { - size += 1 + 4; - } - if (Y != 0F) { - size += 1 + 4; - } - if (Z != 0F) { - size += 1 + 4; - } - if (UserId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(UserId); - } - if (NickName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(NickName); - } - if (Type != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(Type); - } - if (Formation != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(Formation); - } - if (Event != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(Event); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(NpcData other) { - if (other == null) { - return; - } - if (other.X != 0F) { - X = other.X; - } - if (other.Y != 0F) { - Y = other.Y; - } - if (other.Z != 0F) { - Z = other.Z; - } - if (other.UserId.Length != 0) { - UserId = other.UserId; - } - if (other.NickName.Length != 0) { - NickName = other.NickName; - } - if (other.Type != 0) { - Type = other.Type; - } - if (other.Formation != 0) { - Formation = other.Formation; - } - if (other.Event != 0) { - Event = other.Event; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - if ((tag & 7) == 4) { - // Abort on any end group tag. - return; - } - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 13: { - X = input.ReadFloat(); - break; - } - case 21: { - Y = input.ReadFloat(); - break; - } - case 29: { - Z = input.ReadFloat(); - break; - } - case 34: { - UserId = input.ReadString(); - break; - } - case 40: { - Type = input.ReadInt32(); - break; - } - case 48: { - Formation = input.ReadInt32(); - break; - } - case 56: { - Event = input.ReadInt32(); - break; - } - case 66: { - NickName = 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 13: { - X = input.ReadFloat(); - break; - } - case 21: { - Y = input.ReadFloat(); - break; - } - case 29: { - Z = input.ReadFloat(); - break; - } - case 34: { - UserId = input.ReadString(); - break; - } - case 40: { - Type = input.ReadInt32(); - break; - } - case 48: { - Formation = input.ReadInt32(); - break; - } - case 56: { - Event = input.ReadInt32(); - break; - } - case 66: { - NickName = input.ReadString(); - break; - } - } - } - } - #endif - -} - -[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] -public sealed partial class MoveRoomAoiRequest : pb::IMessage -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage -#endif -{ - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MoveRoomAoiRequest()); - 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::MoveReflection.Descriptor.MessageTypes[5]; } - } - - [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 MoveRoomAoiRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MoveRoomAoiRequest(MoveRoomAoiRequest other) : this() { - roomId_ = other.roomId_; - userId_ = other.userId_; - x_ = other.x_; - y_ = other.y_; - z_ = other.z_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MoveRoomAoiRequest Clone() { - return new MoveRoomAoiRequest(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 "userId" field. - public const int UserIdFieldNumber = 2; - private long userId_; - /// - /// 用户Id - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long UserId { - get { return userId_; } - set { - userId_ = value; - } - } - - /// Field number for the "x" field. - public const int XFieldNumber = 3; - 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 = 4; - 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 = 5; - private float z_; - /// - /// z - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public float Z { - get { return z_; } - set { - z_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MoveRoomAoiRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MoveRoomAoiRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (RoomId != other.RoomId) return false; - if (UserId != other.UserId) 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; - 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 (UserId != 0L) hash ^= UserId.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 (_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 (UserId != 0L) { - output.WriteRawTag(16); - output.WriteInt64(UserId); - } - if (X != 0F) { - output.WriteRawTag(29); - output.WriteFloat(X); - } - if (Y != 0F) { - output.WriteRawTag(37); - output.WriteFloat(Y); - } - if (Z != 0F) { - output.WriteRawTag(45); - output.WriteFloat(Z); - } - 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 (UserId != 0L) { - output.WriteRawTag(16); - output.WriteInt64(UserId); - } - if (X != 0F) { - output.WriteRawTag(29); - output.WriteFloat(X); - } - if (Y != 0F) { - output.WriteRawTag(37); - output.WriteFloat(Y); - } - if (Z != 0F) { - output.WriteRawTag(45); - output.WriteFloat(Z); - } - 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 (UserId != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(UserId); - } - if (X != 0F) { - size += 1 + 4; - } - if (Y != 0F) { - size += 1 + 4; - } - if (Z != 0F) { - size += 1 + 4; - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MoveRoomAoiRequest other) { - if (other == null) { - return; - } - if (other.RoomId.Length != 0) { - RoomId = other.RoomId; - } - if (other.UserId != 0L) { - UserId = other.UserId; - } - if (other.X != 0F) { - X = other.X; - } - if (other.Y != 0F) { - Y = other.Y; - } - if (other.Z != 0F) { - Z = other.Z; - } - _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 16: { - UserId = input.ReadInt64(); - break; - } - case 29: { - X = input.ReadFloat(); - break; - } - case 37: { - Y = input.ReadFloat(); - break; - } - case 45: { - Z = input.ReadFloat(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - if ((tag & 7) == 4) { - // Abort on any end group tag. - return; - } - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - RoomId = input.ReadString(); - break; - } - case 16: { - UserId = input.ReadInt64(); - break; - } - case 29: { - X = input.ReadFloat(); - break; - } - case 37: { - Y = input.ReadFloat(); - break; - } - case 45: { - Z = input.ReadFloat(); - break; - } - } - } - } - #endif - -} - -[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] -public sealed partial class MoveRoomAoiResponse : pb::IMessage -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage -#endif -{ - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MoveRoomAoiResponse()); - 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::MoveReflection.Descriptor.MessageTypes[6]; } - } - - [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 MoveRoomAoiResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MoveRoomAoiResponse(MoveRoomAoiResponse other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MoveRoomAoiResponse Clone() { - return new MoveRoomAoiResponse(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MoveRoomAoiResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MoveRoomAoiResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - 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 (_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 (_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 (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MoveRoomAoiResponse other) { - if (other == null) { - return; - } - _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; - } - } - #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; - } - } - } - #endif - -} - -#endregion - - -#endregion Designer generated code diff --git a/Proto/Move.cs.meta b/Proto/Move.cs.meta deleted file mode 100644 index aaef800..0000000 --- a/Proto/Move.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 3b549e9113344b542a6f785f98166927 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Proto/Object.cs b/Proto/Object.cs deleted file mode 100644 index 30c4e46..0000000 --- a/Proto/Object.cs +++ /dev/null @@ -1,1497 +0,0 @@ -// -// 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/Proto/Object.cs.meta b/Proto/Object.cs.meta deleted file mode 100644 index 296e13e..0000000 --- a/Proto/Object.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 7a2dfd72791480141a3dca377b5196d1 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Proto/Prop.cs b/Proto/Prop.cs deleted file mode 100644 index 11c7ee8..0000000 --- a/Proto/Prop.cs +++ /dev/null @@ -1,1936 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: prop.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 prop.proto -public static partial class PropReflection { - - #region Descriptor - /// File descriptor for prop.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static PropReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cgpwcm9wLnByb3RvIlMKC1Byb3BSZXF1ZXN0Eg4KBnByb3BJZBgBIAEoBRIO", - "CgZhY3Rpb24YAiABKAUSFAoMcHJvcFNlcnZlcklkGAMgASgJEg4KBnJvb21J", - "ZBgEIAEoCSJhCgxQcm9wUmVzcG9uc2USDgoGcHJvcElkGAEgASgFEhQKDHBy", - "b3BTZXJ2ZXJJZBgFIAEoCRIMCgRuYW1lGAIgASgJEgwKBGNvZGUYAyABKAUS", - "DwoHbWVzc2FnZRgEIAEoCSIeChBQcm9wTW9kZWxSZXF1ZXN0EgoKAmlkGAEg", - "ASgFIvYCChFQcm9wTW9kZWxSZXNwb25zZRIKCgJpZBgBIAEoCRIQCghjYXRl", - "Z29yeRgCIAEoCRIMCgROb3RlGAMgASgJEgwKBE5hbWUYBCABKAkSDgoGV2Vp", - "Z2h0GAUgASgJEg0KBVNjZW5lGAYgASgJEgwKBEljb24YByABKAkSDwoHUmVz", - "UGF0aBgIIAEoCRIWCg5Db25zdW1hYmxlVHlwZRgJIAEoCRIRCglEdXJhdGlv", - "bnMYCiABKAkSEAoISXNQaWNrdXAYCyABKAkSCwoDTnVtGAwgASgFEhMKC0Nh", - "bGN1bGF0aW9uGA0gASgIEhAKCExvc3NUaW1lGA4gASgFEhQKDFByb3BTZXJ2", - "ZXJJZBgPIAEoCRIMCgRVc2VkGBAgASgIEg4KBlVzZXJJZBgRIAEoCRIOCgZS", - "b29tSWQYEiABKAkSEAoIVG90YWxOdW0YEyABKAUSDwoHUmVzdE51bRgUIAEo", - "BRIRCglBdHRyaWJ1dGUYFSABKAlCB1oFLi87cGJiBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::PropRequest), global::PropRequest.Parser, new[]{ "PropId", "Action", "PropServerId", "RoomId" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::PropResponse), global::PropResponse.Parser, new[]{ "PropId", "PropServerId", "Name", "Code", "Message" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::PropModelRequest), global::PropModelRequest.Parser, new[]{ "Id" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::PropModelResponse), global::PropModelResponse.Parser, new[]{ "Id", "Category", "Note", "Name", "Weight", "Scene", "Icon", "ResPath", "ConsumableType", "Durations", "IsPickup", "Num", "Calculation", "LossTime", "PropServerId", "Used", "UserId", "RoomId", "TotalNum", "RestNum", "Attribute" }, null, null, null, null) - })); - } - #endregion - -} -#region Messages -[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] -public sealed partial class PropRequest : pb::IMessage -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage -#endif -{ - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PropRequest()); - 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::PropReflection.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 PropRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public PropRequest(PropRequest other) : this() { - propId_ = other.propId_; - action_ = other.action_; - propServerId_ = other.propServerId_; - roomId_ = other.roomId_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public PropRequest Clone() { - return new PropRequest(this); - } - - /// Field number for the "propId" field. - public const int PropIdFieldNumber = 1; - private int propId_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int PropId { - get { return propId_; } - set { - propId_ = value; - } - } - - /// Field number for the "action" field. - public const int ActionFieldNumber = 2; - private int action_; - /// - /// 1 使用 2 丢弃 3 转交 - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int Action { - get { return action_; } - set { - action_ = value; - } - } - - /// Field number for the "propServerId" field. - public const int PropServerIdFieldNumber = 3; - private string propServerId_ = ""; - /// - /// 服务端ID 不存在这个id的时候为-1 - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string PropServerId { - get { return propServerId_; } - set { - propServerId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "roomId" field. - public const int RoomIdFieldNumber = 4; - 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 PropRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(PropRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (PropId != other.PropId) return false; - if (Action != other.Action) return false; - if (PropServerId != other.PropServerId) 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 (PropId != 0) hash ^= PropId.GetHashCode(); - if (Action != 0) hash ^= Action.GetHashCode(); - if (PropServerId.Length != 0) hash ^= PropServerId.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 (PropId != 0) { - output.WriteRawTag(8); - output.WriteInt32(PropId); - } - if (Action != 0) { - output.WriteRawTag(16); - output.WriteInt32(Action); - } - if (PropServerId.Length != 0) { - output.WriteRawTag(26); - output.WriteString(PropServerId); - } - if (RoomId.Length != 0) { - output.WriteRawTag(34); - 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 (PropId != 0) { - output.WriteRawTag(8); - output.WriteInt32(PropId); - } - if (Action != 0) { - output.WriteRawTag(16); - output.WriteInt32(Action); - } - if (PropServerId.Length != 0) { - output.WriteRawTag(26); - output.WriteString(PropServerId); - } - if (RoomId.Length != 0) { - output.WriteRawTag(34); - 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 (PropId != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(PropId); - } - if (Action != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(Action); - } - if (PropServerId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(PropServerId); - } - 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(PropRequest other) { - if (other == null) { - return; - } - if (other.PropId != 0) { - PropId = other.PropId; - } - if (other.Action != 0) { - Action = other.Action; - } - if (other.PropServerId.Length != 0) { - PropServerId = other.PropServerId; - } - 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 8: { - PropId = input.ReadInt32(); - break; - } - case 16: { - Action = input.ReadInt32(); - break; - } - case 26: { - PropServerId = input.ReadString(); - break; - } - case 34: { - 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 8: { - PropId = input.ReadInt32(); - break; - } - case 16: { - Action = input.ReadInt32(); - break; - } - case 26: { - PropServerId = input.ReadString(); - break; - } - case 34: { - RoomId = input.ReadString(); - break; - } - } - } - } - #endif - -} - -[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] -public sealed partial class PropResponse : pb::IMessage -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage -#endif -{ - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PropResponse()); - 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::PropReflection.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 PropResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public PropResponse(PropResponse other) : this() { - propId_ = other.propId_; - propServerId_ = other.propServerId_; - name_ = other.name_; - code_ = other.code_; - message_ = other.message_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public PropResponse Clone() { - return new PropResponse(this); - } - - /// 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 { - get { return propId_; } - set { - propId_ = value; - } - } - - /// Field number for the "propServerId" field. - public const int PropServerIdFieldNumber = 5; - private string propServerId_ = ""; - /// - /// 服务端ID - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string PropServerId { - get { return propServerId_; } - set { - propServerId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// 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 { - get { return name_; } - set { - name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// 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 { - get { return code_; } - set { - code_ = value; - } - } - - /// 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 { - 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 PropResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(PropResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (PropId != other.PropId) return false; - if (PropServerId != other.PropServerId) return false; - if (Name != other.Name) return false; - 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 (PropId != 0) hash ^= PropId.GetHashCode(); - if (PropServerId.Length != 0) hash ^= PropServerId.GetHashCode(); - if (Name.Length != 0) hash ^= Name.GetHashCode(); - 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 (PropId != 0) { - output.WriteRawTag(8); - output.WriteInt32(PropId); - } - if (Name.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Name); - } - if (Code != 0) { - output.WriteRawTag(24); - output.WriteInt32(Code); - } - if (Message.Length != 0) { - output.WriteRawTag(34); - output.WriteString(Message); - } - if (PropServerId.Length != 0) { - output.WriteRawTag(42); - output.WriteString(PropServerId); - } - 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 (PropId != 0) { - output.WriteRawTag(8); - output.WriteInt32(PropId); - } - if (Name.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Name); - } - if (Code != 0) { - output.WriteRawTag(24); - output.WriteInt32(Code); - } - if (Message.Length != 0) { - output.WriteRawTag(34); - output.WriteString(Message); - } - if (PropServerId.Length != 0) { - output.WriteRawTag(42); - output.WriteString(PropServerId); - } - 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 (PropId != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(PropId); - } - if (PropServerId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(PropServerId); - } - if (Name.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); - } - 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(PropResponse other) { - if (other == null) { - return; - } - if (other.PropId != 0) { - PropId = other.PropId; - } - if (other.PropServerId.Length != 0) { - PropServerId = other.PropServerId; - } - if (other.Name.Length != 0) { - Name = other.Name; - } - 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: { - PropId = input.ReadInt32(); - break; - } - case 18: { - Name = input.ReadString(); - break; - } - case 24: { - Code = input.ReadInt32(); - break; - } - case 34: { - Message = input.ReadString(); - break; - } - case 42: { - PropServerId = 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: { - PropId = input.ReadInt32(); - break; - } - case 18: { - Name = input.ReadString(); - break; - } - case 24: { - Code = input.ReadInt32(); - break; - } - case 34: { - Message = input.ReadString(); - break; - } - case 42: { - PropServerId = input.ReadString(); - break; - } - } - } - } - #endif - -} - -[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] -public sealed partial class PropModelRequest : pb::IMessage -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage -#endif -{ - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PropModelRequest()); - 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::PropReflection.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 PropModelRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public PropModelRequest(PropModelRequest other) : this() { - id_ = other.id_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public PropModelRequest Clone() { - return new PropModelRequest(this); - } - - /// Field number for the "id" field. - public const int IdFieldNumber = 1; - private int id_; - /// - /// 道具ID - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int Id { - get { return id_; } - set { - id_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as PropModelRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(PropModelRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Id != other.Id) 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 != 0) hash ^= Id.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 != 0) { - output.WriteRawTag(8); - output.WriteInt32(Id); - } - 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 != 0) { - output.WriteRawTag(8); - output.WriteInt32(Id); - } - 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 != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(PropModelRequest other) { - if (other == null) { - return; - } - if (other.Id != 0) { - Id = other.Id; - } - _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: { - Id = input.ReadInt32(); - 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: { - Id = input.ReadInt32(); - break; - } - } - } - } - #endif - -} - -[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] -public sealed partial class PropModelResponse : pb::IMessage -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage -#endif -{ - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PropModelResponse()); - 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::PropReflection.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 PropModelResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public PropModelResponse(PropModelResponse other) : this() { - id_ = other.id_; - category_ = other.category_; - note_ = other.note_; - name_ = other.name_; - weight_ = other.weight_; - scene_ = other.scene_; - icon_ = other.icon_; - resPath_ = other.resPath_; - consumableType_ = other.consumableType_; - durations_ = other.durations_; - isPickup_ = other.isPickup_; - num_ = other.num_; - calculation_ = other.calculation_; - lossTime_ = other.lossTime_; - propServerId_ = other.propServerId_; - used_ = other.used_; - userId_ = other.userId_; - roomId_ = other.roomId_; - totalNum_ = other.totalNum_; - restNum_ = other.restNum_; - attribute_ = other.attribute_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public PropModelResponse Clone() { - return new PropModelResponse(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 "category" field. - public const int CategoryFieldNumber = 2; - private string category_ = ""; - /// - /// 物资分类 - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Category { - get { return category_; } - set { - category_ = 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 "Name" field. - public const int NameFieldNumber = 4; - 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 "Weight" field. - public const int WeightFieldNumber = 5; - private string weight_ = ""; - /// - /// 重量 - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Weight { - get { return weight_; } - set { - weight_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "Scene" field. - public const int SceneFieldNumber = 6; - private string scene_ = ""; - /// - /// 使用场景 - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Scene { - get { return scene_; } - set { - scene_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "Icon" field. - public const int IconFieldNumber = 7; - 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 "ResPath" field. - public const int ResPathFieldNumber = 8; - private string resPath_ = ""; - /// - /// 图片资源 - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResPath { - get { return resPath_; } - set { - resPath_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "ConsumableType" field. - public const int ConsumableTypeFieldNumber = 9; - private string consumableType_ = ""; - /// - /// 是否消耗品 0=非消耗品 1=消耗品 2=穿戴类 3=可穿戴消耗品 - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ConsumableType { - get { return consumableType_; } - set { - consumableType_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "Durations" field. - public const int DurationsFieldNumber = 10; - private string durations_ = ""; - /// - /// 有效时间 -1 无限制 单位 秒 - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Durations { - get { return durations_; } - set { - durations_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "IsPickup" field. - public const int IsPickupFieldNumber = 11; - private string isPickup_ = ""; - /// - /// 可被拾取 职业ID1,是否可拾取1|职业ID2,是否可拾取2 - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string IsPickup { - get { return isPickup_; } - set { - isPickup_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "Num" field. - public const int NumFieldNumber = 12; - private int num_; - /// - /// 道具数量 - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int Num { - get { return num_; } - set { - num_ = value; - } - } - - /// Field number for the "Calculation" field. - public const int CalculationFieldNumber = 13; - private bool calculation_; - /// - /// 是否计算属性 true=计算 false=不计算 - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Calculation { - get { return calculation_; } - set { - calculation_ = value; - } - } - - /// Field number for the "LossTime" field. - public const int LossTimeFieldNumber = 14; - private int lossTime_; - /// - /// 剩余时间 - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int LossTime { - get { return lossTime_; } - set { - lossTime_ = value; - } - } - - /// Field number for the "PropServerId" field. - public const int PropServerIdFieldNumber = 15; - private string propServerId_ = ""; - /// - /// 道具服务器ID - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string PropServerId { - get { return propServerId_; } - set { - propServerId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "Used" field. - public const int UsedFieldNumber = 16; - private bool used_; - /// - /// 是否正在使用 true=正在使用 false=未使用 - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Used { - get { return used_; } - set { - used_ = value; - } - } - - /// Field number for the "UserId" field. - public const int UserIdFieldNumber = 17; - private string userId_ = ""; - /// - /// 用户ID - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string UserId { - get { return userId_; } - set { - userId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "RoomId" field. - public const int RoomIdFieldNumber = 18; - 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 "TotalNum" field. - public const int TotalNumFieldNumber = 19; - private int totalNum_; - /// - /// 总数量 - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int TotalNum { - get { return totalNum_; } - set { - totalNum_ = value; - } - } - - /// Field number for the "RestNum" field. - public const int RestNumFieldNumber = 20; - private int restNum_; - /// - /// 剩余数量 - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int RestNum { - get { return restNum_; } - set { - restNum_ = value; - } - } - - /// Field number for the "Attribute" field. - public const int AttributeFieldNumber = 21; - private string attribute_ = ""; - /// - /// 属性种类,属性值 - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Attribute { - get { return attribute_; } - set { - attribute_ = 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 PropModelResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(PropModelResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Id != other.Id) return false; - if (Category != other.Category) return false; - if (Note != other.Note) return false; - if (Name != other.Name) return false; - if (Weight != other.Weight) return false; - if (Scene != other.Scene) return false; - if (Icon != other.Icon) return false; - if (ResPath != other.ResPath) return false; - if (ConsumableType != other.ConsumableType) return false; - if (Durations != other.Durations) return false; - if (IsPickup != other.IsPickup) return false; - if (Num != other.Num) return false; - if (Calculation != other.Calculation) return false; - if (LossTime != other.LossTime) return false; - if (PropServerId != other.PropServerId) return false; - if (Used != other.Used) return false; - if (UserId != other.UserId) return false; - if (RoomId != other.RoomId) return false; - if (TotalNum != other.TotalNum) return false; - if (RestNum != other.RestNum) return false; - if (Attribute != other.Attribute) 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 (Category.Length != 0) hash ^= Category.GetHashCode(); - if (Note.Length != 0) hash ^= Note.GetHashCode(); - if (Name.Length != 0) hash ^= Name.GetHashCode(); - if (Weight.Length != 0) hash ^= Weight.GetHashCode(); - if (Scene.Length != 0) hash ^= Scene.GetHashCode(); - if (Icon.Length != 0) hash ^= Icon.GetHashCode(); - if (ResPath.Length != 0) hash ^= ResPath.GetHashCode(); - if (ConsumableType.Length != 0) hash ^= ConsumableType.GetHashCode(); - if (Durations.Length != 0) hash ^= Durations.GetHashCode(); - if (IsPickup.Length != 0) hash ^= IsPickup.GetHashCode(); - if (Num != 0) hash ^= Num.GetHashCode(); - if (Calculation != false) hash ^= Calculation.GetHashCode(); - if (LossTime != 0) hash ^= LossTime.GetHashCode(); - if (PropServerId.Length != 0) hash ^= PropServerId.GetHashCode(); - if (Used != false) hash ^= Used.GetHashCode(); - if (UserId.Length != 0) hash ^= UserId.GetHashCode(); - if (RoomId.Length != 0) hash ^= RoomId.GetHashCode(); - if (TotalNum != 0) hash ^= TotalNum.GetHashCode(); - if (RestNum != 0) hash ^= RestNum.GetHashCode(); - if (Attribute.Length != 0) hash ^= Attribute.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 (Category.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Category); - } - if (Note.Length != 0) { - output.WriteRawTag(26); - output.WriteString(Note); - } - if (Name.Length != 0) { - output.WriteRawTag(34); - output.WriteString(Name); - } - if (Weight.Length != 0) { - output.WriteRawTag(42); - output.WriteString(Weight); - } - if (Scene.Length != 0) { - output.WriteRawTag(50); - output.WriteString(Scene); - } - if (Icon.Length != 0) { - output.WriteRawTag(58); - output.WriteString(Icon); - } - if (ResPath.Length != 0) { - output.WriteRawTag(66); - output.WriteString(ResPath); - } - if (ConsumableType.Length != 0) { - output.WriteRawTag(74); - output.WriteString(ConsumableType); - } - if (Durations.Length != 0) { - output.WriteRawTag(82); - output.WriteString(Durations); - } - if (IsPickup.Length != 0) { - output.WriteRawTag(90); - output.WriteString(IsPickup); - } - if (Num != 0) { - output.WriteRawTag(96); - output.WriteInt32(Num); - } - if (Calculation != false) { - output.WriteRawTag(104); - output.WriteBool(Calculation); - } - if (LossTime != 0) { - output.WriteRawTag(112); - output.WriteInt32(LossTime); - } - if (PropServerId.Length != 0) { - output.WriteRawTag(122); - output.WriteString(PropServerId); - } - if (Used != false) { - output.WriteRawTag(128, 1); - output.WriteBool(Used); - } - if (UserId.Length != 0) { - output.WriteRawTag(138, 1); - output.WriteString(UserId); - } - if (RoomId.Length != 0) { - output.WriteRawTag(146, 1); - output.WriteString(RoomId); - } - if (TotalNum != 0) { - output.WriteRawTag(152, 1); - output.WriteInt32(TotalNum); - } - if (RestNum != 0) { - output.WriteRawTag(160, 1); - output.WriteInt32(RestNum); - } - if (Attribute.Length != 0) { - output.WriteRawTag(170, 1); - output.WriteString(Attribute); - } - 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 (Category.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Category); - } - if (Note.Length != 0) { - output.WriteRawTag(26); - output.WriteString(Note); - } - if (Name.Length != 0) { - output.WriteRawTag(34); - output.WriteString(Name); - } - if (Weight.Length != 0) { - output.WriteRawTag(42); - output.WriteString(Weight); - } - if (Scene.Length != 0) { - output.WriteRawTag(50); - output.WriteString(Scene); - } - if (Icon.Length != 0) { - output.WriteRawTag(58); - output.WriteString(Icon); - } - if (ResPath.Length != 0) { - output.WriteRawTag(66); - output.WriteString(ResPath); - } - if (ConsumableType.Length != 0) { - output.WriteRawTag(74); - output.WriteString(ConsumableType); - } - if (Durations.Length != 0) { - output.WriteRawTag(82); - output.WriteString(Durations); - } - if (IsPickup.Length != 0) { - output.WriteRawTag(90); - output.WriteString(IsPickup); - } - if (Num != 0) { - output.WriteRawTag(96); - output.WriteInt32(Num); - } - if (Calculation != false) { - output.WriteRawTag(104); - output.WriteBool(Calculation); - } - if (LossTime != 0) { - output.WriteRawTag(112); - output.WriteInt32(LossTime); - } - if (PropServerId.Length != 0) { - output.WriteRawTag(122); - output.WriteString(PropServerId); - } - if (Used != false) { - output.WriteRawTag(128, 1); - output.WriteBool(Used); - } - if (UserId.Length != 0) { - output.WriteRawTag(138, 1); - output.WriteString(UserId); - } - if (RoomId.Length != 0) { - output.WriteRawTag(146, 1); - output.WriteString(RoomId); - } - if (TotalNum != 0) { - output.WriteRawTag(152, 1); - output.WriteInt32(TotalNum); - } - if (RestNum != 0) { - output.WriteRawTag(160, 1); - output.WriteInt32(RestNum); - } - if (Attribute.Length != 0) { - output.WriteRawTag(170, 1); - output.WriteString(Attribute); - } - 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 (Category.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Category); - } - if (Note.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Note); - } - if (Name.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); - } - if (Weight.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Weight); - } - if (Scene.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Scene); - } - if (Icon.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Icon); - } - if (ResPath.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResPath); - } - if (ConsumableType.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ConsumableType); - } - if (Durations.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Durations); - } - if (IsPickup.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(IsPickup); - } - if (Num != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(Num); - } - if (Calculation != false) { - size += 1 + 1; - } - if (LossTime != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(LossTime); - } - if (PropServerId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(PropServerId); - } - if (Used != false) { - size += 2 + 1; - } - if (UserId.Length != 0) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(UserId); - } - if (RoomId.Length != 0) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(RoomId); - } - if (TotalNum != 0) { - size += 2 + pb::CodedOutputStream.ComputeInt32Size(TotalNum); - } - if (RestNum != 0) { - size += 2 + pb::CodedOutputStream.ComputeInt32Size(RestNum); - } - if (Attribute.Length != 0) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(Attribute); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(PropModelResponse other) { - if (other == null) { - return; - } - if (other.Id.Length != 0) { - Id = other.Id; - } - if (other.Category.Length != 0) { - Category = other.Category; - } - if (other.Note.Length != 0) { - Note = other.Note; - } - if (other.Name.Length != 0) { - Name = other.Name; - } - if (other.Weight.Length != 0) { - Weight = other.Weight; - } - if (other.Scene.Length != 0) { - Scene = other.Scene; - } - if (other.Icon.Length != 0) { - Icon = other.Icon; - } - if (other.ResPath.Length != 0) { - ResPath = other.ResPath; - } - if (other.ConsumableType.Length != 0) { - ConsumableType = other.ConsumableType; - } - if (other.Durations.Length != 0) { - Durations = other.Durations; - } - if (other.IsPickup.Length != 0) { - IsPickup = other.IsPickup; - } - if (other.Num != 0) { - Num = other.Num; - } - if (other.Calculation != false) { - Calculation = other.Calculation; - } - if (other.LossTime != 0) { - LossTime = other.LossTime; - } - if (other.PropServerId.Length != 0) { - PropServerId = other.PropServerId; - } - if (other.Used != false) { - Used = other.Used; - } - if (other.UserId.Length != 0) { - UserId = other.UserId; - } - if (other.RoomId.Length != 0) { - RoomId = other.RoomId; - } - if (other.TotalNum != 0) { - TotalNum = other.TotalNum; - } - if (other.RestNum != 0) { - RestNum = other.RestNum; - } - if (other.Attribute.Length != 0) { - Attribute = other.Attribute; - } - _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: { - Category = input.ReadString(); - break; - } - case 26: { - Note = input.ReadString(); - break; - } - case 34: { - Name = input.ReadString(); - break; - } - case 42: { - Weight = input.ReadString(); - break; - } - case 50: { - Scene = input.ReadString(); - break; - } - case 58: { - Icon = input.ReadString(); - break; - } - case 66: { - ResPath = input.ReadString(); - break; - } - case 74: { - ConsumableType = input.ReadString(); - break; - } - case 82: { - Durations = input.ReadString(); - break; - } - case 90: { - IsPickup = input.ReadString(); - break; - } - case 96: { - Num = input.ReadInt32(); - break; - } - case 104: { - Calculation = input.ReadBool(); - break; - } - case 112: { - LossTime = input.ReadInt32(); - break; - } - case 122: { - PropServerId = input.ReadString(); - break; - } - case 128: { - Used = input.ReadBool(); - break; - } - case 138: { - UserId = input.ReadString(); - break; - } - case 146: { - RoomId = input.ReadString(); - break; - } - case 152: { - TotalNum = input.ReadInt32(); - break; - } - case 160: { - RestNum = input.ReadInt32(); - break; - } - case 170: { - Attribute = 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: { - Category = input.ReadString(); - break; - } - case 26: { - Note = input.ReadString(); - break; - } - case 34: { - Name = input.ReadString(); - break; - } - case 42: { - Weight = input.ReadString(); - break; - } - case 50: { - Scene = input.ReadString(); - break; - } - case 58: { - Icon = input.ReadString(); - break; - } - case 66: { - ResPath = input.ReadString(); - break; - } - case 74: { - ConsumableType = input.ReadString(); - break; - } - case 82: { - Durations = input.ReadString(); - break; - } - case 90: { - IsPickup = input.ReadString(); - break; - } - case 96: { - Num = input.ReadInt32(); - break; - } - case 104: { - Calculation = input.ReadBool(); - break; - } - case 112: { - LossTime = input.ReadInt32(); - break; - } - case 122: { - PropServerId = input.ReadString(); - break; - } - case 128: { - Used = input.ReadBool(); - break; - } - case 138: { - UserId = input.ReadString(); - break; - } - case 146: { - RoomId = input.ReadString(); - break; - } - case 152: { - TotalNum = input.ReadInt32(); - break; - } - case 160: { - RestNum = input.ReadInt32(); - break; - } - case 170: { - Attribute = input.ReadString(); - break; - } - } - } - } - #endif - -} - -#endregion - - -#endregion Designer generated code diff --git a/Proto/Prop.cs.meta b/Proto/Prop.cs.meta deleted file mode 100644 index c8ce4cf..0000000 --- a/Proto/Prop.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 66a0cd6fc174b4042b409c9030c08516 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Proto/Room.cs b/Proto/Room.cs deleted file mode 100644 index 25ba006..0000000 --- a/Proto/Room.cs +++ /dev/null @@ -1,4094 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: room.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 room.proto -public static partial class RoomReflection { - - #region Descriptor - /// File descriptor for room.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static RoomReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cgpyb29tLnByb3RvIqAEChRSb29tVGVtcGxhdGVSZXNwb25zZRIKCgJJZBgB", - "IAEoAxIUCgxUZW1wbGF0ZU5hbWUYAiABKAkSEQoJQ29tcGFueUlkGAMgASgJ", - "Eg8KB1NjZW5lSWQYBCABKAkSEQoJU3ViamVjdElkGAUgASgJEg4KBlN0YXR1", - "cxgGIAEoCRISCgpJc1RlbXBsYXRlGAcgASgJEhAKCENyZWF0ZUJ5GAggASgJ", - "EhIKCkNyZWF0ZVRpbWUYCSABKAkSEAoIVXBkYXRlQnkYCiABKAkSEgoKVXBk", - "YXRlVGltZRgLIAEoCRIOCgZSZW1hcmsYDCABKAkSDAoETW9kZRgNIAEoCRIY", - "ChBEaXNhc3RlckxvY2F0aW9uGA4gASgJEhAKCEZpcmV3YWxsGA8gASgJEiEK", - "C3Rhc2tPcm1EYXRhGBAgAygLMgwuVGFza09ybURhdGESJQoNc2VsZWN0T3Jt", - "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", "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::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 - -} -#region Messages -[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] -public sealed partial class RoomTemplateResponse : pb::IMessage -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage -#endif -{ - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RoomTemplateResponse()); - 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[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 RoomTemplateResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public RoomTemplateResponse(RoomTemplateResponse other) : this() { - id_ = other.id_; - templateName_ = other.templateName_; - companyId_ = other.companyId_; - sceneId_ = other.sceneId_; - subjectId_ = other.subjectId_; - status_ = other.status_; - isTemplate_ = other.isTemplate_; - createBy_ = other.createBy_; - createTime_ = other.createTime_; - updateBy_ = other.updateBy_; - updateTime_ = other.updateTime_; - remark_ = other.remark_; - mode_ = other.mode_; - disasterLocation_ = other.disasterLocation_; - firewall_ = other.firewall_; - taskOrmData_ = other.taskOrmData_.Clone(); - selectOrmData_ = other.selectOrmData_.Clone(); - objectOrmData_ = other.objectOrmData_.Clone(); - gamePosition_ = other.gamePosition_; - initFireRadius_ = other.initFireRadius_; - initFireTime_ = other.initFireTime_; - addFireRadius_ = other.addFireRadius_; - addFireValue_ = other.addFireValue_; - maxFirewall_ = other.maxFirewall_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public RoomTemplateResponse Clone() { - return new RoomTemplateResponse(this); - } - - /// Field number for the "Id" field. - public const int IdFieldNumber = 1; - private long id_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long Id { - get { return id_; } - set { - id_ = value; - } - } - - /// Field number for the "TemplateName" field. - public const int TemplateNameFieldNumber = 2; - private string templateName_ = ""; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string TemplateName { - get { return templateName_; } - set { - templateName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "CompanyId" field. - public const int CompanyIdFieldNumber = 3; - private string companyId_ = ""; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CompanyId { - get { return companyId_; } - set { - companyId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "SceneId" field. - public const int SceneIdFieldNumber = 4; - private string sceneId_ = ""; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string SceneId { - get { return sceneId_; } - set { - sceneId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "SubjectId" field. - public const int SubjectIdFieldNumber = 5; - private string subjectId_ = ""; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string SubjectId { - get { return subjectId_; } - set { - subjectId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "Status" field. - public const int StatusFieldNumber = 6; - 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 "IsTemplate" field. - public const int IsTemplateFieldNumber = 7; - private string isTemplate_ = ""; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string IsTemplate { - get { return isTemplate_; } - set { - isTemplate_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "CreateBy" field. - public const int CreateByFieldNumber = 8; - private string createBy_ = ""; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CreateBy { - get { return createBy_; } - set { - createBy_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "CreateTime" field. - public const int CreateTimeFieldNumber = 9; - 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 "UpdateBy" field. - public const int UpdateByFieldNumber = 10; - private string updateBy_ = ""; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string UpdateBy { - get { return updateBy_; } - set { - updateBy_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "UpdateTime" field. - public const int UpdateTimeFieldNumber = 11; - 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 "Remark" field. - public const int RemarkFieldNumber = 12; - private string remark_ = ""; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Remark { - get { return remark_; } - set { - remark_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "Mode" field. - public const int ModeFieldNumber = 13; - private string mode_ = ""; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Mode { - get { return mode_; } - set { - mode_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "DisasterLocation" field. - public const int DisasterLocationFieldNumber = 14; - private string disasterLocation_ = ""; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string DisasterLocation { - get { return disasterLocation_; } - set { - disasterLocation_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "Firewall" field. - public const int FirewallFieldNumber = 15; - private string firewall_ = ""; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Firewall { - get { return firewall_; } - set { - firewall_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "taskOrmData" field. - public const int TaskOrmDataFieldNumber = 16; - private static readonly pb::FieldCodec _repeated_taskOrmData_codec - = pb::FieldCodec.ForMessage(130, global::TaskOrmData.Parser); - private readonly pbc::RepeatedField taskOrmData_ = new pbc::RepeatedField(); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField TaskOrmData { - get { return taskOrmData_; } - } - - /// Field number for the "selectOrmData" field. - public const int SelectOrmDataFieldNumber = 17; - private static readonly pb::FieldCodec _repeated_selectOrmData_codec - = pb::FieldCodec.ForMessage(138, global::SelectOrmData.Parser); - private readonly pbc::RepeatedField selectOrmData_ = new pbc::RepeatedField(); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField SelectOrmData { - get { return selectOrmData_; } - } - - /// Field 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) { - return Equals(other as RoomTemplateResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(RoomTemplateResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Id != other.Id) return false; - if (TemplateName != other.TemplateName) return false; - if (CompanyId != other.CompanyId) return false; - if (SceneId != other.SceneId) return false; - if (SubjectId != other.SubjectId) return false; - if (Status != other.Status) return false; - if (IsTemplate != other.IsTemplate) return false; - if (CreateBy != other.CreateBy) return false; - if (CreateTime != other.CreateTime) return false; - if (UpdateBy != other.UpdateBy) return false; - if (UpdateTime != other.UpdateTime) return false; - if (Remark != other.Remark) return false; - if (Mode != other.Mode) return false; - if (DisasterLocation != other.DisasterLocation) return false; - if (Firewall != other.Firewall) return false; - if(!taskOrmData_.Equals(other.taskOrmData_)) return false; - if(!selectOrmData_.Equals(other.selectOrmData_)) return false; - if(!objectOrmData_.Equals(other.objectOrmData_)) return false; - if (GamePosition != other.GamePosition) return false; - if (InitFireRadius != other.InitFireRadius) return false; - if (InitFireTime != other.InitFireTime) return false; - if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(AddFireRadius, other.AddFireRadius)) return false; - if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(AddFireValue, other.AddFireValue)) return false; - if (MaxFirewall != other.MaxFirewall) 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 != 0L) hash ^= Id.GetHashCode(); - if (TemplateName.Length != 0) hash ^= TemplateName.GetHashCode(); - if (CompanyId.Length != 0) hash ^= CompanyId.GetHashCode(); - if (SceneId.Length != 0) hash ^= SceneId.GetHashCode(); - if (SubjectId.Length != 0) hash ^= SubjectId.GetHashCode(); - if (Status.Length != 0) hash ^= Status.GetHashCode(); - if (IsTemplate.Length != 0) hash ^= IsTemplate.GetHashCode(); - if (CreateBy.Length != 0) hash ^= CreateBy.GetHashCode(); - if (CreateTime.Length != 0) hash ^= CreateTime.GetHashCode(); - if (UpdateBy.Length != 0) hash ^= UpdateBy.GetHashCode(); - if (UpdateTime.Length != 0) hash ^= UpdateTime.GetHashCode(); - if (Remark.Length != 0) hash ^= Remark.GetHashCode(); - if (Mode.Length != 0) hash ^= Mode.GetHashCode(); - if (DisasterLocation.Length != 0) hash ^= DisasterLocation.GetHashCode(); - if (Firewall.Length != 0) hash ^= Firewall.GetHashCode(); - hash ^= taskOrmData_.GetHashCode(); - hash ^= selectOrmData_.GetHashCode(); - hash ^= objectOrmData_.GetHashCode(); - if (GamePosition.Length != 0) hash ^= GamePosition.GetHashCode(); - if (InitFireRadius != 0) hash ^= InitFireRadius.GetHashCode(); - if (InitFireTime != 0) hash ^= InitFireTime.GetHashCode(); - if (AddFireRadius != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(AddFireRadius); - if (AddFireValue != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(AddFireValue); - if (MaxFirewall != 0) hash ^= MaxFirewall.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 != 0L) { - output.WriteRawTag(8); - output.WriteInt64(Id); - } - if (TemplateName.Length != 0) { - output.WriteRawTag(18); - output.WriteString(TemplateName); - } - if (CompanyId.Length != 0) { - output.WriteRawTag(26); - output.WriteString(CompanyId); - } - if (SceneId.Length != 0) { - output.WriteRawTag(34); - output.WriteString(SceneId); - } - if (SubjectId.Length != 0) { - output.WriteRawTag(42); - output.WriteString(SubjectId); - } - if (Status.Length != 0) { - output.WriteRawTag(50); - output.WriteString(Status); - } - if (IsTemplate.Length != 0) { - output.WriteRawTag(58); - output.WriteString(IsTemplate); - } - if (CreateBy.Length != 0) { - output.WriteRawTag(66); - output.WriteString(CreateBy); - } - if (CreateTime.Length != 0) { - output.WriteRawTag(74); - output.WriteString(CreateTime); - } - if (UpdateBy.Length != 0) { - output.WriteRawTag(82); - output.WriteString(UpdateBy); - } - if (UpdateTime.Length != 0) { - output.WriteRawTag(90); - output.WriteString(UpdateTime); - } - if (Remark.Length != 0) { - output.WriteRawTag(98); - output.WriteString(Remark); - } - if (Mode.Length != 0) { - output.WriteRawTag(106); - output.WriteString(Mode); - } - if (DisasterLocation.Length != 0) { - output.WriteRawTag(114); - output.WriteString(DisasterLocation); - } - if (Firewall.Length != 0) { - output.WriteRawTag(122); - output.WriteString(Firewall); - } - taskOrmData_.WriteTo(output, _repeated_taskOrmData_codec); - selectOrmData_.WriteTo(output, _repeated_selectOrmData_codec); - objectOrmData_.WriteTo(output, _repeated_objectOrmData_codec); - if (GamePosition.Length != 0) { - output.WriteRawTag(178, 1); - output.WriteString(GamePosition); - } - if (InitFireRadius != 0) { - output.WriteRawTag(184, 1); - output.WriteInt32(InitFireRadius); - } - if (InitFireTime != 0) { - output.WriteRawTag(192, 1); - output.WriteInt32(InitFireTime); - } - if (AddFireRadius != 0F) { - output.WriteRawTag(205, 1); - output.WriteFloat(AddFireRadius); - } - if (AddFireValue != 0F) { - output.WriteRawTag(213, 1); - output.WriteFloat(AddFireValue); - } - if (MaxFirewall != 0) { - output.WriteRawTag(216, 1); - output.WriteInt32(MaxFirewall); - } - 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 != 0L) { - output.WriteRawTag(8); - output.WriteInt64(Id); - } - if (TemplateName.Length != 0) { - output.WriteRawTag(18); - output.WriteString(TemplateName); - } - if (CompanyId.Length != 0) { - output.WriteRawTag(26); - output.WriteString(CompanyId); - } - if (SceneId.Length != 0) { - output.WriteRawTag(34); - output.WriteString(SceneId); - } - if (SubjectId.Length != 0) { - output.WriteRawTag(42); - output.WriteString(SubjectId); - } - if (Status.Length != 0) { - output.WriteRawTag(50); - output.WriteString(Status); - } - if (IsTemplate.Length != 0) { - output.WriteRawTag(58); - output.WriteString(IsTemplate); - } - if (CreateBy.Length != 0) { - output.WriteRawTag(66); - output.WriteString(CreateBy); - } - if (CreateTime.Length != 0) { - output.WriteRawTag(74); - output.WriteString(CreateTime); - } - if (UpdateBy.Length != 0) { - output.WriteRawTag(82); - output.WriteString(UpdateBy); - } - if (UpdateTime.Length != 0) { - output.WriteRawTag(90); - output.WriteString(UpdateTime); - } - if (Remark.Length != 0) { - output.WriteRawTag(98); - output.WriteString(Remark); - } - if (Mode.Length != 0) { - output.WriteRawTag(106); - output.WriteString(Mode); - } - if (DisasterLocation.Length != 0) { - output.WriteRawTag(114); - output.WriteString(DisasterLocation); - } - if (Firewall.Length != 0) { - output.WriteRawTag(122); - output.WriteString(Firewall); - } - taskOrmData_.WriteTo(ref output, _repeated_taskOrmData_codec); - selectOrmData_.WriteTo(ref output, _repeated_selectOrmData_codec); - objectOrmData_.WriteTo(ref output, _repeated_objectOrmData_codec); - if (GamePosition.Length != 0) { - output.WriteRawTag(178, 1); - output.WriteString(GamePosition); - } - if (InitFireRadius != 0) { - output.WriteRawTag(184, 1); - output.WriteInt32(InitFireRadius); - } - if (InitFireTime != 0) { - output.WriteRawTag(192, 1); - output.WriteInt32(InitFireTime); - } - if (AddFireRadius != 0F) { - output.WriteRawTag(205, 1); - output.WriteFloat(AddFireRadius); - } - if (AddFireValue != 0F) { - output.WriteRawTag(213, 1); - output.WriteFloat(AddFireValue); - } - if (MaxFirewall != 0) { - output.WriteRawTag(216, 1); - output.WriteInt32(MaxFirewall); - } - 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 != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(Id); - } - if (TemplateName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(TemplateName); - } - if (CompanyId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CompanyId); - } - if (SceneId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(SceneId); - } - if (SubjectId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(SubjectId); - } - if (Status.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Status); - } - if (IsTemplate.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(IsTemplate); - } - if (CreateBy.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CreateBy); - } - if (CreateTime.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CreateTime); - } - if (UpdateBy.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(UpdateBy); - } - if (UpdateTime.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(UpdateTime); - } - if (Remark.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Remark); - } - if (Mode.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Mode); - } - if (DisasterLocation.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(DisasterLocation); - } - if (Firewall.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Firewall); - } - size += taskOrmData_.CalculateSize(_repeated_taskOrmData_codec); - size += selectOrmData_.CalculateSize(_repeated_selectOrmData_codec); - size += objectOrmData_.CalculateSize(_repeated_objectOrmData_codec); - if (GamePosition.Length != 0) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(GamePosition); - } - if (InitFireRadius != 0) { - size += 2 + pb::CodedOutputStream.ComputeInt32Size(InitFireRadius); - } - if (InitFireTime != 0) { - size += 2 + pb::CodedOutputStream.ComputeInt32Size(InitFireTime); - } - if (AddFireRadius != 0F) { - size += 2 + 4; - } - if (AddFireValue != 0F) { - size += 2 + 4; - } - if (MaxFirewall != 0) { - size += 2 + pb::CodedOutputStream.ComputeInt32Size(MaxFirewall); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(RoomTemplateResponse other) { - if (other == null) { - return; - } - if (other.Id != 0L) { - Id = other.Id; - } - if (other.TemplateName.Length != 0) { - TemplateName = other.TemplateName; - } - if (other.CompanyId.Length != 0) { - CompanyId = other.CompanyId; - } - if (other.SceneId.Length != 0) { - SceneId = other.SceneId; - } - if (other.SubjectId.Length != 0) { - SubjectId = other.SubjectId; - } - if (other.Status.Length != 0) { - Status = other.Status; - } - if (other.IsTemplate.Length != 0) { - IsTemplate = other.IsTemplate; - } - if (other.CreateBy.Length != 0) { - CreateBy = other.CreateBy; - } - if (other.CreateTime.Length != 0) { - CreateTime = other.CreateTime; - } - if (other.UpdateBy.Length != 0) { - UpdateBy = other.UpdateBy; - } - if (other.UpdateTime.Length != 0) { - UpdateTime = other.UpdateTime; - } - if (other.Remark.Length != 0) { - Remark = other.Remark; - } - if (other.Mode.Length != 0) { - Mode = other.Mode; - } - if (other.DisasterLocation.Length != 0) { - DisasterLocation = other.DisasterLocation; - } - if (other.Firewall.Length != 0) { - Firewall = other.Firewall; - } - taskOrmData_.Add(other.taskOrmData_); - selectOrmData_.Add(other.selectOrmData_); - objectOrmData_.Add(other.objectOrmData_); - if (other.GamePosition.Length != 0) { - GamePosition = other.GamePosition; - } - if (other.InitFireRadius != 0) { - InitFireRadius = other.InitFireRadius; - } - if (other.InitFireTime != 0) { - InitFireTime = other.InitFireTime; - } - if (other.AddFireRadius != 0F) { - AddFireRadius = other.AddFireRadius; - } - if (other.AddFireValue != 0F) { - AddFireValue = other.AddFireValue; - } - if (other.MaxFirewall != 0) { - MaxFirewall = other.MaxFirewall; - } - _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: { - Id = input.ReadInt64(); - break; - } - case 18: { - TemplateName = input.ReadString(); - break; - } - case 26: { - CompanyId = input.ReadString(); - break; - } - case 34: { - SceneId = input.ReadString(); - break; - } - case 42: { - SubjectId = input.ReadString(); - break; - } - case 50: { - Status = input.ReadString(); - break; - } - case 58: { - IsTemplate = input.ReadString(); - break; - } - case 66: { - CreateBy = input.ReadString(); - break; - } - case 74: { - CreateTime = input.ReadString(); - break; - } - case 82: { - UpdateBy = input.ReadString(); - break; - } - case 90: { - UpdateTime = input.ReadString(); - break; - } - case 98: { - Remark = input.ReadString(); - break; - } - case 106: { - Mode = input.ReadString(); - break; - } - case 114: { - DisasterLocation = input.ReadString(); - break; - } - case 122: { - Firewall = input.ReadString(); - break; - } - case 130: { - taskOrmData_.AddEntriesFrom(input, _repeated_taskOrmData_codec); - break; - } - case 138: { - selectOrmData_.AddEntriesFrom(input, _repeated_selectOrmData_codec); - break; - } - case 146: { - objectOrmData_.AddEntriesFrom(input, _repeated_objectOrmData_codec); - break; - } - case 178: { - GamePosition = input.ReadString(); - break; - } - case 184: { - InitFireRadius = input.ReadInt32(); - break; - } - case 192: { - InitFireTime = input.ReadInt32(); - break; - } - case 205: { - AddFireRadius = input.ReadFloat(); - break; - } - case 213: { - AddFireValue = input.ReadFloat(); - break; - } - case 216: { - MaxFirewall = input.ReadInt32(); - 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: { - Id = input.ReadInt64(); - break; - } - case 18: { - TemplateName = input.ReadString(); - break; - } - case 26: { - CompanyId = input.ReadString(); - break; - } - case 34: { - SceneId = input.ReadString(); - break; - } - case 42: { - SubjectId = input.ReadString(); - break; - } - case 50: { - Status = input.ReadString(); - break; - } - case 58: { - IsTemplate = input.ReadString(); - break; - } - case 66: { - CreateBy = input.ReadString(); - break; - } - case 74: { - CreateTime = input.ReadString(); - break; - } - case 82: { - UpdateBy = input.ReadString(); - break; - } - case 90: { - UpdateTime = input.ReadString(); - break; - } - case 98: { - Remark = input.ReadString(); - break; - } - case 106: { - Mode = input.ReadString(); - break; - } - case 114: { - DisasterLocation = input.ReadString(); - break; - } - case 122: { - Firewall = input.ReadString(); - break; - } - case 130: { - taskOrmData_.AddEntriesFrom(ref input, _repeated_taskOrmData_codec); - break; - } - case 138: { - selectOrmData_.AddEntriesFrom(ref input, _repeated_selectOrmData_codec); - break; - } - case 146: { - objectOrmData_.AddEntriesFrom(ref input, _repeated_objectOrmData_codec); - break; - } - case 178: { - GamePosition = input.ReadString(); - break; - } - case 184: { - InitFireRadius = input.ReadInt32(); - break; - } - case 192: { - InitFireTime = input.ReadInt32(); - break; - } - case 205: { - AddFireRadius = input.ReadFloat(); - break; - } - case 213: { - AddFireValue = input.ReadFloat(); - break; - } - case 216: { - MaxFirewall = input.ReadInt32(); - break; - } - } - } - } - #endif - -} - -[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] -public sealed partial class TaskOrmData : pb::IMessage -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage -#endif -{ - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TaskOrmData()); - 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[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 TaskOrmData() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TaskOrmData(TaskOrmData other) : this() { - id_ = other.id_; - taskName_ = other.taskName_; - gameName_ = other.gameName_; - gameType_ = other.gameType_; - gameDesc_ = other.gameDesc_; - gamePlayScript_ = other.gamePlayScript_; - gameTrigger_ = other.gameTrigger_; - gameTriggerLogic_ = other.gameTriggerLogic_; - gameOverseeCond_ = other.gameOverseeCond_; - gameTimeLimit_ = other.gameTimeLimit_; - gameRole_ = other.gameRole_; - gameSelects_ = other.gameSelects_; - gameTargetType_ = other.gameTargetType_; - gameTargetsFirst_ = other.gameTargetsFirst_; - gameTargetsSecond_ = other.gameTargetsSecond_; - gameTargetsSecondLogic_ = other.gameTargetsSecondLogic_; - gameExtraValue_ = other.gameExtraValue_; - gameSort_ = other.gameSort_; - gameIsShow_ = other.gameIsShow_; - gameExclusive_ = other.gameExclusive_; - gameReward_ = other.gameReward_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TaskOrmData Clone() { - return new TaskOrmData(this); - } - - /// Field number for the "Id" field. - public const int IdFieldNumber = 1; - private long id_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long Id { - get { return id_; } - set { - id_ = value; - } - } - - /// Field number for the "TaskName" field. - public const int TaskNameFieldNumber = 2; - private string taskName_ = ""; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string TaskName { - get { return taskName_; } - set { - taskName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "GameName" field. - public const int GameNameFieldNumber = 3; - private string gameName_ = ""; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string GameName { - get { return gameName_; } - set { - gameName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "GameType" field. - public const int GameTypeFieldNumber = 4; - private int gameType_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int GameType { - get { return gameType_; } - set { - gameType_ = value; - } - } - - /// Field number for the "GameDesc" field. - public const int GameDescFieldNumber = 5; - private string gameDesc_ = ""; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string GameDesc { - get { return gameDesc_; } - set { - gameDesc_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "GamePlayScript" field. - public const int GamePlayScriptFieldNumber = 6; - private string gamePlayScript_ = ""; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string GamePlayScript { - get { return gamePlayScript_; } - set { - gamePlayScript_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "GameTrigger" field. - public const int GameTriggerFieldNumber = 7; - private string gameTrigger_ = ""; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string GameTrigger { - get { return gameTrigger_; } - set { - gameTrigger_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "GameTriggerLogic" field. - public const int GameTriggerLogicFieldNumber = 8; - private string gameTriggerLogic_ = ""; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string GameTriggerLogic { - get { return gameTriggerLogic_; } - set { - gameTriggerLogic_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "GameOverseeCond" field. - public const int GameOverseeCondFieldNumber = 9; - private string gameOverseeCond_ = ""; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string GameOverseeCond { - get { return gameOverseeCond_; } - set { - gameOverseeCond_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "GameTimeLimit" field. - public const int GameTimeLimitFieldNumber = 10; - private string gameTimeLimit_ = ""; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string GameTimeLimit { - get { return gameTimeLimit_; } - set { - gameTimeLimit_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "GameRole" field. - public const int GameRoleFieldNumber = 11; - private string gameRole_ = ""; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string GameRole { - get { return gameRole_; } - set { - gameRole_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "GameSelects" field. - public const int GameSelectsFieldNumber = 12; - private string gameSelects_ = ""; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string GameSelects { - get { return gameSelects_; } - set { - gameSelects_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "GameTargetType" field. - public const int GameTargetTypeFieldNumber = 13; - private string gameTargetType_ = ""; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string GameTargetType { - get { return gameTargetType_; } - set { - gameTargetType_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "GameTargetsFirst" field. - public const int GameTargetsFirstFieldNumber = 14; - private string gameTargetsFirst_ = ""; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string GameTargetsFirst { - get { return gameTargetsFirst_; } - set { - gameTargetsFirst_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "GameTargetsSecond" field. - public const int GameTargetsSecondFieldNumber = 15; - private string gameTargetsSecond_ = ""; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string GameTargetsSecond { - get { return gameTargetsSecond_; } - set { - gameTargetsSecond_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "GameTargetsSecondLogic" field. - public const int GameTargetsSecondLogicFieldNumber = 16; - private string gameTargetsSecondLogic_ = ""; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string GameTargetsSecondLogic { - get { return gameTargetsSecondLogic_; } - set { - gameTargetsSecondLogic_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "GameExtraValue" field. - public const int GameExtraValueFieldNumber = 17; - private string gameExtraValue_ = ""; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string GameExtraValue { - get { return gameExtraValue_; } - set { - gameExtraValue_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "GameSort" field. - public const int GameSortFieldNumber = 18; - private string gameSort_ = ""; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string GameSort { - get { return gameSort_; } - set { - gameSort_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "GameIsShow" field. - public const int GameIsShowFieldNumber = 19; - private string gameIsShow_ = ""; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string GameIsShow { - get { return gameIsShow_; } - set { - gameIsShow_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "GameExclusive" field. - public const int GameExclusiveFieldNumber = 20; - private string gameExclusive_ = ""; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string GameExclusive { - get { return gameExclusive_; } - set { - gameExclusive_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "GameReward" field. - public const int GameRewardFieldNumber = 21; - private string gameReward_ = ""; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string GameReward { - get { return gameReward_; } - set { - gameReward_ = 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 TaskOrmData); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(TaskOrmData other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Id != other.Id) return false; - if (TaskName != other.TaskName) return false; - if (GameName != other.GameName) return false; - if (GameType != other.GameType) return false; - if (GameDesc != other.GameDesc) return false; - if (GamePlayScript != other.GamePlayScript) return false; - if (GameTrigger != other.GameTrigger) return false; - if (GameTriggerLogic != other.GameTriggerLogic) return false; - if (GameOverseeCond != other.GameOverseeCond) return false; - if (GameTimeLimit != other.GameTimeLimit) return false; - if (GameRole != other.GameRole) return false; - if (GameSelects != other.GameSelects) return false; - if (GameTargetType != other.GameTargetType) return false; - if (GameTargetsFirst != other.GameTargetsFirst) return false; - if (GameTargetsSecond != other.GameTargetsSecond) return false; - if (GameTargetsSecondLogic != other.GameTargetsSecondLogic) return false; - if (GameExtraValue != other.GameExtraValue) return false; - if (GameSort != other.GameSort) return false; - if (GameIsShow != other.GameIsShow) return false; - if (GameExclusive != other.GameExclusive) return false; - if (GameReward != other.GameReward) 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 != 0L) hash ^= Id.GetHashCode(); - if (TaskName.Length != 0) hash ^= TaskName.GetHashCode(); - if (GameName.Length != 0) hash ^= GameName.GetHashCode(); - if (GameType != 0) hash ^= GameType.GetHashCode(); - if (GameDesc.Length != 0) hash ^= GameDesc.GetHashCode(); - if (GamePlayScript.Length != 0) hash ^= GamePlayScript.GetHashCode(); - if (GameTrigger.Length != 0) hash ^= GameTrigger.GetHashCode(); - if (GameTriggerLogic.Length != 0) hash ^= GameTriggerLogic.GetHashCode(); - if (GameOverseeCond.Length != 0) hash ^= GameOverseeCond.GetHashCode(); - if (GameTimeLimit.Length != 0) hash ^= GameTimeLimit.GetHashCode(); - if (GameRole.Length != 0) hash ^= GameRole.GetHashCode(); - if (GameSelects.Length != 0) hash ^= GameSelects.GetHashCode(); - if (GameTargetType.Length != 0) hash ^= GameTargetType.GetHashCode(); - if (GameTargetsFirst.Length != 0) hash ^= GameTargetsFirst.GetHashCode(); - if (GameTargetsSecond.Length != 0) hash ^= GameTargetsSecond.GetHashCode(); - if (GameTargetsSecondLogic.Length != 0) hash ^= GameTargetsSecondLogic.GetHashCode(); - if (GameExtraValue.Length != 0) hash ^= GameExtraValue.GetHashCode(); - if (GameSort.Length != 0) hash ^= GameSort.GetHashCode(); - if (GameIsShow.Length != 0) hash ^= GameIsShow.GetHashCode(); - if (GameExclusive.Length != 0) hash ^= GameExclusive.GetHashCode(); - if (GameReward.Length != 0) hash ^= GameReward.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 != 0L) { - output.WriteRawTag(8); - output.WriteInt64(Id); - } - if (TaskName.Length != 0) { - output.WriteRawTag(18); - output.WriteString(TaskName); - } - if (GameName.Length != 0) { - output.WriteRawTag(26); - output.WriteString(GameName); - } - if (GameType != 0) { - output.WriteRawTag(32); - output.WriteInt32(GameType); - } - if (GameDesc.Length != 0) { - output.WriteRawTag(42); - output.WriteString(GameDesc); - } - if (GamePlayScript.Length != 0) { - output.WriteRawTag(50); - output.WriteString(GamePlayScript); - } - if (GameTrigger.Length != 0) { - output.WriteRawTag(58); - output.WriteString(GameTrigger); - } - if (GameTriggerLogic.Length != 0) { - output.WriteRawTag(66); - output.WriteString(GameTriggerLogic); - } - if (GameOverseeCond.Length != 0) { - output.WriteRawTag(74); - output.WriteString(GameOverseeCond); - } - if (GameTimeLimit.Length != 0) { - output.WriteRawTag(82); - output.WriteString(GameTimeLimit); - } - if (GameRole.Length != 0) { - output.WriteRawTag(90); - output.WriteString(GameRole); - } - if (GameSelects.Length != 0) { - output.WriteRawTag(98); - output.WriteString(GameSelects); - } - if (GameTargetType.Length != 0) { - output.WriteRawTag(106); - output.WriteString(GameTargetType); - } - if (GameTargetsFirst.Length != 0) { - output.WriteRawTag(114); - output.WriteString(GameTargetsFirst); - } - if (GameTargetsSecond.Length != 0) { - output.WriteRawTag(122); - output.WriteString(GameTargetsSecond); - } - if (GameTargetsSecondLogic.Length != 0) { - output.WriteRawTag(130, 1); - output.WriteString(GameTargetsSecondLogic); - } - if (GameExtraValue.Length != 0) { - output.WriteRawTag(138, 1); - output.WriteString(GameExtraValue); - } - if (GameSort.Length != 0) { - output.WriteRawTag(146, 1); - output.WriteString(GameSort); - } - if (GameIsShow.Length != 0) { - output.WriteRawTag(154, 1); - output.WriteString(GameIsShow); - } - if (GameExclusive.Length != 0) { - output.WriteRawTag(162, 1); - output.WriteString(GameExclusive); - } - if (GameReward.Length != 0) { - output.WriteRawTag(170, 1); - output.WriteString(GameReward); - } - 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 != 0L) { - output.WriteRawTag(8); - output.WriteInt64(Id); - } - if (TaskName.Length != 0) { - output.WriteRawTag(18); - output.WriteString(TaskName); - } - if (GameName.Length != 0) { - output.WriteRawTag(26); - output.WriteString(GameName); - } - if (GameType != 0) { - output.WriteRawTag(32); - output.WriteInt32(GameType); - } - if (GameDesc.Length != 0) { - output.WriteRawTag(42); - output.WriteString(GameDesc); - } - if (GamePlayScript.Length != 0) { - output.WriteRawTag(50); - output.WriteString(GamePlayScript); - } - if (GameTrigger.Length != 0) { - output.WriteRawTag(58); - output.WriteString(GameTrigger); - } - if (GameTriggerLogic.Length != 0) { - output.WriteRawTag(66); - output.WriteString(GameTriggerLogic); - } - if (GameOverseeCond.Length != 0) { - output.WriteRawTag(74); - output.WriteString(GameOverseeCond); - } - if (GameTimeLimit.Length != 0) { - output.WriteRawTag(82); - output.WriteString(GameTimeLimit); - } - if (GameRole.Length != 0) { - output.WriteRawTag(90); - output.WriteString(GameRole); - } - if (GameSelects.Length != 0) { - output.WriteRawTag(98); - output.WriteString(GameSelects); - } - if (GameTargetType.Length != 0) { - output.WriteRawTag(106); - output.WriteString(GameTargetType); - } - if (GameTargetsFirst.Length != 0) { - output.WriteRawTag(114); - output.WriteString(GameTargetsFirst); - } - if (GameTargetsSecond.Length != 0) { - output.WriteRawTag(122); - output.WriteString(GameTargetsSecond); - } - if (GameTargetsSecondLogic.Length != 0) { - output.WriteRawTag(130, 1); - output.WriteString(GameTargetsSecondLogic); - } - if (GameExtraValue.Length != 0) { - output.WriteRawTag(138, 1); - output.WriteString(GameExtraValue); - } - if (GameSort.Length != 0) { - output.WriteRawTag(146, 1); - output.WriteString(GameSort); - } - if (GameIsShow.Length != 0) { - output.WriteRawTag(154, 1); - output.WriteString(GameIsShow); - } - if (GameExclusive.Length != 0) { - output.WriteRawTag(162, 1); - output.WriteString(GameExclusive); - } - if (GameReward.Length != 0) { - output.WriteRawTag(170, 1); - output.WriteString(GameReward); - } - 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 != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(Id); - } - if (TaskName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(TaskName); - } - if (GameName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(GameName); - } - if (GameType != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(GameType); - } - if (GameDesc.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(GameDesc); - } - if (GamePlayScript.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(GamePlayScript); - } - if (GameTrigger.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(GameTrigger); - } - if (GameTriggerLogic.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(GameTriggerLogic); - } - if (GameOverseeCond.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(GameOverseeCond); - } - if (GameTimeLimit.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(GameTimeLimit); - } - if (GameRole.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(GameRole); - } - if (GameSelects.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(GameSelects); - } - if (GameTargetType.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(GameTargetType); - } - if (GameTargetsFirst.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(GameTargetsFirst); - } - if (GameTargetsSecond.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(GameTargetsSecond); - } - if (GameTargetsSecondLogic.Length != 0) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(GameTargetsSecondLogic); - } - if (GameExtraValue.Length != 0) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(GameExtraValue); - } - if (GameSort.Length != 0) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(GameSort); - } - if (GameIsShow.Length != 0) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(GameIsShow); - } - if (GameExclusive.Length != 0) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(GameExclusive); - } - if (GameReward.Length != 0) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(GameReward); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(TaskOrmData other) { - if (other == null) { - return; - } - if (other.Id != 0L) { - Id = other.Id; - } - if (other.TaskName.Length != 0) { - TaskName = other.TaskName; - } - if (other.GameName.Length != 0) { - GameName = other.GameName; - } - if (other.GameType != 0) { - GameType = other.GameType; - } - if (other.GameDesc.Length != 0) { - GameDesc = other.GameDesc; - } - if (other.GamePlayScript.Length != 0) { - GamePlayScript = other.GamePlayScript; - } - if (other.GameTrigger.Length != 0) { - GameTrigger = other.GameTrigger; - } - if (other.GameTriggerLogic.Length != 0) { - GameTriggerLogic = other.GameTriggerLogic; - } - if (other.GameOverseeCond.Length != 0) { - GameOverseeCond = other.GameOverseeCond; - } - if (other.GameTimeLimit.Length != 0) { - GameTimeLimit = other.GameTimeLimit; - } - if (other.GameRole.Length != 0) { - GameRole = other.GameRole; - } - if (other.GameSelects.Length != 0) { - GameSelects = other.GameSelects; - } - if (other.GameTargetType.Length != 0) { - GameTargetType = other.GameTargetType; - } - if (other.GameTargetsFirst.Length != 0) { - GameTargetsFirst = other.GameTargetsFirst; - } - if (other.GameTargetsSecond.Length != 0) { - GameTargetsSecond = other.GameTargetsSecond; - } - if (other.GameTargetsSecondLogic.Length != 0) { - GameTargetsSecondLogic = other.GameTargetsSecondLogic; - } - if (other.GameExtraValue.Length != 0) { - GameExtraValue = other.GameExtraValue; - } - if (other.GameSort.Length != 0) { - GameSort = other.GameSort; - } - if (other.GameIsShow.Length != 0) { - GameIsShow = other.GameIsShow; - } - if (other.GameExclusive.Length != 0) { - GameExclusive = other.GameExclusive; - } - if (other.GameReward.Length != 0) { - GameReward = other.GameReward; - } - _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: { - Id = input.ReadInt64(); - break; - } - case 18: { - TaskName = input.ReadString(); - break; - } - case 26: { - GameName = input.ReadString(); - break; - } - case 32: { - GameType = input.ReadInt32(); - break; - } - case 42: { - GameDesc = input.ReadString(); - break; - } - case 50: { - GamePlayScript = input.ReadString(); - break; - } - case 58: { - GameTrigger = input.ReadString(); - break; - } - case 66: { - GameTriggerLogic = input.ReadString(); - break; - } - case 74: { - GameOverseeCond = input.ReadString(); - break; - } - case 82: { - GameTimeLimit = input.ReadString(); - break; - } - case 90: { - GameRole = input.ReadString(); - break; - } - case 98: { - GameSelects = input.ReadString(); - break; - } - case 106: { - GameTargetType = input.ReadString(); - break; - } - case 114: { - GameTargetsFirst = input.ReadString(); - break; - } - case 122: { - GameTargetsSecond = input.ReadString(); - break; - } - case 130: { - GameTargetsSecondLogic = input.ReadString(); - break; - } - case 138: { - GameExtraValue = input.ReadString(); - break; - } - case 146: { - GameSort = input.ReadString(); - break; - } - case 154: { - GameIsShow = input.ReadString(); - break; - } - case 162: { - GameExclusive = input.ReadString(); - break; - } - case 170: { - GameReward = 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: { - Id = input.ReadInt64(); - break; - } - case 18: { - TaskName = input.ReadString(); - break; - } - case 26: { - GameName = input.ReadString(); - break; - } - case 32: { - GameType = input.ReadInt32(); - break; - } - case 42: { - GameDesc = input.ReadString(); - break; - } - case 50: { - GamePlayScript = input.ReadString(); - break; - } - case 58: { - GameTrigger = input.ReadString(); - break; - } - case 66: { - GameTriggerLogic = input.ReadString(); - break; - } - case 74: { - GameOverseeCond = input.ReadString(); - break; - } - case 82: { - GameTimeLimit = input.ReadString(); - break; - } - case 90: { - GameRole = input.ReadString(); - break; - } - case 98: { - GameSelects = input.ReadString(); - break; - } - case 106: { - GameTargetType = input.ReadString(); - break; - } - case 114: { - GameTargetsFirst = input.ReadString(); - break; - } - case 122: { - GameTargetsSecond = input.ReadString(); - break; - } - case 130: { - GameTargetsSecondLogic = input.ReadString(); - break; - } - case 138: { - GameExtraValue = input.ReadString(); - break; - } - case 146: { - GameSort = input.ReadString(); - break; - } - case 154: { - GameIsShow = input.ReadString(); - break; - } - case 162: { - GameExclusive = input.ReadString(); - break; - } - case 170: { - GameReward = input.ReadString(); - break; - } - } - } - } - #endif - -} - -[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] -public sealed partial class SelectOrmData : pb::IMessage -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage -#endif -{ - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SelectOrmData()); - 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[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 SelectOrmData() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SelectOrmData(SelectOrmData other) : this() { - id_ = other.id_; - note_ = other.note_; - group_ = other.group_; - showText_ = other.showText_; - icon_ = other.icon_; - preconditions_ = other.preconditions_; - exclusive_ = other.exclusive_; - taskTime_ = other.taskTime_; - timeLimit_ = other.timeLimit_; - nextSelect_ = other.nextSelect_; - taskLink_ = other.taskLink_; - taskLinkDetails_ = other.taskLinkDetails_; - callMode_ = other.callMode_; - callRecipient_ = other.callRecipient_; - correctOption_ = other.correctOption_; - reward_ = other.reward_; - result_ = other.result_; - route_ = other.route_; - timingChange_ = other.timingChange_; - appliedUI_ = other.appliedUI_; - uIDetails_ = other.uIDetails_; - seq_ = other.seq_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SelectOrmData Clone() { - return new SelectOrmData(this); - } - - /// Field number for the "Id" field. - public const int IdFieldNumber = 1; - private long id_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long Id { - get { return id_; } - set { - id_ = value; - } - } - - /// Field number for the "Note" field. - public const int NoteFieldNumber = 2; - 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 "Group" field. - public const int GroupFieldNumber = 3; - private string group_ = ""; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Group { - get { return group_; } - set { - group_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "ShowText" field. - public const int ShowTextFieldNumber = 4; - private string showText_ = ""; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ShowText { - get { return showText_; } - set { - showText_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "Icon" field. - public const int IconFieldNumber = 5; - 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 "Preconditions" field. - public const int PreconditionsFieldNumber = 6; - private string preconditions_ = ""; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Preconditions { - get { return preconditions_; } - set { - preconditions_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "Exclusive" field. - public const int ExclusiveFieldNumber = 7; - private string exclusive_ = ""; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Exclusive { - get { return exclusive_; } - set { - exclusive_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "TaskTime" field. - public const int TaskTimeFieldNumber = 8; - private long taskTime_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long TaskTime { - get { return taskTime_; } - set { - taskTime_ = value; - } - } - - /// Field number for the "TimeLimit" field. - public const int TimeLimitFieldNumber = 9; - 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 "NextSelect" field. - public const int NextSelectFieldNumber = 10; - private string nextSelect_ = ""; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string NextSelect { - get { return nextSelect_; } - set { - nextSelect_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "TaskLink" field. - public const int TaskLinkFieldNumber = 11; - private string taskLink_ = ""; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string TaskLink { - get { return taskLink_; } - set { - taskLink_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "TaskLinkDetails" field. - public const int TaskLinkDetailsFieldNumber = 12; - private string taskLinkDetails_ = ""; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string TaskLinkDetails { - get { return taskLinkDetails_; } - set { - taskLinkDetails_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "CallMode" field. - public const int CallModeFieldNumber = 13; - private string callMode_ = ""; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CallMode { - get { return callMode_; } - set { - callMode_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "CallRecipient" field. - public const int CallRecipientFieldNumber = 14; - private string callRecipient_ = ""; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CallRecipient { - get { return callRecipient_; } - set { - callRecipient_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "CorrectOption" field. - public const int CorrectOptionFieldNumber = 15; - private string correctOption_ = ""; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CorrectOption { - get { return correctOption_; } - set { - correctOption_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "Reward" field. - public const int RewardFieldNumber = 16; - 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 "Result" field. - public const int ResultFieldNumber = 17; - private string result_ = ""; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Result { - get { return result_; } - set { - result_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "Route" field. - public const int RouteFieldNumber = 18; - private string route_ = ""; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Route { - get { return route_; } - set { - route_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "TimingChange" field. - public const int TimingChangeFieldNumber = 19; - private string timingChange_ = ""; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string TimingChange { - get { return timingChange_; } - set { - timingChange_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "AppliedUI" field. - public const int AppliedUIFieldNumber = 20; - private string appliedUI_ = ""; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string AppliedUI { - get { return appliedUI_; } - set { - appliedUI_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "UIDetails" field. - public const int UIDetailsFieldNumber = 21; - private string uIDetails_ = ""; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string UIDetails { - get { return uIDetails_; } - set { - uIDetails_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "Seq" field. - public const int SeqFieldNumber = 22; - private string seq_ = ""; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Seq { - get { return seq_; } - set { - seq_ = 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 SelectOrmData); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(SelectOrmData other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Id != other.Id) return false; - if (Note != other.Note) return false; - if (Group != other.Group) return false; - if (ShowText != other.ShowText) return false; - if (Icon != other.Icon) return false; - if (Preconditions != other.Preconditions) return false; - if (Exclusive != other.Exclusive) return false; - if (TaskTime != other.TaskTime) return false; - if (TimeLimit != other.TimeLimit) return false; - if (NextSelect != other.NextSelect) return false; - if (TaskLink != other.TaskLink) return false; - if (TaskLinkDetails != other.TaskLinkDetails) return false; - if (CallMode != other.CallMode) return false; - if (CallRecipient != other.CallRecipient) return false; - if (CorrectOption != other.CorrectOption) return false; - if (Reward != other.Reward) return false; - if (Result != other.Result) return false; - if (Route != other.Route) return false; - if (TimingChange != other.TimingChange) return false; - if (AppliedUI != other.AppliedUI) return false; - if (UIDetails != other.UIDetails) return false; - if (Seq != other.Seq) 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 != 0L) hash ^= Id.GetHashCode(); - if (Note.Length != 0) hash ^= Note.GetHashCode(); - if (Group.Length != 0) hash ^= Group.GetHashCode(); - if (ShowText.Length != 0) hash ^= ShowText.GetHashCode(); - if (Icon.Length != 0) hash ^= Icon.GetHashCode(); - if (Preconditions.Length != 0) hash ^= Preconditions.GetHashCode(); - if (Exclusive.Length != 0) hash ^= Exclusive.GetHashCode(); - if (TaskTime != 0L) hash ^= TaskTime.GetHashCode(); - if (TimeLimit != 0L) hash ^= TimeLimit.GetHashCode(); - if (NextSelect.Length != 0) hash ^= NextSelect.GetHashCode(); - if (TaskLink.Length != 0) hash ^= TaskLink.GetHashCode(); - if (TaskLinkDetails.Length != 0) hash ^= TaskLinkDetails.GetHashCode(); - if (CallMode.Length != 0) hash ^= CallMode.GetHashCode(); - if (CallRecipient.Length != 0) hash ^= CallRecipient.GetHashCode(); - if (CorrectOption.Length != 0) hash ^= CorrectOption.GetHashCode(); - if (Reward.Length != 0) hash ^= Reward.GetHashCode(); - if (Result.Length != 0) hash ^= Result.GetHashCode(); - if (Route.Length != 0) hash ^= Route.GetHashCode(); - if (TimingChange.Length != 0) hash ^= TimingChange.GetHashCode(); - if (AppliedUI.Length != 0) hash ^= AppliedUI.GetHashCode(); - if (UIDetails.Length != 0) hash ^= UIDetails.GetHashCode(); - if (Seq.Length != 0) hash ^= Seq.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 != 0L) { - output.WriteRawTag(8); - output.WriteInt64(Id); - } - if (Note.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Note); - } - if (Group.Length != 0) { - output.WriteRawTag(26); - output.WriteString(Group); - } - if (ShowText.Length != 0) { - output.WriteRawTag(34); - output.WriteString(ShowText); - } - if (Icon.Length != 0) { - output.WriteRawTag(42); - output.WriteString(Icon); - } - if (Preconditions.Length != 0) { - output.WriteRawTag(50); - output.WriteString(Preconditions); - } - if (Exclusive.Length != 0) { - output.WriteRawTag(58); - output.WriteString(Exclusive); - } - if (TaskTime != 0L) { - output.WriteRawTag(64); - output.WriteInt64(TaskTime); - } - if (TimeLimit != 0L) { - output.WriteRawTag(72); - output.WriteInt64(TimeLimit); - } - if (NextSelect.Length != 0) { - output.WriteRawTag(82); - output.WriteString(NextSelect); - } - if (TaskLink.Length != 0) { - output.WriteRawTag(90); - output.WriteString(TaskLink); - } - if (TaskLinkDetails.Length != 0) { - output.WriteRawTag(98); - output.WriteString(TaskLinkDetails); - } - if (CallMode.Length != 0) { - output.WriteRawTag(106); - output.WriteString(CallMode); - } - if (CallRecipient.Length != 0) { - output.WriteRawTag(114); - output.WriteString(CallRecipient); - } - if (CorrectOption.Length != 0) { - output.WriteRawTag(122); - output.WriteString(CorrectOption); - } - if (Reward.Length != 0) { - output.WriteRawTag(130, 1); - output.WriteString(Reward); - } - if (Result.Length != 0) { - output.WriteRawTag(138, 1); - output.WriteString(Result); - } - if (Route.Length != 0) { - output.WriteRawTag(146, 1); - output.WriteString(Route); - } - if (TimingChange.Length != 0) { - output.WriteRawTag(154, 1); - output.WriteString(TimingChange); - } - if (AppliedUI.Length != 0) { - output.WriteRawTag(162, 1); - output.WriteString(AppliedUI); - } - if (UIDetails.Length != 0) { - output.WriteRawTag(170, 1); - output.WriteString(UIDetails); - } - if (Seq.Length != 0) { - output.WriteRawTag(178, 1); - output.WriteString(Seq); - } - 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 != 0L) { - output.WriteRawTag(8); - output.WriteInt64(Id); - } - if (Note.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Note); - } - if (Group.Length != 0) { - output.WriteRawTag(26); - output.WriteString(Group); - } - if (ShowText.Length != 0) { - output.WriteRawTag(34); - output.WriteString(ShowText); - } - if (Icon.Length != 0) { - output.WriteRawTag(42); - output.WriteString(Icon); - } - if (Preconditions.Length != 0) { - output.WriteRawTag(50); - output.WriteString(Preconditions); - } - if (Exclusive.Length != 0) { - output.WriteRawTag(58); - output.WriteString(Exclusive); - } - if (TaskTime != 0L) { - output.WriteRawTag(64); - output.WriteInt64(TaskTime); - } - if (TimeLimit != 0L) { - output.WriteRawTag(72); - output.WriteInt64(TimeLimit); - } - if (NextSelect.Length != 0) { - output.WriteRawTag(82); - output.WriteString(NextSelect); - } - if (TaskLink.Length != 0) { - output.WriteRawTag(90); - output.WriteString(TaskLink); - } - if (TaskLinkDetails.Length != 0) { - output.WriteRawTag(98); - output.WriteString(TaskLinkDetails); - } - if (CallMode.Length != 0) { - output.WriteRawTag(106); - output.WriteString(CallMode); - } - if (CallRecipient.Length != 0) { - output.WriteRawTag(114); - output.WriteString(CallRecipient); - } - if (CorrectOption.Length != 0) { - output.WriteRawTag(122); - output.WriteString(CorrectOption); - } - if (Reward.Length != 0) { - output.WriteRawTag(130, 1); - output.WriteString(Reward); - } - if (Result.Length != 0) { - output.WriteRawTag(138, 1); - output.WriteString(Result); - } - if (Route.Length != 0) { - output.WriteRawTag(146, 1); - output.WriteString(Route); - } - if (TimingChange.Length != 0) { - output.WriteRawTag(154, 1); - output.WriteString(TimingChange); - } - if (AppliedUI.Length != 0) { - output.WriteRawTag(162, 1); - output.WriteString(AppliedUI); - } - if (UIDetails.Length != 0) { - output.WriteRawTag(170, 1); - output.WriteString(UIDetails); - } - if (Seq.Length != 0) { - output.WriteRawTag(178, 1); - output.WriteString(Seq); - } - 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 != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(Id); - } - if (Note.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Note); - } - if (Group.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Group); - } - if (ShowText.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ShowText); - } - if (Icon.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Icon); - } - if (Preconditions.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Preconditions); - } - if (Exclusive.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Exclusive); - } - if (TaskTime != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(TaskTime); - } - if (TimeLimit != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(TimeLimit); - } - if (NextSelect.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(NextSelect); - } - if (TaskLink.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(TaskLink); - } - if (TaskLinkDetails.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(TaskLinkDetails); - } - if (CallMode.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CallMode); - } - if (CallRecipient.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CallRecipient); - } - if (CorrectOption.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CorrectOption); - } - if (Reward.Length != 0) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(Reward); - } - if (Result.Length != 0) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(Result); - } - if (Route.Length != 0) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(Route); - } - if (TimingChange.Length != 0) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(TimingChange); - } - if (AppliedUI.Length != 0) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(AppliedUI); - } - if (UIDetails.Length != 0) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(UIDetails); - } - if (Seq.Length != 0) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(Seq); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(SelectOrmData other) { - if (other == null) { - return; - } - if (other.Id != 0L) { - Id = other.Id; - } - if (other.Note.Length != 0) { - Note = other.Note; - } - if (other.Group.Length != 0) { - Group = other.Group; - } - if (other.ShowText.Length != 0) { - ShowText = other.ShowText; - } - if (other.Icon.Length != 0) { - Icon = other.Icon; - } - if (other.Preconditions.Length != 0) { - Preconditions = other.Preconditions; - } - if (other.Exclusive.Length != 0) { - Exclusive = other.Exclusive; - } - if (other.TaskTime != 0L) { - TaskTime = other.TaskTime; - } - if (other.TimeLimit != 0L) { - TimeLimit = other.TimeLimit; - } - if (other.NextSelect.Length != 0) { - NextSelect = other.NextSelect; - } - if (other.TaskLink.Length != 0) { - TaskLink = other.TaskLink; - } - if (other.TaskLinkDetails.Length != 0) { - TaskLinkDetails = other.TaskLinkDetails; - } - if (other.CallMode.Length != 0) { - CallMode = other.CallMode; - } - if (other.CallRecipient.Length != 0) { - CallRecipient = other.CallRecipient; - } - if (other.CorrectOption.Length != 0) { - CorrectOption = other.CorrectOption; - } - if (other.Reward.Length != 0) { - Reward = other.Reward; - } - if (other.Result.Length != 0) { - Result = other.Result; - } - if (other.Route.Length != 0) { - Route = other.Route; - } - if (other.TimingChange.Length != 0) { - TimingChange = other.TimingChange; - } - if (other.AppliedUI.Length != 0) { - AppliedUI = other.AppliedUI; - } - if (other.UIDetails.Length != 0) { - UIDetails = other.UIDetails; - } - if (other.Seq.Length != 0) { - Seq = other.Seq; - } - _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: { - Id = input.ReadInt64(); - break; - } - case 18: { - Note = input.ReadString(); - break; - } - case 26: { - Group = input.ReadString(); - break; - } - case 34: { - ShowText = input.ReadString(); - break; - } - case 42: { - Icon = input.ReadString(); - break; - } - case 50: { - Preconditions = input.ReadString(); - break; - } - case 58: { - Exclusive = input.ReadString(); - break; - } - case 64: { - TaskTime = input.ReadInt64(); - break; - } - case 72: { - TimeLimit = input.ReadInt64(); - break; - } - case 82: { - NextSelect = input.ReadString(); - break; - } - case 90: { - TaskLink = input.ReadString(); - break; - } - case 98: { - TaskLinkDetails = input.ReadString(); - break; - } - case 106: { - CallMode = input.ReadString(); - break; - } - case 114: { - CallRecipient = input.ReadString(); - break; - } - case 122: { - CorrectOption = input.ReadString(); - break; - } - case 130: { - Reward = input.ReadString(); - break; - } - case 138: { - Result = input.ReadString(); - break; - } - case 146: { - Route = input.ReadString(); - break; - } - case 154: { - TimingChange = input.ReadString(); - break; - } - case 162: { - AppliedUI = input.ReadString(); - break; - } - case 170: { - UIDetails = input.ReadString(); - break; - } - case 178: { - Seq = 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: { - Id = input.ReadInt64(); - break; - } - case 18: { - Note = input.ReadString(); - break; - } - case 26: { - Group = input.ReadString(); - break; - } - case 34: { - ShowText = input.ReadString(); - break; - } - case 42: { - Icon = input.ReadString(); - break; - } - case 50: { - Preconditions = input.ReadString(); - break; - } - case 58: { - Exclusive = input.ReadString(); - break; - } - case 64: { - TaskTime = input.ReadInt64(); - break; - } - case 72: { - TimeLimit = input.ReadInt64(); - break; - } - case 82: { - NextSelect = input.ReadString(); - break; - } - case 90: { - TaskLink = input.ReadString(); - break; - } - case 98: { - TaskLinkDetails = input.ReadString(); - break; - } - case 106: { - CallMode = input.ReadString(); - break; - } - case 114: { - CallRecipient = input.ReadString(); - break; - } - case 122: { - CorrectOption = input.ReadString(); - break; - } - case 130: { - Reward = input.ReadString(); - break; - } - case 138: { - Result = input.ReadString(); - break; - } - case 146: { - Route = input.ReadString(); - break; - } - case 154: { - TimingChange = input.ReadString(); - break; - } - case 162: { - AppliedUI = input.ReadString(); - break; - } - case 170: { - UIDetails = input.ReadString(); - break; - } - case 178: { - Seq = input.ReadString(); - break; - } - } - } - } - #endif - -} - -[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 - - -#endregion Designer generated code diff --git a/Proto/Room.cs.meta b/Proto/Room.cs.meta deleted file mode 100644 index 8b4ed67..0000000 --- a/Proto/Room.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: efe7f33d728ac2948956f9a0bcf43259 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Proto/Task.cs b/Proto/Task.cs deleted file mode 100644 index 2b0e0bd..0000000 --- a/Proto/Task.cs +++ /dev/null @@ -1,2826 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: task.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 task.proto -public static partial class TaskReflection { - - #region Descriptor - /// File descriptor for task.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static TaskReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cgp0YXNrLnByb3RvIiMKEVRhc2tDcmVhdGVSZXF1ZXN0Eg4KBnJvb21JZBgB", - "IAEoCSIWCghCYXNlVGFzaxIKCgJJZBgBIAEoCSJvChJUYXNrQ3JlYXRlUmVz", - "cG9uc2USCgoCSWQYASABKAkSCQoBWBgCIAEoAhIJCgFZGAMgASgCEgkKAVoY", - "BCABKAISDAoEVHlwZRgFIAEoBRIOCgZSb29tSWQYBiABKAkSDgoGVXNlcklk", - "GAcgASgJIrwBChFUYXNrVXBkYXRlUmVxdWVzdBIOCgZSb29tSWQYASABKAkS", - "DgoGVGFza0lkGAIgASgJEg4KBlVzZXJJZBgDIAEoCRIQCghTZWxlY3RJZBgE", - "IAEoCRIQCghUb1VzZXJJZBgFIAEoCRIQCghVc2VyTmFtZRgGIAEoCRIOCgZQ", - "cm9wSWQYByABKAkSEAoIUHJvcE5hbWUYCCABKAkSDwoHUHJvcE51bRgJIAEo", - "BRIOCgZTdGF0dXMYCiABKAkingIKDFRhc2tSZXNwb25zZRIOCgZUYXNrSWQY", - "ASABKAkSDgoGU3RhdHVzGAIgASgJEg4KBlJvb21JZBgDIAEoCRIJCgFYGAQg", - "ASgCEgkKAVkYBSABKAISCQoBWhgGIAEoAhIMCgRUeXBlGAcgASgJEhEKCVRp", - "bWVMaW1pdBgIIAEoAxIMCgREZXNjGAkgASgJEg8KB1RyaWdnZXIYCiABKAkS", - "EQoJTmV4dFRhc2tzGAsgASgJEhIKClRhcmdldFR5cGUYDCABKAkSDgoGUmV3", - "YXJkGA0gASgJEgwKBE5vdGUYDiABKAkSEgoKQ3JlYXRlVGltZRgPIAEoCRIS", - "CgpVcGRhdGVUaW1lGBAgASgJEhAKCFRvVXNlcklkGBEgASgJIlEKC1Rhc2tU", - "cmlnZ2VyEg4KBlVzZXJJZBgCIAEoCRIOCgZSb29tSWQYAyABKAkSEQoJVHJp", - "Z2dlcklkGAQgASgJEg8KB1R5cGVTdHIYBSABKAkiIwoOVGFza09ybVJlcXVl", - "c3QSEQoJc3ViamVjdElkGAEgASgJQgdaBS4vO3BiYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::TaskCreateRequest), global::TaskCreateRequest.Parser, new[]{ "RoomId" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::BaseTask), global::BaseTask.Parser, new[]{ "Id" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::TaskCreateResponse), global::TaskCreateResponse.Parser, new[]{ "Id", "X", "Y", "Z", "Type", "RoomId", "UserId" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::TaskUpdateRequest), global::TaskUpdateRequest.Parser, new[]{ "RoomId", "TaskId", "UserId", "SelectId", "ToUserId", "UserName", "PropId", "PropName", "PropNum", "Status" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::TaskResponse), global::TaskResponse.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::TaskTrigger), global::TaskTrigger.Parser, new[]{ "UserId", "RoomId", "TriggerId", "TypeStr" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::TaskOrmRequest), global::TaskOrmRequest.Parser, new[]{ "SubjectId" }, null, null, null, null) - })); - } - #endregion - -} -#region Messages -[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] -public sealed partial class TaskCreateRequest : pb::IMessage -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage -#endif -{ - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TaskCreateRequest()); - 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::TaskReflection.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 TaskCreateRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TaskCreateRequest(TaskCreateRequest other) : this() { - roomId_ = other.roomId_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TaskCreateRequest Clone() { - return new TaskCreateRequest(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"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as TaskCreateRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(TaskCreateRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - 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 (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 (RoomId.Length != 0) { - output.WriteRawTag(10); - 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 (RoomId.Length != 0) { - output.WriteRawTag(10); - 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 (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(TaskCreateRequest other) { - if (other == null) { - return; - } - 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: { - 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: { - RoomId = input.ReadString(); - break; - } - } - } - } - #endif - -} - -[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] -public sealed partial class BaseTask : pb::IMessage -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage -#endif -{ - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BaseTask()); - 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::TaskReflection.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 BaseTask() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public BaseTask(BaseTask other) : this() { - id_ = other.id_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public BaseTask Clone() { - return new BaseTask(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"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as BaseTask); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(BaseTask other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Id != other.Id) 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 (_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 (_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 (_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 (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(BaseTask other) { - if (other == null) { - return; - } - if (other.Id.Length != 0) { - Id = other.Id; - } - _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; - } - } - } - #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; - } - } - } - } - #endif - -} - -[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] -public sealed partial class TaskCreateResponse : pb::IMessage -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage -#endif -{ - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TaskCreateResponse()); - 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::TaskReflection.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 TaskCreateResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TaskCreateResponse(TaskCreateResponse other) : this() { - id_ = other.id_; - x_ = other.x_; - y_ = other.y_; - z_ = other.z_; - type_ = other.type_; - roomId_ = other.roomId_; - userId_ = other.userId_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TaskCreateResponse Clone() { - return new TaskCreateResponse(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 "X" field. - public const int XFieldNumber = 2; - 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 = 3; - 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 = 4; - 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 = 5; - private int type_; - /// - /// 类型 - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int Type { - get { return type_; } - set { - type_ = value; - } - } - - /// Field number for the "RoomId" field. - public const int RoomIdFieldNumber = 6; - 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 "UserId" field. - public const int UserIdFieldNumber = 7; - private string userId_ = ""; - /// - /// 用户id - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string UserId { - get { return userId_; } - set { - userId_ = 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 TaskCreateResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(TaskCreateResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Id != other.Id) 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 (RoomId != other.RoomId) return false; - if (UserId != other.UserId) 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 (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 != 0) hash ^= Type.GetHashCode(); - if (RoomId.Length != 0) hash ^= RoomId.GetHashCode(); - if (UserId.Length != 0) hash ^= UserId.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 (X != 0F) { - output.WriteRawTag(21); - output.WriteFloat(X); - } - if (Y != 0F) { - output.WriteRawTag(29); - output.WriteFloat(Y); - } - if (Z != 0F) { - output.WriteRawTag(37); - output.WriteFloat(Z); - } - if (Type != 0) { - output.WriteRawTag(40); - output.WriteInt32(Type); - } - if (RoomId.Length != 0) { - output.WriteRawTag(50); - output.WriteString(RoomId); - } - if (UserId.Length != 0) { - output.WriteRawTag(58); - output.WriteString(UserId); - } - 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 (X != 0F) { - output.WriteRawTag(21); - output.WriteFloat(X); - } - if (Y != 0F) { - output.WriteRawTag(29); - output.WriteFloat(Y); - } - if (Z != 0F) { - output.WriteRawTag(37); - output.WriteFloat(Z); - } - if (Type != 0) { - output.WriteRawTag(40); - output.WriteInt32(Type); - } - if (RoomId.Length != 0) { - output.WriteRawTag(50); - output.WriteString(RoomId); - } - if (UserId.Length != 0) { - output.WriteRawTag(58); - output.WriteString(UserId); - } - 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 (X != 0F) { - size += 1 + 4; - } - if (Y != 0F) { - size += 1 + 4; - } - if (Z != 0F) { - size += 1 + 4; - } - if (Type != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(Type); - } - if (RoomId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(RoomId); - } - if (UserId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(UserId); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(TaskCreateResponse other) { - if (other == null) { - return; - } - if (other.Id.Length != 0) { - Id = other.Id; - } - if (other.X != 0F) { - X = other.X; - } - if (other.Y != 0F) { - Y = other.Y; - } - if (other.Z != 0F) { - Z = other.Z; - } - if (other.Type != 0) { - Type = other.Type; - } - if (other.RoomId.Length != 0) { - RoomId = other.RoomId; - } - if (other.UserId.Length != 0) { - UserId = other.UserId; - } - _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 21: { - X = input.ReadFloat(); - break; - } - case 29: { - Y = input.ReadFloat(); - break; - } - case 37: { - Z = input.ReadFloat(); - break; - } - case 40: { - Type = input.ReadInt32(); - break; - } - case 50: { - RoomId = input.ReadString(); - break; - } - case 58: { - UserId = 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 21: { - X = input.ReadFloat(); - break; - } - case 29: { - Y = input.ReadFloat(); - break; - } - case 37: { - Z = input.ReadFloat(); - break; - } - case 40: { - Type = input.ReadInt32(); - break; - } - case 50: { - RoomId = input.ReadString(); - break; - } - case 58: { - UserId = input.ReadString(); - break; - } - } - } - } - #endif - -} - -[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] -public sealed partial class TaskUpdateRequest : pb::IMessage -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage -#endif -{ - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TaskUpdateRequest()); - 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::TaskReflection.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 TaskUpdateRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TaskUpdateRequest(TaskUpdateRequest other) : this() { - roomId_ = other.roomId_; - taskId_ = other.taskId_; - userId_ = other.userId_; - selectId_ = other.selectId_; - toUserId_ = other.toUserId_; - userName_ = other.userName_; - propId_ = other.propId_; - propName_ = other.propName_; - propNum_ = other.propNum_; - status_ = other.status_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TaskUpdateRequest Clone() { - return new TaskUpdateRequest(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 "TaskId" field. - public const int TaskIdFieldNumber = 2; - 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 "UserId" field. - public const int UserIdFieldNumber = 3; - private string userId_ = ""; - /// - /// 用户id - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string UserId { - get { return userId_; } - set { - userId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "SelectId" field. - public const int SelectIdFieldNumber = 4; - private string selectId_ = ""; - /// - /// 选项ID 界面按钮 - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string SelectId { - get { return selectId_; } - set { - selectId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "ToUserId" field. - public const int ToUserIdFieldNumber = 5; - 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"); - } - } - - /// Field number for the "UserName" field. - public const int UserNameFieldNumber = 6; - private string userName_ = ""; - /// - /// 用户名 - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string UserName { - get { return userName_; } - set { - userName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "PropId" field. - public const int PropIdFieldNumber = 7; - private string propId_ = ""; - /// - ///道具id - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string PropId { - get { return propId_; } - set { - propId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "PropName" field. - public const int PropNameFieldNumber = 8; - private string propName_ = ""; - /// - ///道具名称 - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string PropName { - get { return propName_; } - set { - propName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "PropNum" field. - public const int PropNumFieldNumber = 9; - private int propNum_; - /// - ///道具数量 - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int PropNum { - get { return propNum_; } - set { - propNum_ = value; - } - } - - /// Field number for the "Status" field. - public const int StatusFieldNumber = 10; - 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"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as TaskUpdateRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(TaskUpdateRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (RoomId != other.RoomId) return false; - if (TaskId != other.TaskId) return false; - if (UserId != other.UserId) return false; - if (SelectId != other.SelectId) return false; - if (ToUserId != other.ToUserId) return false; - if (UserName != other.UserName) return false; - if (PropId != other.PropId) return false; - if (PropName != other.PropName) return false; - if (PropNum != other.PropNum) return false; - if (Status != other.Status) 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 (TaskId.Length != 0) hash ^= TaskId.GetHashCode(); - if (UserId.Length != 0) hash ^= UserId.GetHashCode(); - if (SelectId.Length != 0) hash ^= SelectId.GetHashCode(); - if (ToUserId.Length != 0) hash ^= ToUserId.GetHashCode(); - if (UserName.Length != 0) hash ^= UserName.GetHashCode(); - if (PropId.Length != 0) hash ^= PropId.GetHashCode(); - if (PropName.Length != 0) hash ^= PropName.GetHashCode(); - if (PropNum != 0) hash ^= PropNum.GetHashCode(); - if (Status.Length != 0) hash ^= Status.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 (TaskId.Length != 0) { - output.WriteRawTag(18); - output.WriteString(TaskId); - } - if (UserId.Length != 0) { - output.WriteRawTag(26); - output.WriteString(UserId); - } - if (SelectId.Length != 0) { - output.WriteRawTag(34); - output.WriteString(SelectId); - } - if (ToUserId.Length != 0) { - output.WriteRawTag(42); - output.WriteString(ToUserId); - } - if (UserName.Length != 0) { - output.WriteRawTag(50); - output.WriteString(UserName); - } - if (PropId.Length != 0) { - output.WriteRawTag(58); - output.WriteString(PropId); - } - if (PropName.Length != 0) { - output.WriteRawTag(66); - output.WriteString(PropName); - } - if (PropNum != 0) { - output.WriteRawTag(72); - output.WriteInt32(PropNum); - } - if (Status.Length != 0) { - output.WriteRawTag(82); - output.WriteString(Status); - } - 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 (TaskId.Length != 0) { - output.WriteRawTag(18); - output.WriteString(TaskId); - } - if (UserId.Length != 0) { - output.WriteRawTag(26); - output.WriteString(UserId); - } - if (SelectId.Length != 0) { - output.WriteRawTag(34); - output.WriteString(SelectId); - } - if (ToUserId.Length != 0) { - output.WriteRawTag(42); - output.WriteString(ToUserId); - } - if (UserName.Length != 0) { - output.WriteRawTag(50); - output.WriteString(UserName); - } - if (PropId.Length != 0) { - output.WriteRawTag(58); - output.WriteString(PropId); - } - if (PropName.Length != 0) { - output.WriteRawTag(66); - output.WriteString(PropName); - } - if (PropNum != 0) { - output.WriteRawTag(72); - output.WriteInt32(PropNum); - } - if (Status.Length != 0) { - output.WriteRawTag(82); - output.WriteString(Status); - } - 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 (TaskId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(TaskId); - } - if (UserId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(UserId); - } - if (SelectId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(SelectId); - } - if (ToUserId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ToUserId); - } - if (UserName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(UserName); - } - if (PropId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(PropId); - } - if (PropName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(PropName); - } - if (PropNum != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(PropNum); - } - if (Status.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Status); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(TaskUpdateRequest other) { - if (other == null) { - return; - } - if (other.RoomId.Length != 0) { - RoomId = other.RoomId; - } - if (other.TaskId.Length != 0) { - TaskId = other.TaskId; - } - if (other.UserId.Length != 0) { - UserId = other.UserId; - } - if (other.SelectId.Length != 0) { - SelectId = other.SelectId; - } - if (other.ToUserId.Length != 0) { - ToUserId = other.ToUserId; - } - if (other.UserName.Length != 0) { - UserName = other.UserName; - } - if (other.PropId.Length != 0) { - PropId = other.PropId; - } - if (other.PropName.Length != 0) { - PropName = other.PropName; - } - if (other.PropNum != 0) { - PropNum = other.PropNum; - } - if (other.Status.Length != 0) { - Status = other.Status; - } - _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: { - TaskId = input.ReadString(); - break; - } - case 26: { - UserId = input.ReadString(); - break; - } - case 34: { - SelectId = input.ReadString(); - break; - } - case 42: { - ToUserId = input.ReadString(); - break; - } - case 50: { - UserName = input.ReadString(); - break; - } - case 58: { - PropId = input.ReadString(); - break; - } - case 66: { - PropName = input.ReadString(); - break; - } - case 72: { - PropNum = input.ReadInt32(); - break; - } - case 82: { - Status = 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: { - TaskId = input.ReadString(); - break; - } - case 26: { - UserId = input.ReadString(); - break; - } - case 34: { - SelectId = input.ReadString(); - break; - } - case 42: { - ToUserId = input.ReadString(); - break; - } - case 50: { - UserName = input.ReadString(); - break; - } - case 58: { - PropId = input.ReadString(); - break; - } - case 66: { - PropName = input.ReadString(); - break; - } - case 72: { - PropNum = input.ReadInt32(); - break; - } - case 82: { - Status = input.ReadString(); - break; - } - } - } - } - #endif - -} - -[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] -public sealed partial class TaskResponse : pb::IMessage -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage -#endif -{ - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TaskResponse()); - 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::TaskReflection.Descriptor.MessageTypes[4]; } - } - - [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 TaskResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TaskResponse(TaskResponse 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 TaskResponse Clone() { - return new TaskResponse(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 TaskResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(TaskResponse 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(TaskResponse 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 TaskTrigger : pb::IMessage -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage -#endif -{ - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TaskTrigger()); - 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::TaskReflection.Descriptor.MessageTypes[5]; } - } - - [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 TaskTrigger() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TaskTrigger(TaskTrigger other) : this() { - userId_ = other.userId_; - roomId_ = other.roomId_; - triggerId_ = other.triggerId_; - typeStr_ = other.typeStr_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TaskTrigger Clone() { - return new TaskTrigger(this); - } - - /// Field number for the "UserId" field. - public const int UserIdFieldNumber = 2; - private string userId_ = ""; - /// - /// 用户id - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string UserId { - get { return userId_; } - set { - userId_ = 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 "TriggerId" field. - public const int TriggerIdFieldNumber = 4; - private string triggerId_ = ""; - /// - /// 触发器id - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string TriggerId { - get { return triggerId_; } - set { - triggerId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "TypeStr" field. - public const int TypeStrFieldNumber = 5; - private string typeStr_ = ""; - /// - /// 触发器类型 - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string TypeStr { - get { return typeStr_; } - set { - typeStr_ = 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 TaskTrigger); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(TaskTrigger other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (UserId != other.UserId) return false; - if (RoomId != other.RoomId) return false; - if (TriggerId != other.TriggerId) return false; - if (TypeStr != other.TypeStr) 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 (UserId.Length != 0) hash ^= UserId.GetHashCode(); - if (RoomId.Length != 0) hash ^= RoomId.GetHashCode(); - if (TriggerId.Length != 0) hash ^= TriggerId.GetHashCode(); - if (TypeStr.Length != 0) hash ^= TypeStr.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 (UserId.Length != 0) { - output.WriteRawTag(18); - output.WriteString(UserId); - } - if (RoomId.Length != 0) { - output.WriteRawTag(26); - output.WriteString(RoomId); - } - if (TriggerId.Length != 0) { - output.WriteRawTag(34); - output.WriteString(TriggerId); - } - if (TypeStr.Length != 0) { - output.WriteRawTag(42); - output.WriteString(TypeStr); - } - 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 (UserId.Length != 0) { - output.WriteRawTag(18); - output.WriteString(UserId); - } - if (RoomId.Length != 0) { - output.WriteRawTag(26); - output.WriteString(RoomId); - } - if (TriggerId.Length != 0) { - output.WriteRawTag(34); - output.WriteString(TriggerId); - } - if (TypeStr.Length != 0) { - output.WriteRawTag(42); - output.WriteString(TypeStr); - } - 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 (UserId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(UserId); - } - if (RoomId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(RoomId); - } - if (TriggerId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(TriggerId); - } - if (TypeStr.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(TypeStr); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(TaskTrigger other) { - if (other == null) { - return; - } - if (other.UserId.Length != 0) { - UserId = other.UserId; - } - if (other.RoomId.Length != 0) { - RoomId = other.RoomId; - } - if (other.TriggerId.Length != 0) { - TriggerId = other.TriggerId; - } - if (other.TypeStr.Length != 0) { - TypeStr = other.TypeStr; - } - _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 18: { - UserId = input.ReadString(); - break; - } - case 26: { - RoomId = input.ReadString(); - break; - } - case 34: { - TriggerId = input.ReadString(); - break; - } - case 42: { - TypeStr = 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 18: { - UserId = input.ReadString(); - break; - } - case 26: { - RoomId = input.ReadString(); - break; - } - case 34: { - TriggerId = input.ReadString(); - break; - } - case 42: { - TypeStr = input.ReadString(); - break; - } - } - } - } - #endif - -} - -[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] -public sealed partial class TaskOrmRequest : pb::IMessage -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage -#endif -{ - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TaskOrmRequest()); - 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::TaskReflection.Descriptor.MessageTypes[6]; } - } - - [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 TaskOrmRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TaskOrmRequest(TaskOrmRequest other) : this() { - subjectId_ = other.subjectId_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TaskOrmRequest Clone() { - return new TaskOrmRequest(this); - } - - /// Field number for the "subjectId" field. - public const int SubjectIdFieldNumber = 1; - private string subjectId_ = ""; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string SubjectId { - get { return subjectId_; } - set { - subjectId_ = 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 TaskOrmRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(TaskOrmRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (SubjectId != other.SubjectId) 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 (SubjectId.Length != 0) hash ^= SubjectId.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 (SubjectId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(SubjectId); - } - 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 (SubjectId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(SubjectId); - } - 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 (SubjectId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(SubjectId); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(TaskOrmRequest other) { - if (other == null) { - return; - } - if (other.SubjectId.Length != 0) { - SubjectId = other.SubjectId; - } - _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: { - SubjectId = 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: { - SubjectId = input.ReadString(); - break; - } - } - } - } - #endif - -} - -#endregion - - -#endregion Designer generated code diff --git a/Proto/Task.cs.meta b/Proto/Task.cs.meta deleted file mode 100644 index 823f262..0000000 --- a/Proto/Task.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 7dc2c5b09fa1821438dbc817a6f5cb74 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Proto/User.cs b/Proto/User.cs deleted file mode 100644 index a818a57..0000000 --- a/Proto/User.cs +++ /dev/null @@ -1,1031 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: user.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 user.proto -public static partial class UserReflection { - - #region Descriptor - /// File descriptor for user.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static UserReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cgp1c2VyLnByb3RvIiQKElVzZXJPZmZsaW5lUmVxdWVzdBIOCgZ1c2VySWQY", - "ASABKAkiJQoTVXNlck9mZmxpbmVSZXNwb25zZRIOCgZ1c2VySWQYASABKAki", - "IQoPVXNlclJvbGVSZXF1ZXN0Eg4KBnJvbGVJZBgBIAEoBSKCAQoQVXNlclJv", - "bGVSZXNwb25zZRIOCgZyb2xlSWQYASABKAUSEAoIcm9sZU5hbWUYAiABKAkS", - "EgoKYWN0aW9uTW9kZRgDIAEoBRINCgVncm91cBgEIAEoBRITCgtncm91cExl", - "YWRlchgFIAEoBRIUCgxpc0xlYWRpbmdOUEMYBiABKAVCB1oFLi87cGJiBnBy", - "b3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::UserOfflineRequest), global::UserOfflineRequest.Parser, new[]{ "UserId" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::UserOfflineResponse), global::UserOfflineResponse.Parser, new[]{ "UserId" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::UserRoleRequest), global::UserRoleRequest.Parser, new[]{ "RoleId" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::UserRoleResponse), global::UserRoleResponse.Parser, new[]{ "RoleId", "RoleName", "ActionMode", "Group", "GroupLeader", "IsLeadingNPC" }, null, null, null, null) - })); - } - #endregion - -} -#region Messages -[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] -public sealed partial class UserOfflineRequest : pb::IMessage -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage -#endif -{ - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UserOfflineRequest()); - 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::UserReflection.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 UserOfflineRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UserOfflineRequest(UserOfflineRequest other) : this() { - userId_ = other.userId_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UserOfflineRequest Clone() { - return new UserOfflineRequest(this); - } - - /// Field number for the "userId" field. - public const int UserIdFieldNumber = 1; - private string userId_ = ""; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string UserId { - get { return userId_; } - set { - userId_ = 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 UserOfflineRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(UserOfflineRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (UserId != other.UserId) 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 (UserId.Length != 0) hash ^= UserId.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 (UserId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(UserId); - } - 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 (UserId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(UserId); - } - 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 (UserId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(UserId); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(UserOfflineRequest other) { - if (other == null) { - return; - } - if (other.UserId.Length != 0) { - UserId = other.UserId; - } - _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: { - UserId = 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: { - UserId = input.ReadString(); - break; - } - } - } - } - #endif - -} - -[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] -public sealed partial class UserOfflineResponse : pb::IMessage -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage -#endif -{ - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UserOfflineResponse()); - 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::UserReflection.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 UserOfflineResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UserOfflineResponse(UserOfflineResponse other) : this() { - userId_ = other.userId_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UserOfflineResponse Clone() { - return new UserOfflineResponse(this); - } - - /// Field number for the "userId" field. - public const int UserIdFieldNumber = 1; - private string userId_ = ""; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string UserId { - get { return userId_; } - set { - userId_ = 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 UserOfflineResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(UserOfflineResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (UserId != other.UserId) 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 (UserId.Length != 0) hash ^= UserId.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 (UserId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(UserId); - } - 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 (UserId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(UserId); - } - 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 (UserId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(UserId); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(UserOfflineResponse other) { - if (other == null) { - return; - } - if (other.UserId.Length != 0) { - UserId = other.UserId; - } - _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: { - UserId = 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: { - UserId = input.ReadString(); - break; - } - } - } - } - #endif - -} - -/// -/// 角色信息请求 -/// -[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] -public sealed partial class UserRoleRequest : pb::IMessage -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage -#endif -{ - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UserRoleRequest()); - 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::UserReflection.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 UserRoleRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UserRoleRequest(UserRoleRequest other) : this() { - roleId_ = other.roleId_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UserRoleRequest Clone() { - return new UserRoleRequest(this); - } - - /// Field number for the "roleId" field. - public const int RoleIdFieldNumber = 1; - private int roleId_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int RoleId { - get { return roleId_; } - set { - roleId_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as UserRoleRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(UserRoleRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (RoleId != other.RoleId) 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 (RoleId != 0) hash ^= RoleId.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 (RoleId != 0) { - output.WriteRawTag(8); - output.WriteInt32(RoleId); - } - 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 (RoleId != 0) { - output.WriteRawTag(8); - output.WriteInt32(RoleId); - } - 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 (RoleId != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(RoleId); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(UserRoleRequest other) { - if (other == null) { - return; - } - if (other.RoleId != 0) { - RoleId = other.RoleId; - } - _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: { - RoleId = input.ReadInt32(); - 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: { - RoleId = input.ReadInt32(); - break; - } - } - } - } - #endif - -} - -/// -/// 角色信息响应 -/// -[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] -public sealed partial class UserRoleResponse : pb::IMessage -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage -#endif -{ - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UserRoleResponse()); - 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::UserReflection.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 UserRoleResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UserRoleResponse(UserRoleResponse other) : this() { - roleId_ = other.roleId_; - roleName_ = other.roleName_; - actionMode_ = other.actionMode_; - group_ = other.group_; - groupLeader_ = other.groupLeader_; - isLeadingNPC_ = other.isLeadingNPC_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UserRoleResponse Clone() { - return new UserRoleResponse(this); - } - - /// Field number for the "roleId" field. - public const int RoleIdFieldNumber = 1; - private int roleId_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int RoleId { - get { return roleId_; } - set { - roleId_ = value; - } - } - - /// Field number for the "roleName" field. - public const int RoleNameFieldNumber = 2; - private string roleName_ = ""; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string RoleName { - get { return roleName_; } - set { - roleName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "actionMode" field. - public const int ActionModeFieldNumber = 3; - private int actionMode_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int ActionMode { - get { return actionMode_; } - set { - actionMode_ = value; - } - } - - /// Field number for the "group" field. - public const int GroupFieldNumber = 4; - private int group_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int Group { - get { return group_; } - set { - group_ = value; - } - } - - /// Field number for the "groupLeader" field. - public const int GroupLeaderFieldNumber = 5; - private int groupLeader_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int GroupLeader { - get { return groupLeader_; } - set { - groupLeader_ = value; - } - } - - /// Field number for the "isLeadingNPC" field. - public const int IsLeadingNPCFieldNumber = 6; - private int isLeadingNPC_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int IsLeadingNPC { - get { return isLeadingNPC_; } - set { - isLeadingNPC_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as UserRoleResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(UserRoleResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (RoleId != other.RoleId) return false; - if (RoleName != other.RoleName) return false; - if (ActionMode != other.ActionMode) return false; - if (Group != other.Group) return false; - if (GroupLeader != other.GroupLeader) return false; - if (IsLeadingNPC != other.IsLeadingNPC) 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 (RoleId != 0) hash ^= RoleId.GetHashCode(); - if (RoleName.Length != 0) hash ^= RoleName.GetHashCode(); - if (ActionMode != 0) hash ^= ActionMode.GetHashCode(); - if (Group != 0) hash ^= Group.GetHashCode(); - if (GroupLeader != 0) hash ^= GroupLeader.GetHashCode(); - if (IsLeadingNPC != 0) hash ^= IsLeadingNPC.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 (RoleId != 0) { - output.WriteRawTag(8); - output.WriteInt32(RoleId); - } - if (RoleName.Length != 0) { - output.WriteRawTag(18); - output.WriteString(RoleName); - } - if (ActionMode != 0) { - output.WriteRawTag(24); - output.WriteInt32(ActionMode); - } - if (Group != 0) { - output.WriteRawTag(32); - output.WriteInt32(Group); - } - if (GroupLeader != 0) { - output.WriteRawTag(40); - output.WriteInt32(GroupLeader); - } - if (IsLeadingNPC != 0) { - output.WriteRawTag(48); - output.WriteInt32(IsLeadingNPC); - } - 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 (RoleId != 0) { - output.WriteRawTag(8); - output.WriteInt32(RoleId); - } - if (RoleName.Length != 0) { - output.WriteRawTag(18); - output.WriteString(RoleName); - } - if (ActionMode != 0) { - output.WriteRawTag(24); - output.WriteInt32(ActionMode); - } - if (Group != 0) { - output.WriteRawTag(32); - output.WriteInt32(Group); - } - if (GroupLeader != 0) { - output.WriteRawTag(40); - output.WriteInt32(GroupLeader); - } - if (IsLeadingNPC != 0) { - output.WriteRawTag(48); - output.WriteInt32(IsLeadingNPC); - } - 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 (RoleId != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(RoleId); - } - if (RoleName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(RoleName); - } - if (ActionMode != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(ActionMode); - } - if (Group != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(Group); - } - if (GroupLeader != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(GroupLeader); - } - if (IsLeadingNPC != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(IsLeadingNPC); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(UserRoleResponse other) { - if (other == null) { - return; - } - if (other.RoleId != 0) { - RoleId = other.RoleId; - } - if (other.RoleName.Length != 0) { - RoleName = other.RoleName; - } - if (other.ActionMode != 0) { - ActionMode = other.ActionMode; - } - if (other.Group != 0) { - Group = other.Group; - } - if (other.GroupLeader != 0) { - GroupLeader = other.GroupLeader; - } - if (other.IsLeadingNPC != 0) { - IsLeadingNPC = other.IsLeadingNPC; - } - _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: { - RoleId = input.ReadInt32(); - break; - } - case 18: { - RoleName = input.ReadString(); - break; - } - case 24: { - ActionMode = input.ReadInt32(); - break; - } - case 32: { - Group = input.ReadInt32(); - break; - } - case 40: { - GroupLeader = input.ReadInt32(); - break; - } - case 48: { - IsLeadingNPC = input.ReadInt32(); - 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: { - RoleId = input.ReadInt32(); - break; - } - case 18: { - RoleName = input.ReadString(); - break; - } - case 24: { - ActionMode = input.ReadInt32(); - break; - } - case 32: { - Group = input.ReadInt32(); - break; - } - case 40: { - GroupLeader = input.ReadInt32(); - break; - } - case 48: { - IsLeadingNPC = input.ReadInt32(); - break; - } - } - } - } - #endif - -} - -#endregion - - -#endregion Designer generated code diff --git a/Proto/User.cs.meta b/Proto/User.cs.meta deleted file mode 100644 index 19dd7df..0000000 --- a/Proto/User.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 89dab302d915deb4ba459f561a2a9f15 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Proto/Ws.cs b/Proto/Ws.cs deleted file mode 100644 index a7ce913..0000000 --- a/Proto/Ws.cs +++ /dev/null @@ -1,726 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ws.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 ws.proto -public static partial class WsReflection { - - #region Descriptor - /// File descriptor for ws.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static WsReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cgh3cy5wcm90byJNCglXU01lc3NhZ2USDgoGbW9kdWxlGAEgASgJEhMKC3Nl", - "cnZpY2VOYW1lGAIgASgJEgwKBGRhdGEYAyABKAwSDQoFcmVxSWQYBCABKAUi", - "WQoKV1NSZXNwb25zZRITCgttZXNzYWdlVHlwZRgBIAEoCRIMCgRkYXRhGAIg", - "ASgMEg0KBXJlcUlkGAMgASgFEgwKBGNvZGUYBCABKAUSCwoDemlwGAUgASgI", - "QgdaBS4vO3BiYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::WSMessage), global::WSMessage.Parser, new[]{ "Module", "ServiceName", "Data", "ReqId" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::WSResponse), global::WSResponse.Parser, new[]{ "MessageType", "Data", "ReqId", "Code", "Zip" }, null, null, null, null) - })); - } - #endregion - -} -#region Messages -[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] -public sealed partial class WSMessage : pb::IMessage -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage -#endif -{ - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new WSMessage()); - 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::WsReflection.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 WSMessage() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public WSMessage(WSMessage other) : this() { - module_ = other.module_; - serviceName_ = other.serviceName_; - data_ = other.data_; - reqId_ = other.reqId_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public WSMessage Clone() { - return new WSMessage(this); - } - - /// Field number for the "module" field. - public const int ModuleFieldNumber = 1; - private string module_ = ""; - /// - ///模块名称 - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Module { - get { return module_; } - set { - module_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "serviceName" field. - public const int ServiceNameFieldNumber = 2; - private string serviceName_ = ""; - /// - ///服务名称 - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ServiceName { - get { return serviceName_; } - set { - serviceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "data" field. - public const int DataFieldNumber = 3; - private pb::ByteString data_ = pb::ByteString.Empty; - /// - ///请求数据 - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pb::ByteString Data { - get { return data_; } - set { - data_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "reqId" field. - public const int ReqIdFieldNumber = 4; - private int reqId_; - /// - ///请求id - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int ReqId { - get { return reqId_; } - set { - reqId_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as WSMessage); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(WSMessage other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Module != other.Module) return false; - if (ServiceName != other.ServiceName) return false; - if (Data != other.Data) return false; - if (ReqId != other.ReqId) 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 (Module.Length != 0) hash ^= Module.GetHashCode(); - if (ServiceName.Length != 0) hash ^= ServiceName.GetHashCode(); - if (Data.Length != 0) hash ^= Data.GetHashCode(); - if (ReqId != 0) hash ^= ReqId.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 (Module.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Module); - } - if (ServiceName.Length != 0) { - output.WriteRawTag(18); - output.WriteString(ServiceName); - } - if (Data.Length != 0) { - output.WriteRawTag(26); - output.WriteBytes(Data); - } - if (ReqId != 0) { - output.WriteRawTag(32); - output.WriteInt32(ReqId); - } - 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 (Module.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Module); - } - if (ServiceName.Length != 0) { - output.WriteRawTag(18); - output.WriteString(ServiceName); - } - if (Data.Length != 0) { - output.WriteRawTag(26); - output.WriteBytes(Data); - } - if (ReqId != 0) { - output.WriteRawTag(32); - output.WriteInt32(ReqId); - } - 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 (Module.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Module); - } - if (ServiceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ServiceName); - } - if (Data.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeBytesSize(Data); - } - if (ReqId != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(ReqId); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(WSMessage other) { - if (other == null) { - return; - } - if (other.Module.Length != 0) { - Module = other.Module; - } - if (other.ServiceName.Length != 0) { - ServiceName = other.ServiceName; - } - if (other.Data.Length != 0) { - Data = other.Data; - } - if (other.ReqId != 0) { - ReqId = other.ReqId; - } - _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: { - Module = input.ReadString(); - break; - } - case 18: { - ServiceName = input.ReadString(); - break; - } - case 26: { - Data = input.ReadBytes(); - break; - } - case 32: { - ReqId = input.ReadInt32(); - 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: { - Module = input.ReadString(); - break; - } - case 18: { - ServiceName = input.ReadString(); - break; - } - case 26: { - Data = input.ReadBytes(); - break; - } - case 32: { - ReqId = input.ReadInt32(); - break; - } - } - } - } - #endif - -} - -[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] -public sealed partial class WSResponse : pb::IMessage -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage -#endif -{ - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new WSResponse()); - 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::WsReflection.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 WSResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public WSResponse(WSResponse other) : this() { - messageType_ = other.messageType_; - data_ = other.data_; - reqId_ = other.reqId_; - code_ = other.code_; - zip_ = other.zip_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public WSResponse Clone() { - return new WSResponse(this); - } - - /// Field number for the "messageType" field. - public const int MessageTypeFieldNumber = 1; - private string messageType_ = ""; - /// - ///响应消息 - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string MessageType { - get { return messageType_; } - set { - messageType_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "data" field. - public const int DataFieldNumber = 2; - private pb::ByteString data_ = pb::ByteString.Empty; - /// - ///响应数据 - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pb::ByteString Data { - get { return data_; } - set { - data_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "reqId" field. - public const int ReqIdFieldNumber = 3; - private int reqId_; - /// - ///请求id - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int ReqId { - get { return reqId_; } - set { - reqId_ = value; - } - } - - /// Field number for the "code" field. - public const int CodeFieldNumber = 4; - 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 "zip" field. - public const int ZipFieldNumber = 5; - private bool zip_; - /// - ///是否压缩 - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Zip { - get { return zip_; } - set { - zip_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as WSResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(WSResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (MessageType != other.MessageType) return false; - if (Data != other.Data) return false; - if (ReqId != other.ReqId) return false; - if (Code != other.Code) return false; - if (Zip != other.Zip) 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 (MessageType.Length != 0) hash ^= MessageType.GetHashCode(); - if (Data.Length != 0) hash ^= Data.GetHashCode(); - if (ReqId != 0) hash ^= ReqId.GetHashCode(); - if (Code != 0) hash ^= Code.GetHashCode(); - if (Zip != false) hash ^= Zip.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 (MessageType.Length != 0) { - output.WriteRawTag(10); - output.WriteString(MessageType); - } - if (Data.Length != 0) { - output.WriteRawTag(18); - output.WriteBytes(Data); - } - if (ReqId != 0) { - output.WriteRawTag(24); - output.WriteInt32(ReqId); - } - if (Code != 0) { - output.WriteRawTag(32); - output.WriteInt32(Code); - } - if (Zip != false) { - output.WriteRawTag(40); - output.WriteBool(Zip); - } - 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 (MessageType.Length != 0) { - output.WriteRawTag(10); - output.WriteString(MessageType); - } - if (Data.Length != 0) { - output.WriteRawTag(18); - output.WriteBytes(Data); - } - if (ReqId != 0) { - output.WriteRawTag(24); - output.WriteInt32(ReqId); - } - if (Code != 0) { - output.WriteRawTag(32); - output.WriteInt32(Code); - } - if (Zip != false) { - output.WriteRawTag(40); - output.WriteBool(Zip); - } - 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 (MessageType.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(MessageType); - } - if (Data.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeBytesSize(Data); - } - if (ReqId != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(ReqId); - } - if (Code != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(Code); - } - if (Zip != false) { - size += 1 + 1; - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(WSResponse other) { - if (other == null) { - return; - } - if (other.MessageType.Length != 0) { - MessageType = other.MessageType; - } - if (other.Data.Length != 0) { - Data = other.Data; - } - if (other.ReqId != 0) { - ReqId = other.ReqId; - } - if (other.Code != 0) { - Code = other.Code; - } - if (other.Zip != false) { - Zip = other.Zip; - } - _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: { - MessageType = input.ReadString(); - break; - } - case 18: { - Data = input.ReadBytes(); - break; - } - case 24: { - ReqId = input.ReadInt32(); - break; - } - case 32: { - Code = input.ReadInt32(); - break; - } - case 40: { - Zip = input.ReadBool(); - 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: { - MessageType = input.ReadString(); - break; - } - case 18: { - Data = input.ReadBytes(); - break; - } - case 24: { - ReqId = input.ReadInt32(); - break; - } - case 32: { - Code = input.ReadInt32(); - break; - } - case 40: { - Zip = input.ReadBool(); - break; - } - } - } - } - #endif - -} - -#endregion - - -#endregion Designer generated code diff --git a/Proto/Ws.cs.meta b/Proto/Ws.cs.meta deleted file mode 100644 index f2e9d98..0000000 --- a/Proto/Ws.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 6d54b057f10017a4d98893bdbd8509e0 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Role/Attack.cs b/Role/Attack.cs new file mode 100644 index 0000000..6847c39 --- /dev/null +++ b/Role/Attack.cs @@ -0,0 +1,84 @@ +using System.Collections; +using System.Collections.Generic; +using System.Diagnostics; +using System.Threading.Tasks; +using UnityEngine; +using Debug = UnityEngine.Debug; + + +public class Attack : MonoBehaviour +{ + [Header("ӵԤ")] public GameObject bulletPrefab; + [Header("ӵ")] public BulletData bulletData; + [Header("ɫ")] public Role role; + [Header("Χ")] public float attackScope; + [Header("")] public DamageType damageTyp = DamageType.noAttributeDamage; + public float AttackScope + { + [DebuggerStepThrough] + get => attackScope; + [DebuggerStepThrough] + set + { + attackScope = value; + GetComponent().radius = attackScope; + } + } + public async void Start() + { + bulletData = new BulletData(); + bulletData.BulletScattering = 1; + while (true) { + CircleCollider2D circleCollider2D = GetComponent(); + if (circleCollider2D) + { + Collider2D[] colliders = Physics2D.OverlapCircleAll(transform.position, circleCollider2D.radius); + foreach (Collider2D collider in colliders) + { + Role targetRole = collider.GetComponent(); + if (targetRole && targetRole.camp != role.camp) + { + Debug.Log("⵽ײ:" + collider.name); + attack(targetRole); + } + } + await Task.Delay((int)(1000)); + } + else + { + return; + } + + } + } + public void attack(Role targetRole) + { + if (bulletPrefab==null) + { + Debug.LogError("ӵԤΪ"); + return; + } + Vector2 direction = (targetRole.transform.position - transform.position).normalized; + + List bulltes= new List(); + for (int i = 0; i < bulletData.BulletScattering; i++) + { + //ıӵ,߽ɫĹΧ, + GameObject BulletGamobj = GameObject.Instantiate(bulletPrefab, this.transform.root); + BulletGamobj.GetComponent().role = role; + BulletGamobj.GetComponent().attackObj = this ; + BulletGamobj.transform.up = direction; + BulletGamobj.transform.position = transform.position; + + bulltes.Add(BulletGamobj); + } + Debug.Log(bulltes.Count); + //foreach (GameObject bullet in bulltes) + //{ + + //} + + + } + +} diff --git a/Proto/Fps.cs.meta b/Role/Attack.cs.meta similarity index 83% rename from Proto/Fps.cs.meta rename to Role/Attack.cs.meta index 3c5e24a..6eda8f7 100644 --- a/Proto/Fps.cs.meta +++ b/Role/Attack.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 013d659005f08544cafe01b5a18e6072 +guid: 90e9cd2fc0a74084fbf1a89015db94a9 MonoImporter: externalObjects: {} serializedVersion: 2 diff --git a/Role/Bullet.cs b/Role/Bullet.cs new file mode 100644 index 0000000..783e3e8 --- /dev/null +++ b/Role/Bullet.cs @@ -0,0 +1,96 @@ +using System.Collections; +using System.Collections.Generic; +using System.Threading.Tasks; +using Unity.VisualScripting; +using UnityEngine; +using UnityEngine.UIElements; + + +public enum BulletType +{ + Bullet, + Lightning +} + +public enum BulletMoveType +{/// +/// ӵƶʽ:Ե, +/// + PeerToPeer, + /// + /// ƶ + /// + PointToDirection +} + +public class BulletData +{ + [Header("ӵ͸")] public int NumberOfBulletPenetrations = 1; + /// + /// ӵɢ + /// + [Header("ӵɢ")] public int BulletScattering = 1; + [Header("ӵ")] public int BulletBurstTimes = 1; + [Header("ӵ")] public float BulletBurstInterval ; + [Header("ӵ͸˥")] public float BulletPenetrationAttenuation = 0.2f; + [Header("ӵٶ")] public float BulletSpeed = 10f; + [Header("ӵȴ")] public float BulletAttackCooldown = 1f; + [Header("ӵ˺")] public float attack = 0; + public BulletData() + { + + } + public BulletData(int numberOfBulletPenetrations, int bulletScattering, int bulletBurstTimes, float bulletBurstInterval, float bulletPenetrationAttenuation, float bulletSpeed, float bulletAttackCooldown) + { + NumberOfBulletPenetrations = numberOfBulletPenetrations; + BulletScattering = bulletScattering; + BulletBurstTimes = bulletBurstTimes; + BulletBurstInterval = bulletBurstInterval; + BulletPenetrationAttenuation = bulletPenetrationAttenuation; + BulletSpeed = bulletSpeed; + BulletAttackCooldown = bulletAttackCooldown; + } + + public override string ToString() + { + return + $"{nameof(NumberOfBulletPenetrations)}: {NumberOfBulletPenetrations}, {nameof(BulletScattering)}: {BulletScattering}, {nameof(BulletBurstTimes)}: {BulletBurstTimes}, {nameof(BulletBurstInterval)}: {BulletBurstInterval}, {nameof(BulletPenetrationAttenuation)}: {BulletPenetrationAttenuation}, {nameof(BulletSpeed)}: {BulletSpeed}, {nameof(BulletAttackCooldown)}: {BulletAttackCooldown}"; + } +} +public class Bullet : MonoBehaviour +{ + [Header("ӵɫ")] public Role role; + [Header("ӵ䷶Χ")] public Attack attackObj; + [Header("ӵ")]public BulletType myBulletType; + [Header("")]public BulletMoveType bulletMoveType; + [Header("ӵ")] public BulletData bulletData; + + private void Update() + { + switch (this.bulletMoveType) + { + //ӵƶʽƶ + case BulletMoveType.PeerToPeer: + this.gameObject.transform.Translate(Vector3.up); + break; + case BulletMoveType.PointToDirection: + break; + } + } + private async void Start() + { + await Task.Delay(1000); + Destroy(gameObject); + } + private void OnTriggerEnter2D(Collider2D collision) + { + Role Crole = collision.gameObject.GetComponent(); + if(Crole) + { + if(Crole.camp!= role.camp) + { + Crole.bloodLoss(new object[] { Crole, role.Attack + bulletData.attack, attackObj.damageTyp, role }); + } + } + } +} diff --git a/Proto/Common.cs.meta b/Role/Bullet.cs.meta similarity index 83% rename from Proto/Common.cs.meta rename to Role/Bullet.cs.meta index 1f62f66..445bf2a 100644 --- a/Proto/Common.cs.meta +++ b/Role/Bullet.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 8f08a6ce1ce72944ab924e71bac47c6f +guid: 25a4f829952155e48bbe3abf99b78f2e MonoImporter: externalObjects: {} serializedVersion: 2 diff --git a/Role/Fun.cs b/Role/Fun.cs index 1e93fb1..d682a2c 100644 --- a/Role/Fun.cs +++ b/Role/Fun.cs @@ -6,9 +6,18 @@ using UnityEngine; public enum DamageType { - physicalDamage,//˺ - magicDamage,//ħ˺ - noAttributeDamage,//˺ + /// + /// ˺ + /// + physicalDamage, + /// + /// ħ˺ + /// + magicDamage, + /// + /// ˺ + /// + noAttributeDamage, } //public class prefabObjects diff --git a/Role/Role.cs b/Role/Role.cs index b7be7c2..cf64915 100644 --- a/Role/Role.cs +++ b/Role/Role.cs @@ -2,13 +2,31 @@ using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; +using System.Drawing; using System.Linq; using System.Reflection; using System.Threading.Tasks; using UnityEditor; using UnityEngine; using UnityEngine.UI; +using UnityEngine.UIElements; using Debug = UnityEngine.Debug; +using Image = UnityEngine.UI.Image; + +public enum Camp +{/// +/// +/// + Player, + /// + /// + /// + Enemy, + /// + /// + /// + Neutral +} /// /// ɫ,Ҵ¼ @@ -16,8 +34,8 @@ using Debug = UnityEngine.Debug; [ExecuteInEditMode] public class Role : Fun { + [Header("Ӫ")] public Camp camp ; [Header("Ѫ")] public float hp = 100f;//Ѫ - [Header("")] public float gold = 10f; public float Hp { get => hp; @@ -30,13 +48,30 @@ public class Role : Fun } } } - + [Header("")] public float gold = 10f; + public float Gold + { + [DebuggerStepThrough] + get => gold; + [DebuggerStepThrough] + set => gold = value; + } + [Header("")] private float attack = 10f; + public float Attack + { + get => attack; + set => attack = value; + } + [Header("ȼ")] private int level = 1; + public int Level + { + [DebuggerStepThrough] get => level; + [DebuggerStepThrough] set => level = value; + } [Header("")] public int physicalArmor = 10;// [Header("ħ")] public int magicArmor = 5;//ħ - public List buffList = new List(); [Header("")] public SimplePathfindingDoTween Navigation; - [System.Serializable ] public class AnimationList//list { @@ -53,17 +88,27 @@ public class Role : Fun public event AnimationItem OnAnimationIng; public event AnimationItem OnAnimationEnd; [Header("Ƿ")] public bool isAnimationPlay = false;//Ƿ - - + [Header("ײ")]public CircleCollider2D mycollider; + [Header("ű")] public Attack attackClass; + + + async void Start() { if (Application.isPlaying) { + if (attackClass) + { + attackClass.role = this; + } + UpdateBuff(); - Navigation.MoveToNextWaypoint(gameObject); + //Navigation.MoveToNextWaypoint(gameObject); } - + tag = Enum.GetName(typeof(Camp), camp); updateAnimation(); + + //AttackScope=1f; } /// /// ɫ @@ -113,6 +158,7 @@ public class Role : Fun OnAnimationEnd?.Invoke(animationHighlight); } } + /// /// ɫ /// @@ -168,4 +214,6 @@ public class Role : Fun } + + }