Module flower.tiled.TileObject

This class holds information TileObject.

If you can see the tile, creating and showing a renderer.

Extends:

Info:

  • Release: V3.0.0
  • Author: Makoto

Functions

TileObject:init (tileMap, objectData) The constructor.
TileObject:loadData (data) Load the tile object data.
TileObject:saveData () Save the tile object data.
TileObject:createRenderer () Create a renderer.
TileObject:updatePriority () Update a priority.
TileObject:setPosByAuto (x, y) Sets a position.
TileObject:setLoc (x, y, z) Sets a position and update render priority.
TileObject:addLoc (x, y, z) Adds a position and update render priority.
TileObject:setIsoPos (x, y) Sets a position for isometric.
TileObject:getIsoPos (x, y) Returns a position for isometric.


Functions

TileObject:init (tileMap, objectData)
The constructor.

Parameters:

  • tileMap TileMap
  • objectData TileObject data.
TileObject:loadData (data)
Load the tile object data.

Parameters:

  • data tile object data
TileObject:saveData ()
Save the tile object data.

Returns:

    tile object data
TileObject:createRenderer ()
Create a renderer. There is no need to call directly basically.

Returns:

    Tile object renderer
TileObject:updatePriority ()
Update a priority.
TileObject:setPosByAuto (x, y)
Sets a position.

Parameters:

  • x x-position
  • y y-position
TileObject:setLoc (x, y, z)
Sets a position and update render priority.

Parameters:

  • x x-position
  • y y-position
  • z z-position.
TileObject:addLoc (x, y, z)
Adds a position and update render priority.

Parameters:

  • x x-position
  • y y-position
  • z z-position.
TileObject:setIsoPos (x, y)
Sets a position for isometric.

Parameters:

  • x x-position
  • y y-position
TileObject:getIsoPos (x, y)
Returns a position for isometric.

Parameters:

  • x x-position
  • y y-position
generated by LDoc 1.3