| 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 | { |
no test coverage detected