public List <MapObject> GetCollisionList(TileCell tileCell) { int tileX = tileCell.GetTileX(); int tileY = tileCell.GetTileY(); if (tileX < 0 || _width <= tileX) { return(null); } if (tileY < 0 || _height <= tileY) { return(null); } return(tileCell.GetCollisionList()); }
// Move public List <MapObject> GetCollisionList(int tileX, int tileY) { if (tileX < 0 || _width <= tileX) { return(null); } if (tileY < 0 || _height <= tileY) { return(null); } TileCell tileCell = GetTileCell(tileX, tileY); return(tileCell.GetCollisionList()); }