5 #ifndef TILESON_GRID_HPP
6 #define TILESON_GRID_HPP
8 #include "../objects/Vector2.hpp"
26 std::string m_orientation;
49 if(json.
count(
"orientation") > 0) m_orientation = json[
"orientation"].
get<std::string>();
51 if(json.
count(
"width") > 0 && json.
count(
"height") > 0)
52 m_size = {json[
"width"].
get<
int>(), json[
"height"].get<int>()};
else allFound =
false;
bool parse(IJson &json)
Definition: Grid.hpp:45
const Vector2i & getSize() const
Definition: Grid.hpp:70
const std::string & getOrientation() const
Definition: Grid.hpp:61
T get(std::string_view key)
Definition: IJson.hpp:72
virtual size_t count(std::string_view key) const =0
Definition: Base64.hpp:12