diff --git a/xiaofang/Assets/ProtoBuf/Proto/Hall.cs b/xiaofang/Assets/ProtoBuf/Proto/Hall.cs index 998c9be0..f058b50a 100644 --- a/xiaofang/Assets/ProtoBuf/Proto/Hall.cs +++ b/xiaofang/Assets/ProtoBuf/Proto/Hall.cs @@ -27,36 +27,38 @@ public static partial class HallReflection { "ASABKAkSDAoEY29kZRgCIAEoBRIMCgRkYXRlGAQgASgJEiEKBGRhdGEYAyAB", "KAsyEy5QbGF5ZXJKb2luUmVzcG9uc2UiHwoMSGVsbG9SZXF1ZXN0Eg8KB21l", "c3NhZ2UYASABKAkiIAoNSGVsbG9SZXNwb25zZRIPCgdtZXNzYWdlGAEgASgJ", - "IiEKD0pvaW5Sb29tUmVxdWVzdBIOCgZyb29tSWQYASABKAkiVAoQSm9pblJv", - "b21SZXNwb25zZRIPCgdtZXNzYWdlGAEgASgJEgwKBGNvZGUYAiABKAUSIQoE", - "ZGF0YRgDIAEoCzITLlBsYXllckpvaW5SZXNwb25zZSK3AwoSUGxheWVySm9p", - "blJlc3BvbnNlEhAKCFVzZXJOYW1lGAEgASgJEg4KBlJvb21JZBgCIAEoCRIO", - "CgZTdGF0dXMYAyABKAUSEAoIUm9sZU5hbWUYBCABKAkSFAoMSXNMZWFkaW5n", - "TlBDGAUgASgFEg4KBk9ubGluZRgGIAEoCBIOCgZSb2xlSWQYByABKAUSEwoL", - "R3JvdXBMZWFkZXIYCCABKAUSEgoKQWN0aW9uTW9kZRgJIAEoBRINCgVHcm91", - "cBgKIAEoBRIJCgFYGAsgASgBEgkKAVkYDCABKAESCQoBWhgNIAEoARITCgtP", - "dmVyc2VlQ29uZBgOIAEoCRIWCg5TZW5kRnJhbWVDb3VudBgPIAEoBRIWCg5N", - "b3ZlU3BlZWRGaXJzdBgQIAEoBRIXCg9Nb3ZlU3BlZWRTZWNvbmQYESABKAUS", - "FgoOTW92ZVNwZWVkVGhpcmQYEiABKAUSEAoIQmVhckxvYWQYEyABKAUSEgoK", - "UHJvdGV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cm9wVGVtcGxh", + "dGVSZXNwb25zZRISCgpUZW1wbGF0ZUlkGAEgASgDEgsKA051bRgCIAEoAxIS", + "CgpNYXRlcmlhbElkGAMgASgDIjsKD1BwY1Byb3BSZXNwb25zZRIoCglyZXNw", + "b25zZXMYASADKAsyFS5Qcm9wVGVtcGxhdGVSZXNwb25zZSJaChNScGNSb29t", + "SW5mb1Jlc3BvbnNlEgoKAklkGAEgASgDEhIKClRlbXBsYXRlSWQYAiABKAMS", + "DgoGU3RhdHVzGAMgASgDEhMKC1Jlc2VydmVEYXRlGAQgASgJIjkKE1VzZXJU", + "ZW1wbGF0ZVJlcXVlc3QSEgoKdGVtcGxhdGVJZBgBIAEoAxIOCgZSb29tSWQY", + "AiABKAkiOAoMVXNlclRlbXBsYXRlEigKCXJlc3BvbnNlcxgBIAMoCzIVLlVz", + "ZXJUZW1wbGF0ZVJlc3BvbnNlIv8BChRVc2VyVGVtcGxhdGVSZXNwb25zZRIO", + "CgZSb29tSWQYASABKAMSDgoGVXNlcklkGAIgASgDEg4KBlN0YXR1cxgDIAEo", + "BRISCgpUZW1wbGF0ZUlkGAQgASgDEg4KBlJvbGVJZBgFIAEoAxITCgtCaXJ0", + "aEFyZWFJZBgGIAEoAxIUCgxDaGFyZ2VBcmVhSWQYByABKAMSCQoBWBgIIAEo", + "AhIJCgFZGAkgASgCEgkKAVoYCiABKAISFgoOTW92ZVNwZWVkRmlyc3QYCyAB", + "KAMSFwoPTW92ZVNwZWVkU2Vjb25kGAwgASgDEhYKDk1vdmVTcGVlZFRoaXJk", + "GA0gASgDImIKD1VzZXJJbmZvUmVxdWVzdBIOCgZVc2VySWQYASABKAMSDgoG", + "U3RhdHVzGAIgASgFEg4KBlJvb21JZBgDIAEoCRIJCgF4GAQgASgCEgkKAXkY", + "BSABKAISCQoBehgGIAEoAiISChBVc2VySW5mb1Jlc3BvbnNlQgdaBS4vO3Bi", + "YgZwcm90bzM=")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { }, new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { @@ -65,6 +67,7 @@ public static partial class HallReflection { 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::PlayerReadyRequest), global::PlayerReadyRequest.Parser, new[]{ "RoomId", "IsReady" }, 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), @@ -392,6 +395,9 @@ public sealed partial class LoginResponse : pb::IMessage /// Field number for the "date" field. public const int DateFieldNumber = 4; private string date_ = ""; + /// + /// 返回服务器当前时间 + /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Date { @@ -1232,6 +1238,244 @@ public sealed partial class JoinRoomRequest : pb::IMessage } +[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] +public sealed partial class PlayerReadyRequest : pb::IMessage +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage +#endif +{ + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PlayerReadyRequest()); + 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 PlayerReadyRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PlayerReadyRequest(PlayerReadyRequest other) : this() { + roomId_ = other.roomId_; + isReady_ = other.isReady_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PlayerReadyRequest Clone() { + return new PlayerReadyRequest(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"); + } + } + + /// Field number for the "isReady" field. + public const int IsReadyFieldNumber = 2; + private bool isReady_; + /// + /// 是否准备 false 未准备 true 准备 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IsReady { + get { return isReady_; } + set { + isReady_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as PlayerReadyRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(PlayerReadyRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (RoomId != other.RoomId) return false; + if (IsReady != other.IsReady) 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 (IsReady != false) hash ^= IsReady.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 (IsReady != false) { + output.WriteRawTag(16); + output.WriteBool(IsReady); + } + 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 (IsReady != false) { + output.WriteRawTag(16); + output.WriteBool(IsReady); + } + 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 (IsReady != 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(PlayerReadyRequest other) { + if (other == null) { + return; + } + if (other.RoomId.Length != 0) { + RoomId = other.RoomId; + } + if (other.IsReady != false) { + IsReady = other.IsReady; + } + _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: { + IsReady = 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: { + RoomId = input.ReadString(); + break; + } + case 16: { + IsReady = input.ReadBool(); + break; + } + } + } + } + #endif + +} + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] public sealed partial class JoinRoomResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE @@ -1247,7 +1491,7 @@ public sealed partial class JoinRoomResponse : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::HallReflection.Descriptor.MessageTypes[5]; } + get { return global::HallReflection.Descriptor.MessageTypes[6]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -1531,7 +1775,7 @@ public sealed partial class PlayerJoinResponse : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::HallReflection.Descriptor.MessageTypes[9]; } + get { return global::HallReflection.Descriptor.MessageTypes[10]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -3278,7 +3522,7 @@ public sealed partial class RpcRoomInfoResponse : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::HallReflection.Descriptor.MessageTypes[12]; } + get { return global::HallReflection.Descriptor.MessageTypes[13]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -4009,7 +4253,7 @@ public sealed partial class UserTemplateResponse : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::HallReflection.Descriptor.MessageTypes[14]; } + get { return global::HallReflection.Descriptor.MessageTypes[15]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -5034,7 +5278,7 @@ public sealed partial class UserInfoResponse : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::HallReflection.Descriptor.MessageTypes[15]; } + get { return global::HallReflection.Descriptor.MessageTypes[16]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] diff --git a/xiaofang/Assets/ProtoBuf/Proto/User.cs b/xiaofang/Assets/ProtoBuf/Proto/User.cs index dc1c0901..8a37a30e 100644 --- a/xiaofang/Assets/ProtoBuf/Proto/User.cs +++ b/xiaofang/Assets/ProtoBuf/Proto/User.cs @@ -24,18 +24,18 @@ public static partial class UserReflection { string.Concat( "Cgp1c2VyLnByb3RvIiQKElVzZXJPZmZsaW5lUmVxdWVzdBIOCgZ1c2VySWQY", "ASABKAkiJQoTVXNlck9mZmxpbmVSZXNwb25zZRIOCgZ1c2VySWQYASABKAki", - "IQoPVXNlclJvbGVSZXF1ZXN0Eg4KBnJvbGVJZBgBIAEoBSKRAQoQVXNlclJv", + "IQoPVXNlclJvbGVSZXF1ZXN0Eg4KBnJvbGVJZBgBIAEoBSKmAQoQVXNlclJv", "bGVSZXNwb25zZRIOCgZyb2xlSWQYASABKAUSEAoIcm9sZU5hbWUYAiABKAkS", "EgoKYWN0aW9uTW9kZRgDIAEoBRINCgVncm91cBgEIAEoBRITCgtncm91cExl", "YWRlchgFIAEoBRIUCgxpc0xlYWRpbmdOUEMYBiABKAUSDQoFc3RhdHMYByAB", - "KAlCB1oFLi87cGJiBnByb3RvMw==")); + "KAkSEwoLV2VpZ2h0TGltaXQYCCABKAVCB1oFLi87cGJiBnByb3RvMw==")); 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", "Stats" }, null, null, null, null) + new pbr::GeneratedClrTypeInfo(typeof(global::UserRoleResponse), global::UserRoleResponse.Parser, new[]{ "RoleId", "RoleName", "ActionMode", "Group", "GroupLeader", "IsLeadingNPC", "Stats", "WeightLimit" }, null, null, null, null) })); } #endregion @@ -684,6 +684,7 @@ public sealed partial class UserRoleResponse : pb::IMessage groupLeader_ = other.groupLeader_; isLeadingNPC_ = other.isLeadingNPC_; stats_ = other.stats_; + weightLimit_ = other.weightLimit_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } @@ -777,6 +778,18 @@ public sealed partial class UserRoleResponse : pb::IMessage } } + /// Field number for the "WeightLimit" field. + public const int WeightLimitFieldNumber = 8; + private int weightLimit_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int WeightLimit { + get { return weightLimit_; } + set { + weightLimit_ = value; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { @@ -799,6 +812,7 @@ public sealed partial class UserRoleResponse : pb::IMessage if (GroupLeader != other.GroupLeader) return false; if (IsLeadingNPC != other.IsLeadingNPC) return false; if (Stats != other.Stats) return false; + if (WeightLimit != other.WeightLimit) return false; return Equals(_unknownFields, other._unknownFields); } @@ -813,6 +827,7 @@ public sealed partial class UserRoleResponse : pb::IMessage if (GroupLeader != 0) hash ^= GroupLeader.GetHashCode(); if (IsLeadingNPC != 0) hash ^= IsLeadingNPC.GetHashCode(); if (Stats.Length != 0) hash ^= Stats.GetHashCode(); + if (WeightLimit != 0) hash ^= WeightLimit.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -859,6 +874,10 @@ public sealed partial class UserRoleResponse : pb::IMessage output.WriteRawTag(58); output.WriteString(Stats); } + if (WeightLimit != 0) { + output.WriteRawTag(64); + output.WriteInt32(WeightLimit); + } if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -897,6 +916,10 @@ public sealed partial class UserRoleResponse : pb::IMessage output.WriteRawTag(58); output.WriteString(Stats); } + if (WeightLimit != 0) { + output.WriteRawTag(64); + output.WriteInt32(WeightLimit); + } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -928,6 +951,9 @@ public sealed partial class UserRoleResponse : pb::IMessage if (Stats.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Stats); } + if (WeightLimit != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(WeightLimit); + } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -961,6 +987,9 @@ public sealed partial class UserRoleResponse : pb::IMessage if (other.Stats.Length != 0) { Stats = other.Stats; } + if (other.WeightLimit != 0) { + WeightLimit = other.WeightLimit; + } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -1008,6 +1037,10 @@ public sealed partial class UserRoleResponse : pb::IMessage Stats = input.ReadString(); break; } + case 64: { + WeightLimit = input.ReadInt32(); + break; + } } } #endif @@ -1055,6 +1088,10 @@ public sealed partial class UserRoleResponse : pb::IMessage Stats = input.ReadString(); break; } + case 64: { + WeightLimit = input.ReadInt32(); + break; + } } } } diff --git a/xiaofang/Assets/ProtoBuf/test.cs b/xiaofang/Assets/ProtoBuf/test.cs index 7e1a7ce4..f5926277 100644 --- a/xiaofang/Assets/ProtoBuf/test.cs +++ b/xiaofang/Assets/ProtoBuf/test.cs @@ -534,6 +534,27 @@ public class test : MonoBehaviour } + public void PlayerReady(string roomId,bool isready) + { + PlayerReadyRequest data = new PlayerReadyRequest(); + data.RoomId = roomId; + data.IsReady = isready; + + + WSMessage msg = new WSMessage(); + msg.Module = "select"; + msg.ServiceName = "GetSelectHistoryList"; + msg.Data = ByteString.CopyFrom(ProtoBufffer.Serialize(data)); + byte[] sendData = ProtoBufffer.Serialize(msg); + WSMessage deinfo = ProtoBufffer.DeSerialize(sendData); + PlayerReadyRequest login = ProtoBufffer.DeSerialize(deinfo.Data.ToByteArray()); + Debug.Log("==========Ϣת"); + //BroadcastFrameMsg.FramesFieldNumber + + wEBScriptListener.SendMessageByte(sendData); + } + +