Uranus  1.0.1.0
Uranus is a GameEngine written in C++
Loading...
Searching...
No Matches
tson::Grid Class Reference
Collaboration diagram for tson::Grid:
[legend]

Public Member Functions

 Grid (IJson &json)
 
const std::string & getOrientation () const
 
const Vector2igetSize () const
 
bool parse (IJson &json)
 

Private Attributes

std::string m_orientation
 
tson::Vector2i m_size
 

Constructor & Destructor Documentation

◆ Grid()

tson::Grid::Grid ( IJson json)
inlineexplicit

Parses Tiled grid data from json

Parameters
json

Member Function Documentation

◆ getOrientation()

const std::string & tson::Grid::getOrientation ( ) const
inline

'orientation': Orientation of the grid for the tiles in this tileset (orthogonal or isometric)

Returns
orientation as string

◆ getSize()

const tson::Vector2i & tson::Grid::getSize ( ) const
inline

'width' and 'height': Size.

Returns
size as int

◆ parse()

bool tson::Grid::parse ( IJson json)
inline

Parses Tiled grid data from json

Parameters
json
Returns
true if all mandatory fields was found. false otherwise.

Field Documentation

◆ m_size

tson::Vector2i tson::Grid::m_size
private

'orientation': Orientation of the grid for the tiles in this tileset (orthogonal or isometric)


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