2014-01-24 10:22:18 +01:00
|
|
|
//////////////////////////////////
|
|
|
|
// Created by Sam Svensson 2013 //
|
|
|
|
//////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef LEVELLOADER_H
|
|
|
|
#define LEVELLOADER_H
|
|
|
|
|
2014-01-24 10:42:19 +01:00
|
|
|
#include <string>
|
2014-01-24 10:22:18 +01:00
|
|
|
#include <vector>
|
2014-02-03 14:50:15 +01:00
|
|
|
#include "../Misc/Utilities.h"
|
2014-01-24 10:22:18 +01:00
|
|
|
#include "ObjectDefines.h"
|
|
|
|
|
|
|
|
namespace GameLogic
|
|
|
|
{
|
2014-02-03 14:50:15 +01:00
|
|
|
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<Utility::DynamicMemory::SmartPointer<ObjectTypeHeader>> 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<PrivData> pData;
|
|
|
|
};
|
2014-01-24 10:22:18 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|