getXOffset
getXOffset: (DecorativeObject) -> numberThe x offset its first model is drawn at, from its local x (the draw site's own offsets).
scene:tileAt(…):getDecorativeObject()| Method | Returns | Description |
|---|---|---|
getXOffset() | number | The x offset its first model is drawn at, from its local x (the draw site's own offsets). |
getYOffset() | number | The y offset its first model is drawn at. |
getXOffset2() | number | The x offset its second model (a diagonal decoration's) is drawn at. |
getYOffset2() | number | The 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() | number | type & 31, orientation >>> 6 & 3, supports items >>> 8 & 1. |
| Method | Returns | Description |
|---|---|---|
DecorativeObjectDespawned.getDecorativeObject | DecorativeObject | The object. |
DecorativeObjectSpawned.getDecorativeObject | DecorativeObject | The object. |
Tile.getDecorativeObject | DecorativeObject? | Its decorative object, if any. |
getXOffsetgetXOffset: (DecorativeObject) -> numberThe x offset its first model is drawn at, from its local x (the draw site's own offsets).
getYOffsetgetYOffset: (DecorativeObject) -> numberThe y offset its first model is drawn at.
getXOffset2getXOffset2: (DecorativeObject) -> numberThe x offset its second model (a diagonal decoration's) is drawn at.
getYOffset2getYOffset2: (DecorativeObject) -> numberThe y offset its second model is drawn at.
getConvexHullgetConvexHull: (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.
getConvexHull2getConvexHull2: (DecorativeObject) -> Shape?The outline of its second model, at the second offsets.
getRenderablegetRenderable: (DecorativeObject) -> Renderable?What the scene draws for it, nil when none (or gone).
getRenderable2getRenderable2: (DecorativeObject) -> Renderable?What the scene draws for its second model (a diagonal decoration), nil when none.
getConfiggetConfig: (DecorativeObject) -> numbertype & 31, orientation >>> 6 & 3, supports items >>> 8 & 1.