/** * a TMX Object defintion, as defined in Tiled * (Object definition is translated into the virtual `app.world` using `me.Renderable`) * @ignore */ export default class TMXObject { constructor(map: any, settings: any, z: any); /** * point list in JSON format * @type {object[]} */ points: object[]; /** * object name * @type {string} */ name: string; /** * object x position * @type {number} */ x: number; /** * object y position * @type {number} */ y: number; /** * object z order * @type {number} */ z: number; /** * object width * @type {number} */ width: number; /** * object height * @type {number} */ height: number; /** * object gid value * when defined the object is a tiled object * @type {number} */ gid: number; /** * tint color * @type {string} */ tintcolor: string; /** * object type * @type {string} * @deprecated since Tiled 1.9 * @see {@link https://docs.mapeditor.org/en/stable/reference/tmx-changelog/#tiled-1-9} */ type: string; /** * the object class * @type {string} */ class: string; /** * object text * @type {object} * @see {@link http://docs.mapeditor.org/en/stable/reference/tmx-map-format/#text} */ text: object; /** * The rotation of the object in radians clockwise (defaults to 0) * @type {number} */ rotation: number; /** * the object opacity (0-1), defaults to 1 (since Tiled 1.12) * @type {number} */ opacity: number; /** * whether the object is visible, defaults to true * @type {boolean} */ visible: boolean; /** * object unique identifier per level (Tiled 0.11.x+) * @type {number} */ id: number; /** * object orientation (orthogonal or isometric) * @type {string} */ orientation: string; /** * the collision shapes defined for this object * @type {object[]} */ shapes: object[]; /** * the detected shape type * @type {string} */ shapeType: string; /** @type {boolean} */ isEllipse: boolean; /** @type {boolean} */ isCapsule: boolean; /** @type {boolean} */ isPoint: boolean; /** @type {boolean} */ isPolygon: boolean; /** @type {boolean} */ isPolyLine: boolean; /** * set the object image (for Tiled Object) * @ignore */ setTile(tilesets: any): void; framewidth: any; frameheight: any; tile: Tile | undefined; /** * parses the TMX shape definition and returns a corresponding array of shape objects * @private * @returns {Polygon[]|Line[]|Ellipse[]|RoundRect[]} an array of shape objects */ private parseTMXShapes; /** * getObjectPropertyByName * @ignore */ getObjectPropertyByName(name: any): any; } import Tile from "./TMXTile.js"; //# sourceMappingURL=TMXObject.d.ts.map