Move the map_view and mini_map into gui as well.

This commit is contained in:
Zed A. Shaw 2025-05-16 00:07:24 -04:00
parent bed5ce22d2
commit a2246d2b71
6 changed files with 5 additions and 6 deletions

20
gui/mini_map.hpp Normal file
View file

@ -0,0 +1,20 @@
#pragma once
#include "levelmanager.hpp"
#include "textures.hpp"
#include <guecs/ui.hpp>
#include "tilemap.hpp"
namespace gui {
class MiniMapUI {
public:
guecs::Textual $map_grid;
guecs::UI $gui;
GameLevel $level;
shared_ptr<sf::Font> $font = nullptr;
MiniMapUI(GameLevel &level);
void init(guecs::UI& overlay);
void render(sf::RenderWindow &window, int compass_dir);
void update_level(GameLevel &level);
};
}