DecorativeObject

Group
player
Extends
TileObject
Methods
9
Fields
None

Getting one

scene:tileAt(…):getDecorativeObject()

Methods

MethodReturnsDescription
getXOffset()numberThe x offset its first model is drawn at, from its local x (the draw site's own offsets).
getYOffset()numberThe y offset its first model is drawn at.
getXOffset2()numberThe x offset its second model (a diagonal decoration's) is drawn at.
getYOffset2()numberThe y offset its second model is drawn at.
getConvexHull()Shape?The outline of its first model on the canvas, at its offsets; nil when it does not project, has no readable model or is gone.
getConvexHull2()Shape?The outline of its second model, at the second offsets.
getRenderable()Renderable?What the scene draws for it, nil when none (or gone).
getRenderable2()Renderable?What the scene draws for its second model (a diagonal decoration), nil when none.
getConfig()numbertype & 31, orientation >>> 6 & 3, supports items >>> 8 & 1.

Returned by

Method details

getXOffset

getXOffset: (DecorativeObject) -> number

The x offset its first model is drawn at, from its local x (the draw site's own offsets).

getConvexHull

getConvexHull: (DecorativeObject) -> Shape?

The outline of its first model on the canvas, at its offsets; nil when it does not project, has no readable model or is gone.