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:
James Pettit 2021-01-19 15:17:12 -08:00 committed by GitHub
parent 7834095789
commit 44fb0e2086
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -173,10 +173,10 @@ var MapData = new Class({
* An object of Tiled Object Layers. * An object of Tiled Object Layers.
* *
* @name Phaser.Tilemaps.MapData#objects * @name Phaser.Tilemaps.MapData#objects
* @type {object} * @type {Phaser.Types.Tilemaps.ObjectLayerConfig[]}
* @since 3.0.0 * @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. * An object of collision data. Must be created as physics object or will return undefined.