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

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

#include <tmj.h>

Collaboration diagram for Layer:
Collaboration graph
[legend]

Data Fields

bool locked
 
bool repeatx
 
bool repeaty
 
bool visible
 
char * class
 
char * compression
 
char * draworder
 
char * encoding
 
char * image
 
char * name
 
char * tintcolor
 
char * transparentcolor
 
char * type
 
bool data_is_str
 
size_t data_count
 
union {
   unsigned int *   data_uint
 
   char *   data_str
 
}; 
 
int height
 
int id
 
int startx
 
int starty
 
int width
 
int x
 
int y
 
double offsetx
 
double offsety
 
double opacity
 
double parallaxx
 
double parallaxy
 
size_t chunk_count
 
Chunkchunks
 
size_t layer_count
 
struct Layerlayers
 
size_t object_count
 
Objectobjects
 
size_t property_count
 
Propertyproperties
 

Detailed Description

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

Definition at line 127 of file tmj.h.

Field Documentation

◆ locked

bool Layer::locked

Definition at line 128 of file tmj.h.

◆ repeatx

bool Layer::repeatx

Definition at line 129 of file tmj.h.

◆ repeaty

bool Layer::repeaty

Definition at line 130 of file tmj.h.

◆ visible

bool Layer::visible

Definition at line 131 of file tmj.h.

◆ class

char* Layer::class

Definition at line 133 of file tmj.h.

◆ compression

char* Layer::compression

Definition at line 134 of file tmj.h.

◆ draworder

char* Layer::draworder

Definition at line 135 of file tmj.h.

◆ encoding

char* Layer::encoding

Definition at line 136 of file tmj.h.

◆ image

char* Layer::image

Definition at line 137 of file tmj.h.

◆ name

char* Layer::name

Definition at line 138 of file tmj.h.

◆ tintcolor

char* Layer::tintcolor

Definition at line 139 of file tmj.h.

◆ transparentcolor

char* Layer::transparentcolor

Definition at line 140 of file tmj.h.

◆ type

char* Layer::type

Definition at line 141 of file tmj.h.

◆ data_is_str

bool Layer::data_is_str

Definition at line 143 of file tmj.h.

◆ data_count

size_t Layer::data_count

Definition at line 144 of file tmj.h.

◆ data_uint

unsigned int* Layer::data_uint

Definition at line 146 of file tmj.h.

◆ data_str

char* Layer::data_str

Definition at line 147 of file tmj.h.

◆ 

union { ... }

◆ height

int Layer::height

Definition at line 150 of file tmj.h.

◆ id

int Layer::id

Definition at line 151 of file tmj.h.

◆ startx

int Layer::startx

Definition at line 152 of file tmj.h.

◆ starty

int Layer::starty

Definition at line 153 of file tmj.h.

◆ width

int Layer::width

Definition at line 154 of file tmj.h.

◆ x

int Layer::x

Definition at line 155 of file tmj.h.

◆ y

int Layer::y

Definition at line 156 of file tmj.h.

◆ offsetx

double Layer::offsetx

Definition at line 158 of file tmj.h.

◆ offsety

double Layer::offsety

Definition at line 159 of file tmj.h.

◆ opacity

double Layer::opacity

Definition at line 160 of file tmj.h.

◆ parallaxx

double Layer::parallaxx

Definition at line 161 of file tmj.h.

◆ parallaxy

double Layer::parallaxy

Definition at line 162 of file tmj.h.

◆ chunk_count

size_t Layer::chunk_count

Definition at line 164 of file tmj.h.

◆ chunks

Chunk* Layer::chunks

Definition at line 165 of file tmj.h.

◆ layer_count

size_t Layer::layer_count

Definition at line 167 of file tmj.h.

◆ layers

struct Layer* Layer::layers

Definition at line 168 of file tmj.h.

◆ object_count

size_t Layer::object_count

Definition at line 170 of file tmj.h.

◆ objects

Object* Layer::objects

Definition at line 171 of file tmj.h.

◆ property_count

size_t Layer::property_count

Definition at line 173 of file tmj.h.

◆ properties

Property* Layer::properties

Definition at line 174 of file tmj.h.


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