New Type Defs

This commit is contained in:
Richard Davey 2020-04-27 16:13:49 +01:00
parent b035d190e9
commit cef9aa2120
2 changed files with 36 additions and 0 deletions

View file

@ -0,0 +1,11 @@
/**
* @typedef {object} Phaser.Types.Tilemaps.GIDData
* @since 3.0.0
*
* @property {number} gid - The Tiled GID.
* @property {boolean} flippedHorizontal - Horizontal flip flag.
* @property {boolean} flippedVertical - Vertical flip flag.
* @property {boolean} flippedAntiDiagonal - Diagonal flip flag.
* @property {number} rotation - Amount of rotation.
* @property {boolean} flipped - Is flipped?
*/

View file

@ -0,0 +1,25 @@
/**
* @typedef {object} Phaser.Types.Tilemaps.LayerDataConfig
* @since 3.0.0
*
* @property {string} [name] - The name of the layer, if specified in Tiled.
* @property {number} [x=0] - The x offset of where to draw from the top left.
* @property {number} [y=0] - The y offset of where to draw from the top left.
* @property {number} [width=0] - The width of the layer in tiles.
* @property {number} [height=0] - The height of the layer in tiles.
* @property {number} [tileWidth=0] - The pixel width of the tiles.
* @property {number} [tileHeight=0] - The pixel height of the tiles.
* @property {number} [baseTileWidth=0] - The base tile width.
* @property {number} [baseTileHeight=0] - The base tile height.
* @property {number} [widthInPixels=0] - The width in pixels of the entire layer.
* @property {number} [heightInPixels=0] - The height in pixels of the entire layer.
* @property {number} [alpha=1] - The alpha value of the layer.
* @property {boolean} [visible=true] - Is the layer visible or not?
* @property {object[]} [properties] - Layer specific properties (can be specified in Tiled)
* @property {array} [indexes] - Tile ID index map.
* @property {array} [collideIndexes] - Tile Collision ID index map.
* @property {array} [callbacks] - An array of callbacks.
* @property {array} [bodies] - An array of physics bodies.
* @property {array} [data] - An array of the tile data indexes.
* @property {Phaser.Tilemaps.DynamicTilemapLayer|Phaser.Tilemaps.StaticTilemapLayer} [data] - A reference to the Tilemap layer that owns this data.
*/