GetCurrentMap
From Spheriki
Obtains the filename of the current map.
Contents |
[edit]
Usage
string GetCurrentMap();
[edit]
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.
[edit]
Notes
- This function will only work while the map engine is running.
- To change the current map, use the ChangeMap() function.
[edit]

