Struct ObjectData
Represents an entity in an object layer.
Objects are not necessarily grid-aligned, but rather have a position specified in pixel coords.
Each object instance can have a
, name
, and set of type
defined in the editor.
properties
Fields
Name | Type | Description |
---|---|---|
gid
|
uint |
Identifies a tile in a tileset if this object is represented by a tile |
height
|
int |
Height in pixels. Ignored if using a gid .
|
id
|
int |
Incremental id - unique across all objects
|
name
|
string |
Name assigned to this object instance |
properties
|
string[string] |
Optional properties defined on this instance
|
rotation
|
float |
Angle in degrees clockwise |
type
|
string |
User-defined string 'type ' assigned to this object instance
|
visible
|
bool |
Whether object is shown. |
width
|
int |
Width in pixels. Ignored if using a gid .
|
x
|
int |
x coordinate in pixels
|
y
|
int |
y coordinate in pixels
|
Authors
Copyright
Copyright © 2015, Ryan Roden-Corrent