目录结构调整

This commit is contained in:
2025-08-28 00:20:12 +08:00
parent a19a071c47
commit efb64ce7bc
195 changed files with 344 additions and 677 deletions

View File

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