Fix serialization of home mount flag

Part of #6
This commit is contained in:
zontreck 2025-06-05 12:41:22 -07:00
parent bd12021575
commit ac8ac62d27
4 changed files with 16 additions and 15 deletions

View file

@ -96,12 +96,13 @@ namespace AriasServerUtils
public bool CanHaveMount = false;
public static Warp Create(IServerPlayer player)
public static Warp Create(IServerPlayer player, bool withMount = false)
{
Warp warp = new Warp();
warp.Location = PlayerPosition.from(player.Entity);
warp.CreatedBy = player.PlayerName;
warp.CreatedAt = DateTime.Now;
warp.CanHaveMount = withMount;
return warp;
}
@ -113,6 +114,12 @@ namespace AriasServerUtils
public Dictionary<string, Warp> warps = new Dictionary<string, Warp>();
}
[Serializable]
public class Costs
{
}
public class BackCaches
{