GetNumZones
From Spheriki
Get the number of zones on the map.
Contents |
[edit]
Usage
number GetNumZones();
- number is returned, which is the number of map zones on the current map.
[edit]
Examples
To loop through all zones in a map:
for (var i = 0, zone_count = GetNumZones(); i < zone_count; ++i) {
// Do stuff for zone i
}
[edit]
Notes
- The behaviour of this function outside of running the map engine is undefined.
[edit]

