Tileson 1.4.0
A helpful json parser for Tiled maps
Loading...
Searching...
No Matches
Public Member Functions | List of all members
tson::Transformations Class Reference

#include <Transformations.hpp>

Public Member Functions

 Transformations ()=default
 
 Transformations (IJson &json)
 
bool parse (IJson &json)
 
bool allowHflip () const
 
bool allowPreferuntransformed () const
 
bool allowRotation () const
 
bool allowVflip () const
 

Constructor & Destructor Documentation

◆ Transformations() [1/2]

tson::Transformations::Transformations ( )
inlinedefault

◆ Transformations() [2/2]

tson::Transformations::Transformations ( IJson json)
inlineexplicit

Member Function Documentation

◆ allowHflip()

bool tson::Transformations::allowHflip ( ) const
inline
Returns
hflip: Whether the tiles in this set can be flipped horizontally (default false)

◆ allowPreferuntransformed()

bool tson::Transformations::allowPreferuntransformed ( ) const
inline
Returns
preferuntransformed: Whether untransformed tiles remain preferred, otherwise transformed tiles are used to produce more variations (default false)

◆ allowRotation()

bool tson::Transformations::allowRotation ( ) const
inline
Returns
rotate: Whether the tiles in this set can be rotated in 90 degree increments (default false)

◆ allowVflip()

bool tson::Transformations::allowVflip ( ) const
inline
Returns
vflip: Whether the tiles in this set can be flipped vertically (default false)

◆ parse()

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

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