地图相关协议提交

This commit is contained in:
2025-08-27 18:06:11 +08:00
parent c235422f97
commit a19a071c47
4 changed files with 87 additions and 10 deletions

View File

@@ -121,6 +121,30 @@ namespace NBC
}
public uint OpCode() { return OuterOpcode.G2C_RepeatLogin; }
}
/// <summary>
/// 通知客户端切换地图
/// </summary>
[ProtoContract]
public partial class G2C_ChangeMap : AMessage, IMessage, IProto
{
public static G2C_ChangeMap Create(Scene scene)
{
return scene.MessagePoolComponent.Rent<G2C_ChangeMap>();
}
public override void Dispose()
{
MapId = default;
Node = default;
#if FANTASY_NET || FANTASY_UNITY
GetScene().MessagePoolComponent.Return<G2C_ChangeMap>(this);
#endif
}
public uint OpCode() { return OuterOpcode.G2C_ChangeMap; }
[ProtoMember(1)]
public int MapId { get; set; }
[ProtoMember(2)]
public int Node { get; set; }
}
[ProtoContract]
public partial class C2Game_GetRoleInfoRequest : AMessage, ICustomRouteRequest, IProto
{