From 86e268c75170e26a2dc85c7cadf6f4792762fe58 Mon Sep 17 00:00:00 2001 From: NorthLan <6995syu@163.com> Date: Mon, 16 May 2022 11:25:15 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8Dc#=E5=91=BD=E4=BB=A4?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- game/pb/game/zhg/Command.cs | 402 +----------------------------------- 1 file changed, 6 insertions(+), 396 deletions(-) diff --git a/game/pb/game/zhg/Command.cs b/game/pb/game/zhg/Command.cs index 6dc218b..dfe117b 100644 --- a/game/pb/game/zhg/Command.cs +++ b/game/pb/game/zhg/Command.cs @@ -29,13 +29,10 @@ namespace Pb.Game.Zhg { "VXNlciI7CgpDcmVhdGVVbml0Eh8KBHVzZXIYASABKAsyES5wYi5jb21tb24u", "UGJVc2VyEgwKBHVuaXQYAiABKAkiNQoETW92ZRIfCgR1c2VyGAEgASgLMhEu", "cGIuY29tbW9uLlBiVXNlchIMCgRsaW5lGAIgASgJIisKCE91dGJyZWFrEh8K", - "BHVzZXIYASABKAsyES5wYi5jb21tb24uUGJVc2VyInsKBEdpZnQSHwoEdXNl", - "chgBIAEoCzIRLnBiLmNvbW1vbi5QYlVzZXISDgoGZ2lmdElkGAIgASgDEgsK", - "A251bRgDIAEoAxIQCghnaWZ0TmFtZRgEIAEoCRIRCgl0b3RhbENvaW4YBSAB", - "KAMSEAoIc2VuZFRpbWUYBiABKAMiJgoDV2FpEh8KBHVzZXIYASABKAsyES5w", - "Yi5jb21tb24uUGJVc2VyIj0KDEJ1aWxkaW5nTW9kZRIfCgR1c2VyGAEgASgL", - "MhEucGIuY29tbW9uLlBiVXNlchIMCgRtb2RlGAIgASgJQiBaHmRjZy9nYW1l", - "L3BiL2dhbWUvemhnO3BiR2FtZVpoZ2IGcHJvdG8z")); + "BHVzZXIYASABKAsyES5wYi5jb21tb24uUGJVc2VyIiYKA1dhaRIfCgR1c2Vy", + "GAEgASgLMhEucGIuY29tbW9uLlBiVXNlciI9CgxCdWlsZGluZ01vZGUSHwoE", + "dXNlchgBIAEoCzIRLnBiLmNvbW1vbi5QYlVzZXISDAoEbW9kZRgCIAEoCUIg", + "Wh5kY2cvZ2FtZS9wYi9nYW1lL3poZztwYkdhbWVaaGdiBnByb3RvMw==")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { global::Pb.Common.CommonReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { @@ -43,7 +40,6 @@ namespace Pb.Game.Zhg { new pbr::GeneratedClrTypeInfo(typeof(global::Pb.Game.Zhg.CreateUnit), global::Pb.Game.Zhg.CreateUnit.Parser, new[]{ "User", "Unit" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Pb.Game.Zhg.Move), global::Pb.Game.Zhg.Move.Parser, new[]{ "User", "Line" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Pb.Game.Zhg.Outbreak), global::Pb.Game.Zhg.Outbreak.Parser, new[]{ "User" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Pb.Game.Zhg.Gift), global::Pb.Game.Zhg.Gift.Parser, new[]{ "User", "GiftId", "Num", "GiftName", "TotalCoin", "SendTime" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Pb.Game.Zhg.Wai), global::Pb.Game.Zhg.Wai.Parser, new[]{ "User" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Pb.Game.Zhg.BuildingMode), global::Pb.Game.Zhg.BuildingMode.Parser, new[]{ "User", "Mode" }, null, null, null, null) })); @@ -936,392 +932,6 @@ namespace Pb.Game.Zhg { } - /// - /// 赠送礼物 push -> game.gift - /// - public sealed partial class Gift : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Gift()); - 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::Pb.Game.Zhg.CommandReflection.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 Gift() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Gift(Gift other) : this() { - user_ = other.user_ != null ? other.user_.Clone() : null; - giftId_ = other.giftId_; - num_ = other.num_; - giftName_ = other.giftName_; - totalCoin_ = other.totalCoin_; - sendTime_ = other.sendTime_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Gift Clone() { - return new Gift(this); - } - - /// Field number for the "user" field. - public const int UserFieldNumber = 1; - private global::Pb.Common.PbUser user_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Pb.Common.PbUser User { - get { return user_; } - set { - user_ = value; - } - } - - /// Field number for the "giftId" field. - public const int GiftIdFieldNumber = 2; - private long giftId_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long GiftId { - get { return giftId_; } - set { - giftId_ = value; - } - } - - /// Field number for the "num" field. - public const int NumFieldNumber = 3; - 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 "giftName" field. - public const int GiftNameFieldNumber = 4; - private string giftName_ = ""; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string GiftName { - get { return giftName_; } - set { - giftName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "totalCoin" field. - public const int TotalCoinFieldNumber = 5; - private long totalCoin_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long TotalCoin { - get { return totalCoin_; } - set { - totalCoin_ = value; - } - } - - /// Field number for the "sendTime" field. - public const int SendTimeFieldNumber = 6; - private long sendTime_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long SendTime { - get { return sendTime_; } - set { - sendTime_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as Gift); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(Gift other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(User, other.User)) return false; - if (GiftId != other.GiftId) return false; - if (Num != other.Num) return false; - if (GiftName != other.GiftName) return false; - if (TotalCoin != other.TotalCoin) return false; - if (SendTime != other.SendTime) 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 (user_ != null) hash ^= User.GetHashCode(); - if (GiftId != 0L) hash ^= GiftId.GetHashCode(); - if (Num != 0L) hash ^= Num.GetHashCode(); - if (GiftName.Length != 0) hash ^= GiftName.GetHashCode(); - if (TotalCoin != 0L) hash ^= TotalCoin.GetHashCode(); - if (SendTime != 0L) hash ^= SendTime.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 (user_ != null) { - output.WriteRawTag(10); - output.WriteMessage(User); - } - if (GiftId != 0L) { - output.WriteRawTag(16); - output.WriteInt64(GiftId); - } - if (Num != 0L) { - output.WriteRawTag(24); - output.WriteInt64(Num); - } - if (GiftName.Length != 0) { - output.WriteRawTag(34); - output.WriteString(GiftName); - } - if (TotalCoin != 0L) { - output.WriteRawTag(40); - output.WriteInt64(TotalCoin); - } - if (SendTime != 0L) { - output.WriteRawTag(48); - output.WriteInt64(SendTime); - } - 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 (user_ != null) { - output.WriteRawTag(10); - output.WriteMessage(User); - } - if (GiftId != 0L) { - output.WriteRawTag(16); - output.WriteInt64(GiftId); - } - if (Num != 0L) { - output.WriteRawTag(24); - output.WriteInt64(Num); - } - if (GiftName.Length != 0) { - output.WriteRawTag(34); - output.WriteString(GiftName); - } - if (TotalCoin != 0L) { - output.WriteRawTag(40); - output.WriteInt64(TotalCoin); - } - if (SendTime != 0L) { - output.WriteRawTag(48); - output.WriteInt64(SendTime); - } - 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 (user_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(User); - } - if (GiftId != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(GiftId); - } - if (Num != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(Num); - } - if (GiftName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(GiftName); - } - if (TotalCoin != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(TotalCoin); - } - if (SendTime != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(SendTime); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(Gift other) { - if (other == null) { - return; - } - if (other.user_ != null) { - if (user_ == null) { - User = new global::Pb.Common.PbUser(); - } - User.MergeFrom(other.User); - } - if (other.GiftId != 0L) { - GiftId = other.GiftId; - } - if (other.Num != 0L) { - Num = other.Num; - } - if (other.GiftName.Length != 0) { - GiftName = other.GiftName; - } - if (other.TotalCoin != 0L) { - TotalCoin = other.TotalCoin; - } - if (other.SendTime != 0L) { - SendTime = other.SendTime; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - if (user_ == null) { - User = new global::Pb.Common.PbUser(); - } - input.ReadMessage(User); - break; - } - case 16: { - GiftId = input.ReadInt64(); - break; - } - case 24: { - Num = input.ReadInt64(); - break; - } - case 34: { - GiftName = input.ReadString(); - break; - } - case 40: { - TotalCoin = input.ReadInt64(); - break; - } - case 48: { - SendTime = 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) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - if (user_ == null) { - User = new global::Pb.Common.PbUser(); - } - input.ReadMessage(User); - break; - } - case 16: { - GiftId = input.ReadInt64(); - break; - } - case 24: { - Num = input.ReadInt64(); - break; - } - case 34: { - GiftName = input.ReadString(); - break; - } - case 40: { - TotalCoin = input.ReadInt64(); - break; - } - case 48: { - SendTime = input.ReadInt64(); - break; - } - } - } - } - #endif - - } - /// /// 查询位置 push -> game.wai /// @@ -1339,7 +949,7 @@ namespace Pb.Game.Zhg { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Pb.Game.Zhg.CommandReflection.Descriptor.MessageTypes[5]; } + get { return global::Pb.Game.Zhg.CommandReflection.Descriptor.MessageTypes[4]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -1540,7 +1150,7 @@ namespace Pb.Game.Zhg { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Pb.Game.Zhg.CommandReflection.Descriptor.MessageTypes[6]; } + get { return global::Pb.Game.Zhg.CommandReflection.Descriptor.MessageTypes[5]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute]