Simutrans-Squirrel-API OTRP v63_4
Loading...
Searching...
No Matches
city_list_x Class Reference

Private Member Functions

void _nexti ()
city_x _get (integer)

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: