php_bw_load_scm
object php_bw_load_scm(string map_path)
Parses the specified map to get information about it.
The returned object contains the following members :
- Name : the name of the map (might contain "control characters" that colorize the map's name in SC)
- Width : the width of the map, in number of tiles (e.g. 128 for LT)
- Height : the height of the map, in number of tiles (e.g. 128 for LT)
- Tileset : the used tileset, as a numeric value (useful for switch/cases), e.g. 4 for Jungle tileset
- TilesetName : the used tileset as an English string, e.g. "Jungle"
- StartingLocations : an array of integers, giving all starting locations of the map using a 12-clock reference. This can be messy with maps containing observers spots :p
- ErrorCode (0 if everything went fine)
- ErrorString ("OK" if everything went fine)
Since : 4.0