2014-02-10 14:00:14 +01:00
|
|
|
#ifndef LEVEL_PARSER_H
|
|
|
|
#define LEVEL_PARSER_H
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
#include <vector>
|
|
|
|
#include "ObjectDefines.h"
|
2014-02-17 11:50:51 +01:00
|
|
|
#include "Utilities.h"
|
2014-02-10 14:00:14 +01:00
|
|
|
|
|
|
|
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
|