GeneralRulesUnloadMap Method |
Unloads the specified map.
Namespace: (Default Namespace)Assembly: Default (in Default.exe) Version: 1.0.0.0
Syntax public virtual void UnloadMap(
Type MapType
)
Parameters
- MapType
- Type: SystemType
Specifies the class of map whose instance will be unloaded if
it is loaded.
Remarks Unloading a map will free up any memory used by its tiles and sprites if no other
code is referencing it. It also excludes it from the saved game data if the game is saved,
which can significantly reduce the size of a saved game file. Finally it causes the tiles
and sprites to be recreated/reset next time the map is loaded (switched to).
See Also