mirror of
https://github.com/photonstorm/phaser
synced 2024-12-23 03:23:42 +00:00
Fix typing of MapData objects.
I believe that objects is going to be an array as the result of calling this function: 7834095789/src/tilemaps/parsers/tiled/ParseObjectLayers.js (L20)
I'm not 100% sure on the type of the array elements (Phaser.Types.Tilemaps.ObjectLayerConfig), but that appears to be what ParseObjectLayers returns.
This commit is contained in:
parent
7834095789
commit
44fb0e2086
1 changed files with 2 additions and 2 deletions
|
@ -173,10 +173,10 @@ var MapData = new Class({
|
|||
* An object of Tiled Object Layers.
|
||||
*
|
||||
* @name Phaser.Tilemaps.MapData#objects
|
||||
* @type {object}
|
||||
* @type {Phaser.Types.Tilemaps.ObjectLayerConfig[]}
|
||||
* @since 3.0.0
|
||||
*/
|
||||
this.objects = GetFastValue(config, 'objects', {});
|
||||
this.objects = GetFastValue(config, 'objects', []);
|
||||
|
||||
/**
|
||||
* An object of collision data. Must be created as physics object or will return undefined.
|
||||
|
|
Loading…
Reference in a new issue