Methods
Static loadTmxAnimationFrame
Static loadTmxGroup
- loadTmxGroup(group: TmxGroup, map: TmxMap, xGroup: any, width: number, height: number, tmxDirectory: string): Promise<TmxGroup>
-
Parameters
-
-
-
xGroup: any
-
width: number
-
height: number
-
tmxDirectory: string
Returns Promise<TmxGroup>
Static loadTmxImage
- loadTmxImage(image: TmxImage, xImage: any, tmxDirectory: string): Promise<TmxImage>
-
Parameters
-
-
xImage: any
-
tmxDirectory: string
Returns Promise<TmxImage>
Static loadTmxImageLayer
-
Parameters
-
-
-
xImageLayer: any
-
tmxDirectory: string
Static loadTmxLayer
-
Parameters
-
-
-
xLayer: any
-
width: number
-
height: number
Static loadTmxMap
-
Parameters
Returns Promise<TmxMap>
Static loadTmxMapData
- loadTmxMapData(map: TmxMap, xMap: any, info: any): Promise<TmxMap>
-
Parameters
Returns Promise<TmxMap>
Static loadTmxObjectGroup
Static loadTmxTileset
-
Parameters
-
-
-
xTileset: any
-
firstGid: number
Static loadTmxTilesetTile
-
Parameters
-
-
-
xTile: any
-
-
tmxDirectory: string
Static parseLayers
- parseLayers(container: any, xEle: any, map: TmxMap, width: number, height: number, tmxDirectory: string): Promise<void>
-
Parameters
-
container: any
-
xEle: any
-
-
width: number
-
height: number
-
tmxDirectory: string
Returns Promise<void>
Static parseOrientationType
Static parsePoint
- parsePoint(pt: { x: number; y: number }): Vector2
-
Parameters
-
pt: { x: number; y: number }
Static parsePoints
- parsePoints(xPoints: any): any[]
Static parsePropertyDict
- parsePropertyDict(prop: any): Map<string, string>
-
Parameters
Returns Map<string, string>
Static parseRenderOrderType
Static parseStaggerAxisType
- parseStaggerAxisType(type: string): x | y
Static parseStaggerIndexType
- parseStaggerIndexType(type: string): odd | even
Static parseTmxTileOffset
Static Private updateMaxTileSizes
解析xEle中的所有层,将它们放入容器中