2015-02-04 16:16:06 +00:00
|
|
|
#pragma once
|
|
|
|
|
2015-02-07 19:08:59 +00:00
|
|
|
#include "application.hh"
|
2015-02-04 16:16:06 +00:00
|
|
|
#include "level.hh"
|
|
|
|
#include "tinyxml2.hh"
|
|
|
|
|
|
|
|
class Loader {
|
|
|
|
public:
|
|
|
|
Loader();
|
2015-02-07 19:08:59 +00:00
|
|
|
void loadConfig(Application* application);
|
2015-02-13 16:14:29 +00:00
|
|
|
void load(std::string filePath, Level* level, std::string compositionsPath, std::string scriptPath);
|
|
|
|
glm::vec3 reloadPlayerPosition(std::string filePath, Level* level);
|
2015-02-04 16:16:06 +00:00
|
|
|
private:
|
|
|
|
void errorCheck(tinyxml2::XMLError error);
|
|
|
|
};
|