mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
cleanup
This commit is contained in:
parent
e442402e43
commit
f99d909f34
9 changed files with 19 additions and 46 deletions
|
|
@ -13,7 +13,6 @@
|
|||
#include "coders/json.hpp"
|
||||
#include "coders/toml.hpp"
|
||||
#include "coders/commons.hpp"
|
||||
#include "content/Content.hpp"
|
||||
#include "content/ContentControl.hpp"
|
||||
#include "core_defs.hpp"
|
||||
#include "io/io.hpp"
|
||||
|
|
@ -322,20 +321,6 @@ void Engine::loadAssets() {
|
|||
}
|
||||
}
|
||||
|
||||
void Engine::loadContent() {
|
||||
content->loadContent();
|
||||
}
|
||||
|
||||
void Engine::resetContent() {
|
||||
paths.setCurrentWorldFolder("");
|
||||
content->resetContent();
|
||||
}
|
||||
|
||||
void Engine::loadWorldContent(const io::path& folder) {
|
||||
paths.setCurrentWorldFolder(folder);
|
||||
content->loadContent(ContentPack::worldPacksList("world:"));
|
||||
}
|
||||
|
||||
void Engine::setScreen(std::shared_ptr<Screen> screen) {
|
||||
// reset audio channels (stop all sources)
|
||||
audio::reset_channel(audio::get_channel_index("regular"));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue