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"
|
|
|
|
|
|
|
|
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-01-24 10:01:58 +01:00
|
|
|
std::vector<ObjectTypeHeader> Parse(std::string filename);
|
2014-01-24 09:00:59 +01:00
|
|
|
|
|
|
|
//
|
2014-01-28 11:27:29 +01:00
|
|
|
LevelMetaData ParseHeader(std::string filename);
|
2014-01-24 09:00:59 +01:00
|
|
|
|
|
|
|
private:
|
2014-01-28 11:27:29 +01:00
|
|
|
FormatVersion formatVersion;
|
2014-01-24 09:00:59 +01:00
|
|
|
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#endif
|