diff options
| author | ilotterytea <iltsu@alright.party> | 2025-02-01 22:11:28 +0500 |
|---|---|---|
| committer | ilotterytea <iltsu@alright.party> | 2025-02-01 22:11:28 +0500 |
| commit | 860773932a67fa0a30c5943336bef6e0be0414a1 (patch) | |
| tree | bc3bc08027d4ace29587d414bbead409596f5afa /src/tileset.hpp | |
| parent | c89db32c69c2ca3db059193591ec910d45fbbcc3 (diff) | |
feat: select a tile
Diffstat (limited to 'src/tileset.hpp')
| -rw-r--r-- | src/tileset.hpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/tileset.hpp b/src/tileset.hpp index 2b65356..58f5bec 100644 --- a/src/tileset.hpp +++ b/src/tileset.hpp @@ -1,6 +1,7 @@ #pragma once #include <SFML/Graphics/Texture.hpp> +#include <memory> #include <string> #include <vector> @@ -22,9 +23,9 @@ namespace silly::editor { void add_tile(const std::string &path, TilesetTileType type); void remove_tile(const TilesetTile &tile); - const std::vector<TilesetTile> &get_tiles() const; + const std::vector<std::shared_ptr<TilesetTile>> &get_tiles() const; private: - std::vector<TilesetTile> tiles; + std::vector<std::shared_ptr<TilesetTile>> tiles; }; }
\ No newline at end of file |
