mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
cleanup
This commit is contained in:
parent
923ca2b89e
commit
d708e8d21c
4 changed files with 8 additions and 10 deletions
|
|
@ -1,9 +1,10 @@
|
|||
#include "Inventories.hpp"
|
||||
|
||||
#include <algorithm>
|
||||
|
||||
#include "world/Level.hpp"
|
||||
#include "world/World.hpp"
|
||||
#include "content/Content.hpp"
|
||||
|
||||
#include <algorithm>
|
||||
|
||||
Inventories::Inventories(Level& level) : level(level) {
|
||||
}
|
||||
|
|
@ -32,8 +33,9 @@ std::shared_ptr<Inventory> Inventories::createVirtual(size_t size) {
|
|||
});
|
||||
}
|
||||
|
||||
void Inventories::store(const std::shared_ptr<Inventory>& inv) {
|
||||
map[inv->getId()] = inv;
|
||||
void Inventories::store(const std::shared_ptr<Inventory>& inventory) {
|
||||
inventory->check(*level.content.getIndices());
|
||||
map[inventory->getId()] = inventory;
|
||||
}
|
||||
|
||||
void Inventories::remove(int64_t id) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue