Olympe Engine 2.0
2D Game Engine with ECS Architecture
Loading...
Searching...
No Matches
Namespaces | Typedefs | Functions
TiledJsonHelper.h File Reference
#include "../../third_party/nlohmann/json.hpp"
#include <string>
#include <vector>
+ Include dependency graph for TiledJsonHelper.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  Olympe
 
namespace  Olympe::Tiled
 

Typedefs

using Olympe::Tiled::json = nlohmann::json
 

Functions

std::string Olympe::Tiled::GetString (const json &j, const std::string &key, const std::string &defaultValue="")
 
int Olympe::Tiled::GetInt (const json &j, const std::string &key, int defaultValue=0)
 
float Olympe::Tiled::GetFloat (const json &j, const std::string &key, float defaultValue=0.0f)
 
double Olympe::Tiled::GetDouble (const json &j, const std::string &key, double defaultValue=0.0)
 
bool Olympe::Tiled::GetBool (const json &j, const std::string &key, bool defaultValue=false)
 
json Olympe::Tiled::GetArray (const json &j, const std::string &key)
 
json Olympe::Tiled::GetObject (const json &j, const std::string &key)
 
bool Olympe::Tiled::HasKey (const json &j, const std::string &key)
 
size_t Olympe::Tiled::GetArraySize (const json &j)
 
int Olympe::Tiled::ParseColor (const std::string &colorStr)
 
std::string Olympe::Tiled::ColorToString (int color)