完成进入房间和地图功能

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

@@ -300,28 +300,4 @@ namespace Fantasy
[ProtoMember(1)]
public uint ErrorCode { get; set; }
}
/// <summary>
/// 通知网关切换地图
/// </summary>
[ProtoContract]
public partial class Map2G_ChangeMapMessage : AMessage, IRouteMessage, IProto
{
public static Map2G_ChangeMapMessage Create(Scene scene)
{
return scene.MessagePoolComponent.Rent<Map2G_ChangeMapMessage>();
}
public override void Dispose()
{
MapId = default;
Node = default;
#if FANTASY_NET || FANTASY_UNITY
GetScene().MessagePoolComponent.Return<Map2G_ChangeMapMessage>(this);
#endif
}
public uint OpCode() { return InnerOpcode.Map2G_ChangeMapMessage; }
[ProtoMember(1)]
public int MapId { get; set; }
[ProtoMember(2)]
public int Node { get; set; }
}
}