arcade-physics
Version:
Use Arcade Physics without Phaser.
15 lines • 1.16 kB
TypeScript
export = ParseObject;
/**
* Convert a Tiled object to an internal parsed object normalising and copying properties over, while applying optional x and y offsets. The parsed object will always have the properties `id`, `name`, `type`, `rotation`, `properties`, `visible`, `x`, `y`, `width` and `height`. Other properties will be added according to the object type (such as text, polyline, gid etc.)
*
* @function Phaser.Tilemaps.Parsers.Tiled.ParseObject
* @since 3.0.0
*
* @param {object} tiledObject - Tiled object to convert to an internal parsed object normalising and copying properties over.
* @param {number} [offsetX=0] - Optional additional offset to apply to the object's x property. Defaults to 0.
* @param {number} [offsetY=0] - Optional additional offset to apply to the object's y property. Defaults to 0.
*
* @return {object} The parsed object containing properties read from the Tiled object according to it's type with x and y values updated according to the given offsets.
*/
declare function ParseObject(tiledObject: object, offsetX?: number | undefined, offsetY?: number | undefined): object;
//# sourceMappingURL=ParseObject.d.ts.map