LayerList

Contains a list of layerID’s.

Summary
LayerListContains a list of layerID’s.
Member Functions
Add
Get
GetCount

Member Functions

Add

nil Add(number layerID)

Some functions require a list of layers to operate on.  Besides grabbing pre-built lists from the LayerManager, you can contruct your own.

Usage

myLayerList = LayerList(); //create a new object

myLayerList.Add(someMap:GetLayerManager:GetLayerIDByName("Overlay 1"));
myLayerList.Add(someMap:GetLayerManager:GetLayerIDByName("GUI 2"));

Now we can use myLayerList with Map::GetTilesByRect to scan only these two layers.

Parameters

The layerID to add.  LayerID’s are just numbers.

Get

number Get(number index)

Parameters

indexThe LayerList slot you want the number from.  (Starts at 0, must be less than GetCount.)

Returns

The layerID at this slot.

GetCount

number GetCount()

Returns

How many layerID’s are in this list.

Every Map contains its own LayerManager which contains information about its layers.
Contains a list of layerID’s.