GetNumZones

From Spheriki

Jump to: navigation, search

Get the number of zones on the map.


Contents

Usage

number GetNumZones();
  • number is returned, which is the number of map zones on the current map.


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
}


Notes

  • The behaviour of this function outside of running the map engine is undefined.


See also

Personal tools