Made it so you can right-click on an item to use it, but yeah it's bad. Gotta refactor.
This commit is contained in:
parent
42575ef1f5
commit
ad0069e899
9 changed files with 48 additions and 61 deletions
|
@ -42,5 +42,5 @@ namespace System {
|
|||
void render_map(Matrix& tiles, EntityGrid& entity_map, sf::RenderTexture& render, int compass_dir, wchar_t player_display);
|
||||
|
||||
void set_position(DinkyECS::World& world, SpatialMap& collision, Entity entity, Position pos);
|
||||
bool use_item(GameLevel& level, Entity what);
|
||||
bool use_item(GameLevel& level, const std::string& slot_name);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue