Changes between Version 4 and Version 5 of Random_Map_Generator_Internals


Ignore:
Timestamp:
Apr 10, 2011, 3:55:10 AM (13 years ago)
Author:
historic_bruno
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Random_Map_Generator_Internals

    v4 v5  
    77The 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.
    88
     9== Data format ==
    910The 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:
    1011{{{