parent
d366fa8e3c
commit
185bee7ae2
2 changed files with 36 additions and 36 deletions
|
|
@ -18,6 +18,8 @@ namespace Server
|
|||
bool InRange(Point3D p, int range);
|
||||
|
||||
bool InRange(IPoint2D p, int range);
|
||||
|
||||
void RemoveItem(Item item);
|
||||
}
|
||||
|
||||
public class Entity : IEntity, IComparable<Entity>
|
||||
|
|
@ -62,6 +64,10 @@ namespace Server
|
|||
{
|
||||
}
|
||||
|
||||
public void RemoveItem(Item item)
|
||||
{
|
||||
}
|
||||
|
||||
public bool InRange(Point2D p, int range) =>
|
||||
p.m_X >= Location.m_X - range
|
||||
&& p.m_X <= Location.m_X + range
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue