Danbias/Code/Game/GameLogic/LevelLoader.h

30 lines
726 B
C
Raw Normal View History

//////////////////////////////////
// Created by Sam Svensson 2013 //
//////////////////////////////////
#ifndef LEVELLOADER_H
#define LEVELLOADER_H
#include <string>
#include <vector>
#include <Vector.h>
#include "ObjectDefines.h"
#include "LevelParser.h"
namespace GameLogic
{
class LevelLoader
{
public:
LevelLoader(){this->parser = new GameLogic::LevelFileLoader::LevelParser(); }
~LevelLoader(){}
std::vector<ObjectTypeHeader> LoadLevel(std::string fileName); //loads the level and objects from file
ObjectTypeHeader LoadLevelHeader(std::string fileName); //just for fast access for the meta information about the level.
private:
GameLogic::LevelFileLoader::LevelParser *parser;
};
}
#endif