Content menu, content-pack dependencies

This commit is contained in:
MihailRis
2024-01-27 00:36:18 +03:00
parent abc3e47feb
commit c57b2d0de3
25 changed files with 230 additions and 21 deletions
+8
View File
@@ -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;
}