接口更改变动

This commit is contained in:
huyulong 2024-12-29 19:33:02 +08:00
parent 960edc44c0
commit 339753e3f8
2 changed files with 64 additions and 22 deletions

View File

@ -30,7 +30,7 @@ public static partial class HallReflection {
"IiEKD0pvaW5Sb29tUmVxdWVzdBIOCgZyb29tSWQYASABKAkiNQoSUGxheWVy",
"UmVhZHlSZXF1ZXN0Eg4KBnJvb21JZBgBIAEoCRIPCgdpc1JlYWR5GAIgASgI",
"IlQKEEpvaW5Sb29tUmVzcG9uc2USDwoHbWVzc2FnZRgBIAEoCRIMCgRjb2Rl",
"GAIgASgFEiEKBGRhdGEYAyABKAsyEy5QbGF5ZXJKb2luUmVzcG9uc2UitwMK",
"GAIgASgFEiEKBGRhdGEYAyABKAsyEy5QbGF5ZXJKb2luUmVzcG9uc2UiyAMK",
"ElBsYXllckpvaW5SZXNwb25zZRIQCghVc2VyTmFtZRgBIAEoCRIOCgZSb29t",
"SWQYAiABKAkSDgoGU3RhdHVzGAMgASgFEhAKCFJvbGVOYW1lGAQgASgJEhQK",
"DElzTGVhZGluZ05QQxgFIAEoBRIOCgZPbmxpbmUYBiABKAgSDgoGUm9sZUlk",
@ -40,25 +40,25 @@ public static partial class HallReflection {
"DyABKAUSFgoOTW92ZVNwZWVkRmlyc3QYECABKAUSFwoPTW92ZVNwZWVkU2Vj",
"b25kGBEgASgFEhYKDk1vdmVTcGVlZFRoaXJkGBIgASgFEhAKCEJlYXJMb2Fk",
"GBMgASgFEhIKClByb3RlY3Rpb24YFCABKAUSDgoGSGVhbHRoGBUgASgFEhIK",
"ClJvbGVTdGF0dXMYFiABKAUSDgoGVXNlcklkGBcgASgDIikKE1Byb3BUZW1w",
"bGF0ZVJlcXVlc3QSEgoKdGVtcGxhdGVJZBgBIAEoAyJLChRQcm9wVGVtcGxh",
"dGVSZXNwb25zZRISCgpUZW1wbGF0ZUlkGAEgASgDEgsKA051bRgCIAEoAxIS",
"CgpNYXRlcmlhbElkGAMgASgDIjsKD1BwY1Byb3BSZXNwb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ptorData,
new pbr::FileDescriptor[] { },
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
@ -69,7 +69,7 @@ public static partial class HallReflection {
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::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", "IsReady" }, 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),
@ -1818,6 +1818,7 @@ public sealed partial class PlayerJoinResponse : pb::IMessage<PlayerJoinResponse
health_ = other.health_;
roleStatus_ = other.roleStatus_;
userId_ = other.userId_;
isReady_ = other.isReady_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
@ -2172,6 +2173,21 @@ public sealed partial class PlayerJoinResponse : pb::IMessage<PlayerJoinResponse
}
}
/// <summary>Field number for the "isReady" field.</summary>
public const int IsReadyFieldNumber = 24;
private bool isReady_;
/// <summary>
/// 是否准备 false 未准备 true 准备
/// </summary>
[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) {
@ -2210,6 +2226,7 @@ public sealed partial class PlayerJoinResponse : pb::IMessage<PlayerJoinResponse
if (Health != other.Health) return false;
if (RoleStatus != other.RoleStatus) return false;
if (UserId != other.UserId) return false;
if (IsReady != other.IsReady) return false;
return Equals(_unknownFields, other._unknownFields);
}
@ -2240,6 +2257,7 @@ public sealed partial class PlayerJoinResponse : pb::IMessage<PlayerJoinResponse
if (Health != 0) hash ^= Health.GetHashCode();
if (RoleStatus != 0) hash ^= RoleStatus.GetHashCode();
if (UserId != 0L) hash ^= UserId.GetHashCode();
if (IsReady != false) hash ^= IsReady.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
@ -2350,6 +2368,10 @@ public sealed partial class PlayerJoinResponse : pb::IMessage<PlayerJoinResponse
output.WriteRawTag(184, 1);
output.WriteInt64(UserId);
}
if (IsReady != false) {
output.WriteRawTag(192, 1);
output.WriteBool(IsReady);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
@ -2452,6 +2474,10 @@ public sealed partial class PlayerJoinResponse : pb::IMessage<PlayerJoinResponse
output.WriteRawTag(184, 1);
output.WriteInt64(UserId);
}
if (IsReady != false) {
output.WriteRawTag(192, 1);
output.WriteBool(IsReady);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
@ -2531,6 +2557,9 @@ public sealed partial class PlayerJoinResponse : pb::IMessage<PlayerJoinResponse
if (UserId != 0L) {
size += 2 + pb::CodedOutputStream.ComputeInt64Size(UserId);
}
if (IsReady != false) {
size += 2 + 1;
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
@ -2612,6 +2641,9 @@ public sealed partial class PlayerJoinResponse : pb::IMessage<PlayerJoinResponse
if (other.UserId != 0L) {
UserId = other.UserId;
}
if (other.IsReady != false) {
IsReady = other.IsReady;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
@ -2723,6 +2755,10 @@ public sealed partial class PlayerJoinResponse : pb::IMessage<PlayerJoinResponse
UserId = input.ReadInt64();
break;
}
case 192: {
IsReady = input.ReadBool();
break;
}
}
}
#endif
@ -2834,6 +2870,10 @@ public sealed partial class PlayerJoinResponse : pb::IMessage<PlayerJoinResponse
UserId = input.ReadInt64();
break;
}
case 192: {
IsReady = input.ReadBool();
break;
}
}
}
}

View File

@ -666,6 +666,8 @@ public class test : MonoBehaviour
PlayerJoinResponse playerJoinResponse = ProtoBufffer.DeSerialize<PlayerJoinResponse>(joinByte);
Debug.Log("鯤소:" + playerJoinResponse.UserName + "속흙렛쇌:" + playerJoinResponse.RoomId.ToString());
GameObject.Find("player").transform.position = new Vector3((float)playerJoinResponse.X, (float)playerJoinResponse.Y, (float)playerJoinResponse.Z);
Debug.Log(playerJoinResponse.IsReady);//是否准备的判断
Debug.Log("鯤소貫零");
break;
@ -945,7 +947,7 @@ public class test : MonoBehaviour
break;