servuo/Scripts/Misc/WorldLocation.cs
TrueUO fb1802305f Bug Fixes
- Removed unneeded usings
- World chat log now has a Config option. Turned off by default now.
- Added two new timer priorities.
- Fixed a crash with box of ropes.
- Consolidation of the Pathing movements and algorithms.
- Correctly makes sure you are inside the house you are trying to place addons in.
2020-09-21 09:53:44 -04:00

30 lines
712 B
C#

namespace Server
{
public class WorldLocation
{
public Point3D Location { get; set; }
public Map Map { get; set; }
public WorldLocation(int x, int y, int z, Map map)
: this(new Point3D(x, y, z), map)
{
}
public WorldLocation(Point3D p, Map map)
{
Location = p;
Map = map;
}
public WorldLocation(IEntity e)
{
Location = e.Location;
Map = e.Map;
}
public override string ToString()
{
return string.Format("({0}, {1}, {2}) [{3}]", Location.X, Location.Y, Location.Z, Map == null ? "(Null)" : Map.ToString());
}
}
}