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

Public Member Functions

integer get_count ()
 

Private Member Functions

void _get ()
 
void _nexti ()
 

Detailed Description

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

Usage:

local list = factory_list_x()
foreach(factory in list) {
... // factory is an instance of the factory_x class
}

Definition at line 13 of file api_factory.cc.

Member Function Documentation

◆ _get()

void factory_list_x::_get ( )
private

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

◆ _nexti()

void factory_list_x::_nexti ( )
private

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

◆ get_count()

integer factory_list_x::get_count ( )

Returns number of factories in the list.


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