2014-01-24 09:00:59 +01:00
|
|
|
#ifndef LEVEL_PARSER_H
|
|
|
|
#define LEVEL_PARSER_H
|
|
|
|
|
2014-01-24 10:01:58 +01:00
|
|
|
#include <string>
|
2014-01-24 09:00:59 +01:00
|
|
|
#include <vector>
|
|
|
|
#include "ObjectDefines.h"
|
2014-02-17 10:38:11 +01:00
|
|
|
#include "Utilities.h"
|
2014-01-24 09:00:59 +01:00
|
|
|
|
|
|
|
namespace GameLogic
|
|
|
|
{
|
2014-01-24 10:42:19 +01:00
|
|
|
namespace LevelFileLoader
|
2014-01-24 09:00:59 +01:00
|
|
|
{
|
|
|
|
class LevelParser
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
LevelParser();
|
|
|
|
~LevelParser();
|
|
|
|
|
|
|
|
//
|
2014-02-18 21:24:21 +01:00
|
|
|
std::vector<Utility::DynamicMemory::SmartPointer<ObjectTypeHeader>> Parse(std::wstring filename);
|
2014-01-24 09:00:59 +01:00
|
|
|
|
|
|
|
//
|
2014-02-18 21:24:21 +01:00
|
|
|
LevelMetaData ParseHeader(std::wstring filename);
|
2014-01-24 09:00:59 +01:00
|
|
|
|
|
|
|
private:
|
2014-02-07 14:12:54 +01:00
|
|
|
LevelLoaderInternal::FormatVersion formatVersion;
|
2014-01-24 09:00:59 +01:00
|
|
|
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#endif
|