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

Public Member Functions

integer get_count ()
 

Private Member Functions

line_x _get ()
 
void _nexti ()
 

Detailed Description

Implements iterator to iterate through lists of lines.

Usage:

local list = player_x(0).get_line_list()
foreach(line in list) {
... // line is an instance of the line_x class
}
See also
player_x::get_line_list, halt_x::get_line_list

Definition at line 15 of file api_line.cc.

Member Function Documentation

◆ _get()

line_x line_list_x::_get ( )
private

Meta-method to be used in foreach loops. Do not call them directly.

◆ _nexti()

void line_list_x::_nexti ( )
private

Meta-method to be used in foreach loops. Do not call them directly.

◆ get_count()

integer line_list_x::get_count ( )

Returns number of lines in the list.


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