public bool EntityInBlock(GridEntity entity) { if (entities.Contains(entity)) { return(true); } return(false); }
//Removes and Entity. public void RemoveEntity(GridEntity entity) { _entities.RemoveAll(x => x.GetInstanceID() == entity.GetInstanceID()); SetBlocked(); }
//Sets an Entity. public void SetEntity(GridEntity entity) { _entities.Add(entity); SetBlocked(); }