Representation of a teeworlds map.
All information about the map can be accessed through this class.
Parameters: | map_path – Path to the teeworlds mapfile. |
---|
MapInfo object, contains information like author and maplicense. Can be None.
Returns the gamelayer.
If you have multiple gamelayers (don’t do that!), it will return the first one
Returns a list of all layers, collected from the groups.
Saves the current map to map_path.
Returns the speeduplayer. Only for race modification.
Returns the telelayer. Only for race modification.
Check if the map is a valid teeworlds map.
Returns True or raises an exception.