예제 #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());
 }