AudioAsset
Ease
FastString
FontAsset
NineSlice
PackedSprite
PackedSpriteID
RB
   HardwareSettings
   IRetroBlitGame
RBAsset
Rect2i
ShaderAsset
SoundReference
SpriteGrid
SpriteSheetAsset
TMXMapAsset
   TMXLayer
   TMXLayerLoadState
   TMXObject
   TMXObjectGroup
   TMXProperties
Vector2i

TMXMapAsset

Class

Inherits

RBAsset

Description

Contains a map loaded from the TMX tilemap format. TMX Map assets can be loaded from various sources, including synchronous and asynchronous sources. Use TMXMapAsset.Load to load a TMX Map asset. This asset contains various information about the map, its layers, and objects. It does not however contain layer tile data, tile data is loaded with TMXMapAsset.LoadLayer, and TMXMapAsset.LoadLayerChunk. Because the tile data is loaded and stored separately the TMXMapAsset is relatively light-weight and can be kept in memory for future reference.

Variables

progress (inherited) Asynchronous loading progress, ranges from 0.0 to 1.0.

Properties

backgroundColor Background color of the map
error (inherited) Loading error of the audio asset
infinite Infinite map flag.
layers All layers in the map, keyed by their layer name.
objectGroups All object groups of the map, keyed by their names.
properties Custom properties of the map
size Size of the map in terms of tile count.
status (inherited) Loading status of the an asset

Methods

Load Load a TMX Map asset
LoadLayer (10 overloads) Load a layer from a TMX tilemap definition previously loaded by TMXMapAsset.Load.
LoadLayerChunk (5 overloads) Load a single layer chunk from an infinite TMX tilemap definition loaded by TMXMapAsset.Load
TMXMapAsset Constructor
Unload (inherited) Unload previously loaded asset