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

Private Member Functions

city_x _get (integer)
 
void _nexti ()
 

Detailed Description

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

Usage:

local list = city_list_x()
foreach(city in list) {
... // city is an instance of the city_x class
}

Definition at line 13 of file api_city.cc.

Member Function Documentation

◆ _get()

city_x city_list_x::_get ( integer  )
private

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

◆ _nexti()

void city_list_x::_nexti ( )
private

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


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