////////////////////////////////// // Created by Sam Svensson 2013 // ////////////////////////////////// #ifndef LEVELLOADER_H #define LEVELLOADER_H #include #include #include "../Misc/Utilities.h" #include "ObjectDefines.h" namespace GameLogic { class LevelLoader { public: LevelLoader(); ~LevelLoader(); /******************************************************** * Loads the level and objects from file. * @param fileName: Path to the level-file that you want to load. * @return: Returns all structs with objects and information about the level. ********************************************************/ std::vector> LoadLevel(std::string fileName); /******************************************************** * Just for fast access for the meta information about the level. * @param fileName: Path to the level-file that you want to load. * @return: Returns the meta information about the level. ********************************************************/ LevelMetaData LoadLevelHeader(std::string fileName); //. private: struct PrivData; Utility::DynamicMemory::SmartPointer pData; }; } #endif