2014-02-10 14:00:14 +01:00
|
|
|
#ifndef LEVEL_PARSER_H
|
|
|
|
#define LEVEL_PARSER_H
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
#include <vector>
|
|
|
|
#include "ObjectDefines.h"
|
|
|
|
#include "../Misc/Utilities.h"
|
|
|
|
|
|
|
|
namespace GameLogic
|
|
|
|
{
|
|
|
|
namespace LevelFileLoader
|
|
|
|
{
|
|
|
|
class LevelParser
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
LevelParser();
|
|
|
|
~LevelParser();
|
|
|
|
|
|
|
|
//
|
|
|
|
std::vector<Utility::DynamicMemory::SmartPointer<ObjectTypeHeader>> Parse(std::string filename);
|
|
|
|
|
|
|
|
//
|
|
|
|
LevelMetaData ParseHeader(std::string filename);
|
|
|
|
|
|
|
|
private:
|
2014-02-12 14:48:58 +01:00
|
|
|
LevelLoaderInternal::FormatVersion formatVersion;
|
2014-02-10 14:00:14 +01:00
|
|
|
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#endif
|