TmxObjectType

format.tmx.TmxObjectType (Enum)

Type of the object.

Constructors

OTRectangle

OTRectangle

Standart rectangle. Use x/y/width/height to determine it's size and position.

OTTile

OTTile(gid: Int)

Parameters:

Name Type
gid Int

Tile-object, placed on x/y position.

OTExternalTile

OTExternalTile(gid: Int, tileset: format.tmx.TmxTileset)

Parameters:

Name Type
gid Int
tileset format.tmx.TmxTileset

Tile-object from a template. Using template's tileset.

OTEllipse

OTEllipse

Ellipse. Fills area in x/y/w/h.

OTPoint

OTPoint

Singular point.

OTPolygon

OTPolygon(points: Array<format.tmx.TmxPoint>)

Parameters:

Name Type
points Array<format.tmx.TmxPoint>

Enclosed polygon determined by points with origin of object x/y.

OTText

OTText(text: format.tmx.TmxText)

Parameters:

Name Type
text format.tmx.TmxText

Used to mark an object as a text object. Contains the actual text as character data.

OTPolyline

OTPolyline(points: Array<format.tmx.TmxPoint>)

Parameters:

Name Type
points Array<format.tmx.TmxPoint>

Polyline determined by points with origin of object x/y.