Olympe Engine 2.0
2D Game Engine with ECS Architecture
Loading...
Searching...
No Matches
Public Member Functions | Private Member Functions | List of all members
Olympe::Tiled::LevelParser Class Reference

#include <LevelParser.h>

Public Member Functions

 LevelParser ()
 
 ~LevelParser ()
 
LevelParseResult ParseAndAnalyze (const std::string &levelPath)
 

Private Member Functions

void ExtractVisualResources (const TiledMap &map, VisualResourceManifest &manifest)
 
void BuildObjectCensus (const TiledMap &map, ObjectTypeCensus &census)
 
void ExtractObjectReferences (const TiledMap &map, std::vector< ObjectReference > &references)
 
std::string GetDirectory (const std::string &filepath)
 
std::string ResolvePath (const std::string &baseDir, const std::string &relativePath)
 

Detailed Description

Definition at line 115 of file LevelParser.h.

Constructor & Destructor Documentation

◆ LevelParser()

Olympe::Tiled::LevelParser::LevelParser ( )

Definition at line 30 of file LevelParser.cpp.

◆ ~LevelParser()

Olympe::Tiled::LevelParser::~LevelParser ( )

Definition at line 34 of file LevelParser.cpp.

Member Function Documentation

◆ BuildObjectCensus()

void Olympe::Tiled::LevelParser::BuildObjectCensus ( const TiledMap map,
ObjectTypeCensus census 
)
private

Definition at line 217 of file LevelParser.cpp.

References GetComponentTypeID_Static(), Olympe::Tiled::Group, Olympe::Tiled::ObjectGroup, and Olympe::Tiled::String.

Referenced by ParseAndAnalyze().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ExtractObjectReferences()

void Olympe::Tiled::LevelParser::ExtractObjectReferences ( const TiledMap map,
std::vector< ObjectReference > &  references 
)
private

Definition at line 261 of file LevelParser.cpp.

References GetComponentTypeID_Static(), Olympe::Tiled::Group, Olympe::Tiled::Int, Olympe::Tiled::ObjectGroup, Olympe::Tiled::ObjectReference::sourceObjectId, and Olympe::Tiled::String.

Referenced by ParseAndAnalyze().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ExtractVisualResources()

void Olympe::Tiled::LevelParser::ExtractVisualResources ( const TiledMap map,
VisualResourceManifest manifest 
)
private

Definition at line 157 of file LevelParser.cpp.

References GetComponentTypeID_Static(), Olympe::Tiled::Group, Olympe::Tiled::ImageLayer, and Olympe::Tiled::VisualResourceManifest::TilesetRef::sourceFile.

Referenced by ParseAndAnalyze().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetDirectory()

std::string Olympe::Tiled::LevelParser::GetDirectory ( const std::string &  filepath)
private

Definition at line 315 of file LevelParser.cpp.

References GetComponentTypeID_Static().

+ Here is the call graph for this function:

◆ ParseAndAnalyze()

LevelParseResult Olympe::Tiled::LevelParser::ParseAndAnalyze ( const std::string &  levelPath)

◆ ResolvePath()

std::string Olympe::Tiled::LevelParser::ResolvePath ( const std::string &  baseDir,
const std::string &  relativePath 
)
private

Definition at line 325 of file LevelParser.cpp.

References GetComponentTypeID_Static().

+ Here is the call graph for this function:

The documentation for this class was generated from the following files: