MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / loadFromFile

Method loadFromFile

src/Core/Scene/Scene.cpp:122–132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120 }
121
122 void Scene::loadFromFile(const std::string& path)
123 {
124 Debug::Log->debug("<Scene> Loading Scene from map file : '{0}'", path);
125 this->clear();
126 Debug::Log->debug("<Scene> Cleared Scene");
127
128 m_levelFileName = path;
129 vili::node sceneFile = vili::parser::from_file(
130 System::Path(path).find(), Config::Templates::getSceneTemplates());
131 this->load(sceneFile);
132 }
133
134 void Scene::setFutureLoadFromFile(const std::string& path)
135 {

Callers 4

updateMethod · 0.95
Loaders.cppFile · 0.45
loadImagesMethod · 0.45

Calls 7

clearMethod · 0.95
loadMethod · 0.95
from_fileFunction · 0.85
PathClass · 0.85
getSceneTemplatesFunction · 0.85
debugMethod · 0.80
findMethod · 0.45

Tested by

no test coverage detected