public void AddMap(TileMap newMap) { mapList.Add(newMap); }
public List <Tile> getAllTiles(TileMap map) { return(map.backgroundTiles); }
public Tile(Texture2D texture, Vector2 Pos, int width, int height, int col, int row, bool draw, Vector2 tilemapPos, bool walkOn, TileMap m) { _Texture = texture; _Position = Pos; _TileWidth = width; _TileHeight = height; _Col = col; _Row = row; visible = draw; _SourceRec = new Rectangle(_TileWidth * _Col, _TileHeight * _Row, _TileWidth, _TileHeight); destRect = new Rectangle((int)_Position.X, (int)_Position.Y, _TileWidth, _TileHeight); localPos = tilemapPos; tileCenter.X = this._Position.X + this._TileWidth / 2; tileCenter.Y = this._Position.Y + this._TileHeight / 2; walkable = walkOn; myMap = m; }