LibTMJ  1.0.0
A library for loading JSON Tiled maps
Data Fields
Map Struct Reference

https://doc.mapeditor.org/en/stable/reference/json-map-format/#json-map-format More...

#include <tmj.h>

Collaboration diagram for Map:
Collaboration graph
[legend]

Data Fields

json_t * root
 The root object returned by jansson after parsing. More...
 
bool infinite
 
char * backgroundcolor
 
char * class
 
char * orientation
 
char * renderorder
 
char * staggeraxis
 
char * staggerindex
 
char * tiledversion
 
char * type
 
char * version
 
int compressionlevel
 
int height
 
int hexsidelength
 
int nextlayerid
 
int nextobjectid
 
int tileheight
 
int tilewidth
 
int width
 
double parallaxoriginx
 
double parallaxoriginy
 
size_t layer_count
 
Layerlayers
 
size_t property_count
 
Propertyproperties
 
size_t tileset_count
 
Tilesettilesets
 

Detailed Description

https://doc.mapeditor.org/en/stable/reference/json-map-format/#json-map-format

Definition at line 355 of file tmj.h.

Field Documentation

◆ root

json_t* Map::root

The root object returned by jansson after parsing.

This field is internal state and should not be tampered with.

Definition at line 360 of file tmj.h.

◆ infinite

bool Map::infinite

Definition at line 362 of file tmj.h.

◆ backgroundcolor

char* Map::backgroundcolor

Definition at line 364 of file tmj.h.

◆ class

char* Map::class

Definition at line 365 of file tmj.h.

◆ orientation

char* Map::orientation

Definition at line 366 of file tmj.h.

◆ renderorder

char* Map::renderorder

Definition at line 367 of file tmj.h.

◆ staggeraxis

char* Map::staggeraxis

Definition at line 368 of file tmj.h.

◆ staggerindex

char* Map::staggerindex

Definition at line 369 of file tmj.h.

◆ tiledversion

char* Map::tiledversion

Definition at line 370 of file tmj.h.

◆ type

char* Map::type

Definition at line 371 of file tmj.h.

◆ version

char* Map::version

Definition at line 372 of file tmj.h.

◆ compressionlevel

int Map::compressionlevel

Definition at line 374 of file tmj.h.

◆ height

int Map::height

Definition at line 375 of file tmj.h.

◆ hexsidelength

int Map::hexsidelength

Definition at line 376 of file tmj.h.

◆ nextlayerid

int Map::nextlayerid

Definition at line 377 of file tmj.h.

◆ nextobjectid

int Map::nextobjectid

Definition at line 378 of file tmj.h.

◆ tileheight

int Map::tileheight

Definition at line 379 of file tmj.h.

◆ tilewidth

int Map::tilewidth

Definition at line 380 of file tmj.h.

◆ width

int Map::width

Definition at line 381 of file tmj.h.

◆ parallaxoriginx

double Map::parallaxoriginx

Definition at line 383 of file tmj.h.

◆ parallaxoriginy

double Map::parallaxoriginy

Definition at line 384 of file tmj.h.

◆ layer_count

size_t Map::layer_count

Definition at line 387 of file tmj.h.

◆ layers

Layer* Map::layers

Definition at line 388 of file tmj.h.

◆ property_count

size_t Map::property_count

Definition at line 390 of file tmj.h.

◆ properties

Property* Map::properties

Definition at line 391 of file tmj.h.

◆ tileset_count

size_t Map::tileset_count

Definition at line 393 of file tmj.h.

◆ tilesets

Tileset* Map::tilesets

Definition at line 394 of file tmj.h.


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