LayerManager

Every Map contains its own LayerManager which contains information about its layers.

Member Functions

GetLayerIDByName

number GetLayerIDByName(string layerName)

Parameters

layerNameA name of a layer, such as “GUI 1” or “Entity”.

Returns

The layerID of this layer, or C_LAYER_NONE if no layer of that name is found in the map.

GetCollisionLayers

LayerList GetCollisionLayers()

Returns

A LayerList containing all layers that have “Uses collision” enabled for them.

GetVisibleLayers

LayerList GetVisibleLayers()

Returns

A LayerList containing all layers that are currently being drawn.

GetAllLayers

LayerList GetAllLayers()

Returns

A LayerList containing all layers.

Layer Related Constants

Summary

C_LAYER_CONSTANST

C_LAYER_NONE

This means an invalid layer.

A map is a single area that can be any size and contain any amount of tiles, including Entities and TilePic’s.
Every Map contains its own LayerManager which contains information about its layers.
This means an invalid layer.
Contains a list of layerID’s.