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

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

#include <tmj.h>

Collaboration diagram for Object:
Collaboration graph
[legend]

Data Fields

bool ellipse
 
bool point
 
bool visible
 
char * name
 
char * template
 
char * type
 
int gid
 
int id
 
double height
 
double rotation
 
double width
 
double x
 
double y
 
bool is_polygon
 
union {
   size_t   polygon_point_count
 
   size_t   polyline_point_count
 
}; 
 
union {
   Point *   polygon
 
   Point *   polyline
 
}; 
 
size_t property_count
 
Propertyproperties
 
Texttext
 

Detailed Description

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

Definition at line 89 of file tmj.h.

Field Documentation

◆ ellipse

bool Object::ellipse

Definition at line 90 of file tmj.h.

◆ point

bool Object::point

Definition at line 91 of file tmj.h.

◆ visible

bool Object::visible

Definition at line 92 of file tmj.h.

◆ name

char* Object::name

Definition at line 94 of file tmj.h.

◆ template

char* Object::template

Definition at line 95 of file tmj.h.

◆ type

char* Object::type

Definition at line 96 of file tmj.h.

◆ gid

int Object::gid

Definition at line 98 of file tmj.h.

◆ id

int Object::id

Definition at line 99 of file tmj.h.

◆ height

double Object::height

Definition at line 101 of file tmj.h.

◆ rotation

double Object::rotation

Definition at line 102 of file tmj.h.

◆ width

double Object::width

Definition at line 103 of file tmj.h.

◆ x

double Object::x

Definition at line 104 of file tmj.h.

◆ y

double Object::y

Definition at line 105 of file tmj.h.

◆ is_polygon

bool Object::is_polygon

Definition at line 107 of file tmj.h.

◆ polygon_point_count

size_t Object::polygon_point_count

Definition at line 110 of file tmj.h.

◆ polyline_point_count

size_t Object::polyline_point_count

Definition at line 111 of file tmj.h.

◆ 

union { ... }

◆ polygon

Point* Object::polygon

Definition at line 114 of file tmj.h.

◆ polyline

Point* Object::polyline

Definition at line 115 of file tmj.h.

◆ 

union { ... }

◆ property_count

size_t Object::property_count

Definition at line 118 of file tmj.h.

◆ properties

Property* Object::properties

Definition at line 119 of file tmj.h.

◆ text

Text* Object::text

Definition at line 121 of file tmj.h.


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