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