mirror of
https://github.com/photonstorm/phaser
synced 2025-02-16 05:58:30 +00:00
New Type Defs
This commit is contained in:
parent
b035d190e9
commit
cef9aa2120
2 changed files with 36 additions and 0 deletions
11
src/tilemaps/typedefs/GIDData.js
Normal file
11
src/tilemaps/typedefs/GIDData.js
Normal 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?
|
||||
*/
|
25
src/tilemaps/typedefs/LayerDataConfig.js
Normal file
25
src/tilemaps/typedefs/LayerDataConfig.js
Normal 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.
|
||||
*/
|
Loading…
Add table
Reference in a new issue