GetCurrentMap

From Spheriki

Jump to: navigation, search

Obtains the filename of the current map.


Contents

Usage

string GetCurrentMap();


Examples

For the following example to work, the variable font must contain a previously loaded font. This code can go in the render script of a map (use the map editor's Properties dialog).

font.drawString(0, 0, GetCurrentMap());

The above example will draw the filename of the map in the top-left corner of the screen.


Notes

  • This function will only work while the map engine is running.
  • To change the current map, use the ChangeMap() function.


See also

Personal tools