summaryrefslogtreecommitdiff
path: root/src/floor.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/floor.hpp')
-rw-r--r--src/floor.hpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/floor.hpp b/src/floor.hpp
index e0bdcc4..a04fc4b 100644
--- a/src/floor.hpp
+++ b/src/floor.hpp
@@ -2,11 +2,15 @@
#include <SFML/Graphics/RenderWindow.hpp>
#include <SFML/System/Vector2.hpp>
+#include <memory>
#include <vector>
+#include "tileset.hpp"
+
namespace silly::editor {
struct Tile {
sf::Vector2i position;
+ std::shared_ptr<TilesetTile> tile;
};
class TileFloor {
@@ -15,7 +19,8 @@ namespace silly::editor {
~TileFloor() = default;
void render(sf::RenderWindow &window) const;
- void place_tile(const sf::Vector2i &position);
+ void place_tile(std::shared_ptr<TilesetTile> &tile,
+ const sf::Vector2i &position);
void remove_tile(const sf::Vector2i &position);
const int get_width() const;