完成进入房间和地图功能

This commit is contained in:
2025-08-28 00:20:33 +08:00
parent 94af0e5ddb
commit bd0457d4c5
10 changed files with 62 additions and 80 deletions

View File

@@ -129,30 +129,6 @@ namespace Fantasy
}
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
{