Ejemplo n.º 1
0
 public T GetEntityAt <T>(Point position) where T : Construct
 {
     return(entities.GetItems(position).OfType <T>().FirstOrDefault());
 }
Ejemplo n.º 2
0
 public T GetEntityAt <T>(Point tile) where T : Entity =>
 MapEntities.GetItems(tile).OfType <T>().FirstOrDefault();
Ejemplo n.º 3
0
 public T GetEntityAt <T>(Point location) where T : Entity
 {
     return(Entities.GetItems(location).OfType <T>().FirstOrDefault());
 }