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-24 10:42:19 +01:00
|
|
|
return parser->Parse(fileName);
|
2014-01-24 10:22:18 +01:00
|
|
|
}
|
|
|
|
|
2014-01-24 10:42:19 +01:00
|
|
|
ObjectTypeHeader LevelLoader::LoadLevelHeader(std::string fileName)
|
2014-01-24 10:22:18 +01:00
|
|
|
{
|
2014-01-24 10:42:19 +01:00
|
|
|
return parser->ParseHeader(fileName);
|
2014-01-24 10:22:18 +01:00
|
|
|
}
|