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::TilesetParser Class Reference

#include <TilesetParser.h>

Public Member Functions

 TilesetParser ()
 
 ~TilesetParser ()
 
bool ParseFile (const std::string &filepath, TiledTileset &tileset)
 
bool ParseTSX (const std::string &filepath, TiledTileset &tileset)
 
bool ParseTSJ (const std::string &filepath, TiledTileset &tileset)
 

Private Member Functions

void ParsePropertiesFromXML (void *element, std::map< std::string, TiledProperty > &properties)
 
void ParsePropertiesFromJSON (const nlohmann::json &j, std::map< std::string, TiledProperty > &properties)
 
void ParseTileFromXML (void *element, TiledTile &tile)
 
void ParseTileFromJSON (const nlohmann::json &j, TiledTile &tile)
 

Detailed Description

Definition at line 22 of file TilesetParser.h.

Constructor & Destructor Documentation

◆ TilesetParser()

Olympe::Tiled::TilesetParser::TilesetParser ( )

Definition at line 18 of file TilesetParser.cpp.

◆ ~TilesetParser()

Olympe::Tiled::TilesetParser::~TilesetParser ( )

Definition at line 22 of file TilesetParser.cpp.

Member Function Documentation

◆ ParseFile()

bool Olympe::Tiled::TilesetParser::ParseFile ( const std::string &  filepath,
TiledTileset tileset 
)

Definition at line 26 of file TilesetParser.cpp.

References GetComponentTypeID_Static(), ParseTSJ(), ParseTSX(), and SYSTEM_LOG.

+ Here is the call graph for this function:

◆ ParsePropertiesFromJSON()

void Olympe::Tiled::TilesetParser::ParsePropertiesFromJSON ( const nlohmann::json j,
std::map< std::string, TiledProperty > &  properties 
)
private

◆ ParsePropertiesFromXML()

void Olympe::Tiled::TilesetParser::ParsePropertiesFromXML ( void element,
std::map< std::string, TiledProperty > &  properties 
)
private

Definition at line 214 of file TilesetParser.cpp.

References Olympe::Tiled::Bool, Olympe::Tiled::Color, Olympe::Tiled::File, Olympe::Tiled::Float, GetComponentTypeID_Static(), Olympe::Tiled::Int, Olympe::Tiled::TiledProperty::name, and Olympe::Tiled::String.

Referenced by ParseTSX().

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

◆ ParseTileFromJSON()

void Olympe::Tiled::TilesetParser::ParseTileFromJSON ( const nlohmann::json j,
TiledTile tile 
)
private

Definition at line 302 of file TilesetParser.cpp.

References GetComponentTypeID_Static(), Olympe::Tiled::GetInt(), Olympe::Tiled::GetString(), Olympe::Tiled::HasKey(), and ParsePropertiesFromJSON().

Referenced by ParseTSJ().

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

◆ ParseTileFromXML()

void Olympe::Tiled::TilesetParser::ParseTileFromXML ( void element,
TiledTile tile 
)
private

Definition at line 297 of file TilesetParser.cpp.

◆ ParseTSJ()

bool Olympe::Tiled::TilesetParser::ParseTSJ ( const std::string &  filepath,
TiledTileset tileset 
)

◆ ParseTSX()

bool Olympe::Tiled::TilesetParser::ParseTSX ( const std::string &  filepath,
TiledTileset tileset 
)

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