mirror of
https://github.com/ServUO/ServUO
synced 2026-08-11 20:23:04 -04:00
- 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.
30 lines
712 B
C#
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());
|
|
}
|
|
}
|
|
}
|