Handles loading and unloading maps.
This is a global object that can always be accessed.
GetMapManager:SetActiveMapByName("Main");| MapManager | Handles loading and unloading maps. |
| Member Functions | |
| LoadMapByName | |
| UnloadMapByName | |
| SetActiveMapByName | |
| GetActiveMap |
boolean LoadMapByName(string mapName)
Loading a Map causes the entire thing to be preloaded into memory.
In the future, you will be able to also enable map-streaming. (load as you go)
There is no “Save Map” command because Map’s are automatically saved when changes are made, unless the map has requested otherwise. See Map::SetAutoSave.
| mapName | The name of the map directory you want to load. |
True if the map was found and loaded successfully.
nil UnloadMapByName(string mapName)
Unload a Map causes all resources associated with it to be freed.
| mapName | The name of the map directory you want to unload. |