Пример #1
0
 public T GetEntityAt <T>(Point position) where T : Construct
 {
     return(entities.GetItems(position).OfType <T>().FirstOrDefault());
 }
Пример #2
0
 public T GetEntityAt <T>(Point tile) where T : Entity =>
 MapEntities.GetItems(tile).OfType <T>().FirstOrDefault();
Пример #3
0
 public T GetEntityAt <T>(Point location) where T : Entity
 {
     return(Entities.GetItems(location).OfType <T>().FirstOrDefault());
 }