2014-01-24 10:22:18 +01:00
|
|
|
//////////////////////////////////
|
|
|
|
// Created by Sam Svensson 2013 //
|
|
|
|
//////////////////////////////////
|
|
|
|
|
|
|
|
#include "LevelLoader.h"
|
|
|
|
using namespace GameLogic;
|
2014-01-24 10:42:19 +01:00
|
|
|
using namespace GameLogic::LevelFileLoader;
|
|
|
|
|
2014-01-24 10:22:18 +01:00
|
|
|
|
|
|
|
std::vector<ObjectTypeHeader> LevelLoader::LoadLevel(std::string fileName)
|
|
|
|
{
|
2014-01-28 16:15:10 +01:00
|
|
|
return parser.Parse(fileName);
|
2014-01-24 10:22:18 +01:00
|
|
|
}
|
|
|
|
|
2014-01-28 11:27:29 +01:00
|
|
|
LevelMetaData LevelLoader::LoadLevelHeader(std::string fileName)
|
2014-01-24 10:22:18 +01:00
|
|
|
{
|
2014-01-28 16:15:10 +01:00
|
|
|
return parser.ParseHeader(fileName);
|
2014-01-24 10:22:18 +01:00
|
|
|
}
|