Simutrans-Squirrel-API
Public Member Functions | Private Member Functions | List of all members
label_list_x Class Reference

Public Member Functions

integer get_count ()
 

Private Member Functions

label_x _get (integer)
 
void _nexti ()
 

Detailed Description

Implements iterator to iterate through the list of all labels on the map.

Usage:

local list = world.get_label_list()
// list is now of type label_list_x
foreach(label in list) {
... // label is an instance of the label_x class
}

Definition at line 256 of file api_world.cc.

Member Function Documentation

◆ _get()

label_x label_list_x::_get ( integer  )
private

Meta-method to be used in foreach loops to loop over all labels on the map. Do not call it directly.

◆ _nexti()

void label_list_x::_nexti ( )
private

Meta-method to be used in foreach loops to loop over all labels on the map. Do not call it directly.

◆ get_count()

integer label_list_x::get_count ( )

Returns number of labels in the list.


The documentation for this class was generated from the following file: