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:
parent
0d1eacdc5c
commit
dca38397e7
3 changed files with 45 additions and 40 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue