Changeset View
Changeset View
Standalone View
Standalone View
source/simulation2/Simulation2.h
Show First 20 Lines • Show All 98 Lines • ▼ Show 20 Lines | public: | ||||
* simulation. | * simulation. | ||||
*/ | */ | ||||
void SetInitAttributes(JS::HandleValue settings); | void SetInitAttributes(JS::HandleValue settings); | ||||
/** | /** | ||||
* Get the data passed to SetInitAttributes. | * Get the data passed to SetInitAttributes. | ||||
*/ | */ | ||||
JS::Value GetInitAttributes(); | JS::Value GetInitAttributes(); | ||||
void GetInitAttributes(JS::MutableHandleValue ret); | |||||
/** | /** | ||||
* Set the initial map settings (as a UTF-8-encoded JSON string), | * Set the initial map settings (as a UTF-8-encoded JSON string), | ||||
* which will be used to set up the simulation state. | * which will be used to set up the simulation state. | ||||
* Called from atlas. | * Called from atlas. | ||||
*/ | */ | ||||
void SetMapSettings(const std::string& settings); | void SetMapSettings(const std::string& settings); | ||||
/** | /** | ||||
* Set the initial map settings, which will be used | * Set the initial map settings, which will be used | ||||
* to set up the simulation state. | * to set up the simulation state. | ||||
* Called from MapReader (for all map-types). | * Called from MapReader (for all map-types). | ||||
*/ | */ | ||||
void SetMapSettings(JS::HandleValue settings); | void SetMapSettings(JS::HandleValue settings); | ||||
/** | /** | ||||
* Get the current map settings as a UTF-8 JSON string. | * Get the current map settings as a UTF-8 JSON string. | ||||
*/ | */ | ||||
std::string GetMapSettingsString(); | std::string GetMapSettingsString(); | ||||
/** | /** | ||||
* Get the current map settings. | |||||
*/ | |||||
void GetMapSettings(JS::MutableHandleValue ret); | |||||
/** | |||||
* RegMemFun incremental loader function. | * RegMemFun incremental loader function. | ||||
*/ | */ | ||||
int ProgressiveLoad(); | int ProgressiveLoad(); | ||||
/** | /** | ||||
* Reload any scripts that were loaded from the given filename. | * Reload any scripts that were loaded from the given filename. | ||||
* (This is used to implement hotloading.) | * (This is used to implement hotloading.) | ||||
*/ | */ | ||||
▲ Show 20 Lines • Show All 135 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator