Changes between Version 4 and Version 5 of Random_Map_Generator_Internals
- Timestamp:
- Apr 10, 2011, 3:55:10 AM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Random_Map_Generator_Internals
v4 v5 7 7 The CMapGenerator provides a few things for the random map scripts. One is a global variable `g_MapSettings` which specifies all the map settings as created by game setup. CMapGenerator also exposes two JavaScript functions: `RMS.LoadLibrary(name)` and `RMS.ExportMap(data)`. `LoadLibrary` is used for choosing the API to which a random map script will have access. `ExportMap` is used to return generated map data from the scripts to the engine. 8 8 9 == Data format == 9 10 The data from a random map script must be in an exact format, independent of the methods used to generate it. This format can be specified in JSON as follows: 10 11 {{{