Esempio n. 1
0
 static public bool IsSolid(TilePosition tilePosition, GameContext gameContext)
 {
     return(gameContext.GetEntitiesWithTilePosition(tilePosition).Count > 0);
 }
Esempio n. 2
0
 public static System.Collections.Generic.HashSet <GameEntity> GetEntitiesWithTilePosition(this GameContext context, GamePlatformer.Model.Utils.TilePosition tilePosition)
 {
     return(((Entitas.EntityIndex <GameEntity, GamePlatformer.Model.Utils.TilePosition>)context.GetEntityIndex(Contexts.TilePosition)).GetEntities(tilePosition));
 }