mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-08 20:41:49 +00:00
Content menu, content-pack dependencies
This commit is contained in:
parent
abc3e47feb
commit
c57b2d0de3
25 changed files with 230 additions and 21 deletions
|
|
@ -110,6 +110,14 @@ void World::setName(const std::string& name) {
|
|||
this->name = name;
|
||||
}
|
||||
|
||||
bool World::hasPack(const std::string& id) const {
|
||||
for (auto& pack : packs) {
|
||||
if (pack.id == id)
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
void World::setSeed(uint64_t seed) {
|
||||
this->seed = seed;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -70,6 +70,7 @@ public:
|
|||
void setName(const std::string& name);
|
||||
void setSeed(uint64_t seed);
|
||||
|
||||
bool hasPack(const std::string& id) const;
|
||||
std::string getName() const;
|
||||
uint64_t getSeed() const;
|
||||
const std::vector<ContentPack>& getPacks() const;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue