Systems::render_map now holds the logic to render the map, and it's working well enough to use for displaying.

This commit is contained in:
Zed A. Shaw 2025-07-15 11:39:05 -04:00
parent 0d1eacdc5c
commit dca38397e7
3 changed files with 45 additions and 40 deletions

View file

@ -1,7 +1,7 @@
#pragma once
#include "components.hpp"
#include "levelmanager.hpp"
#include <SFML/Graphics/RenderTexture.hpp>
namespace System {
using namespace components;
@ -39,4 +39,6 @@ namespace System {
Position& player_position(GameLevel& level);
void inventory_swap(GameLevel &level, Entity container_id, const std::string& a_name, const std::string &b_name);
bool inventory_occupied(GameLevel& level, Entity container_id, const std::string& name);
void render_map(Matrix& tiles, EntityGrid& entity_map, sf::RenderTexture& render);
}