Finally have inventory not crashing for most edge cases. This solves many bugs but mostly closes #58.
This commit is contained in:
parent
601f3331ed
commit
f64b202ee7
9 changed files with 90 additions and 43 deletions
|
@ -37,4 +37,6 @@ namespace System {
|
|||
void remove_from_container(World& world, Entity cont_id, const std::string& name);
|
||||
void remove_from_world(GameLevel &level, Entity entity);
|
||||
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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue