Пример #1
0
 public bool EntityInBlock(GridEntity entity)
 {
     if (entities.Contains(entity))
     {
         return(true);
     }
     return(false);
 }
Пример #2
0
 //Removes and Entity.
 public void RemoveEntity(GridEntity entity)
 {
     _entities.RemoveAll(x => x.GetInstanceID() == entity.GetInstanceID());
     SetBlocked();
 }
Пример #3
0
 //Sets an Entity.
 public void SetEntity(GridEntity entity)
 {
     _entities.Add(entity);
     SetBlocked();
 }