Tileson  1.3.0
A helpful json parser for Tiled maps
Classes | Typedefs | Enumerations | Functions
tson Namespace Reference

Classes

class  Base64
 
class  Base64Decompressor
 
class  DecompressorContainer
 
struct  EnableBitMaskOperators
 
class  Tools
 
class  IDecompressor
 
class  IJson
 
class  Gason
 
class  Json11
 
class  MemoryBuffer
 
class  MemoryStream
 
class  Color
 
class  FlaggedTile
 
class  ProjectData
 
class  ProjectFolder
 
class  Property
 
class  PropertyCollection
 
class  Rect
 
class  TileObject
 
class  Vector2
 
class  WorldMapData
 
class  Animation
 
class  Chunk
 
class  Frame
 
class  Grid
 
class  Layer
 
class  Map
 
class  Object
 
class  Project
 
class  Terrain
 
class  Text
 
class  Tile
 
class  Tileset
 
class  Transformations
 
class  WangColor
 
class  WangSet
 
class  WangTile
 
class  World
 
class  Tileson
 

Typedefs

typedef Color< uint8_t > Colori
 
typedef Color< float > Colorf
 
typedef Vector2< int > Vector2i
 
typedef Vector2< float > Vector2f
 

Enumerations

enum class  Type : uint8_t {
  Undefined = 0 , Color = 1 , File = 2 , Int = 3 ,
  Boolean = 4 , Float = 5 , String = 6
}
 
enum class  LayerType : uint8_t {
  Undefined = 0 , TileLayer = 1 , ObjectGroup = 2 , ImageLayer = 3 ,
  Group = 4
}
 
enum class  ParseStatus : uint8_t {
  OK = 0 , FileNotFound = 1 , ParseError = 2 , MissingData = 3 ,
  DecompressionError = 4
}
 
enum class  ObjectType : uint8_t {
  Undefined = 0 , Object = 1 , Ellipse = 2 , Rectangle = 3 ,
  Point = 4 , Polygon = 5 , Polyline = 6 , Text = 7 ,
  Template = 8
}
 
enum class  TileFlipFlags : uint32_t { None = 0 , Diagonally = FLIPPED_DIAGONALLY_FLAG , Vertically = FLIPPED_VERTICALLY_FLAG , Horizontally = FLIPPED_HORIZONTALLY_FLAG }
 
enum class  ObjectAlignment : uint8_t {
  Unspecified = 0 , TopLeft = 1 , Top = 2 , TopRight = 3 ,
  Left = 4 , Center = 5 , Right = 6 , BottomLeft = 7 ,
  Bottom = 8 , BottomRight = 9
}
 

Functions

template<typename Enum >
std::enable_if< EnableBitMaskOperators< Enum >::enable, Enum >::type operator| (Enum lhs, Enum rhs)
 
template<typename Enum >
std::enable_if< EnableBitMaskOperators< Enum >::enable, Enum >::type operator& (Enum lhs, Enum rhs)
 
template<typename Enum >
std::enable_if< EnableBitMaskOperators< Enum >::enable, Enum >::type operator^ (Enum lhs, Enum rhs)
 
template<typename Enum >
std::enable_if< EnableBitMaskOperators< Enum >::enable, Enum >::type operator~ (Enum rhs)
 
template<typename Enum >
std::enable_if< EnableBitMaskOperators< Enum >::enable, Enum >::type & operator|= (Enum &lhs, Enum rhs)
 
template<typename Enum >
std::enable_if< EnableBitMaskOperators< Enum >::enable, Enum >::type & operator&= (Enum &lhs, Enum rhs)
 
template<typename Enum >
std::enable_if< EnableBitMaskOperators< Enum >::enable, Enum >::type & operator^= (Enum &lhs, Enum rhs)
 

Typedef Documentation

◆ Colorf

typedef Color<float> tson::Colorf

◆ Colori

typedef Color<uint8_t> tson::Colori

◆ Vector2f

typedef Vector2<float> tson::Vector2f

◆ Vector2i

typedef Vector2<int> tson::Vector2i

Enumeration Type Documentation

◆ LayerType

enum tson::LayerType : uint8_t
strong

Layer.hpp - LayerType //'type': tilelayer, objectgroup, imagelayer or group

Enumerator
Undefined 
TileLayer 
ObjectGroup 
ImageLayer 
Group 

◆ ObjectAlignment

enum tson::ObjectAlignment : uint8_t
strong

Tileset.hpp - ObjectAlignment

Enumerator
Unspecified 
TopLeft 
Top 
TopRight 
Left 
Center 
Right 
BottomLeft 
Bottom 
BottomRight 

◆ ObjectType

enum tson::ObjectType : uint8_t
strong

Object.hpp - ObjectType

Enumerator
Undefined 
Object 
Ellipse 
Rectangle 
Point 
Polygon 
Polyline 
Text 
Template 

◆ ParseStatus

enum tson::ParseStatus : uint8_t
strong

Map.hpp - ParseStatus

Enumerator
OK 
FileNotFound 
ParseError 
MissingData 
DecompressionError 

◆ TileFlipFlags

enum tson::TileFlipFlags : uint32_t
strong

Object.hpp - ObjectFlipFlags

Enumerator
None 
Diagonally 
Vertically 
Horizontally 

◆ Type

enum tson::Type : uint8_t
strong

Type used in Property.hpp

Enumerator
Undefined 
Color 
File 

color

Int 

file

Boolean 

int

Float 

bool

String 

float

Function Documentation

◆ operator&()

template<typename Enum >
std::enable_if<EnableBitMaskOperators<Enum>::enable, Enum>::type tson::operator& ( Enum  lhs,
Enum  rhs 
)

◆ operator&=()

template<typename Enum >
std::enable_if<EnableBitMaskOperators<Enum>::enable, Enum>::type& tson::operator&= ( Enum &  lhs,
Enum  rhs 
)

◆ operator^()

template<typename Enum >
std::enable_if<EnableBitMaskOperators<Enum>::enable, Enum>::type tson::operator^ ( Enum  lhs,
Enum  rhs 
)

◆ operator^=()

template<typename Enum >
std::enable_if<EnableBitMaskOperators<Enum>::enable, Enum>::type& tson::operator^= ( Enum &  lhs,
Enum  rhs 
)

◆ operator|()

template<typename Enum >
std::enable_if<EnableBitMaskOperators<Enum>::enable, Enum>::type tson::operator| ( Enum  lhs,
Enum  rhs 
)

◆ operator|=()

template<typename Enum >
std::enable_if<EnableBitMaskOperators<Enum>::enable, Enum>::type& tson::operator|= ( Enum &  lhs,
Enum  rhs 
)

◆ operator~()

template<typename Enum >
std::enable_if<EnableBitMaskOperators<Enum>::enable, Enum>::type tson::operator~ ( Enum  rhs)