Map now displays and works, just need to refine the colors and the compass directions.

This commit is contained in:
Zed A. Shaw 2025-07-15 13:28:23 -04:00
parent dca38397e7
commit 75646619b3
8 changed files with 77 additions and 74 deletions

View file

@ -1,6 +1,7 @@
#pragma once
#include "levelmanager.hpp"
#include "textures.hpp"
#include "matrix.hpp"
#include <guecs/ui.hpp>
#include <string>
@ -8,10 +9,14 @@ namespace gui {
class MapViewUI {
public:
guecs::UI $gui;
GameLevel $level;
DinkyECS::Entity $log_to;
textures::SpriteTexture $paper;
EntityGrid $entity_map;
std::deque<std::wstring> $messages;
GameLevel $level;
std::shared_ptr<sf::RenderTexture> $map_render;
sf::Sprite $map_sprite;
matrix::Matrix $map_tiles;
textures::SpriteTexture $paper;
MapViewUI(GameLevel &level);
void init();
@ -19,6 +24,6 @@ namespace gui {
void update_level(GameLevel &level);
void log(std::wstring msg);
void update();
void save_map(const std::string& outfile, int compass_dir);
void save_map(int compass_dir);
};
}