namespace engine_server::server_callbacks

Overview

namespace server_callbacks {

// global variables

 script =  None;

// global functions

dict initialize(dict request_json);
dict run_loop(dict request_json);
None set_datapack(dict request_json);
dict get_datapack(dict request_json);
dict reset(dict request_json);
None shutdown(dict request_json);

} // namespace server_callbacks

Detailed Documentation

Global Functions

dict initialize(dict request_json)
Imports module containing the Script class, instantiates it, and runs its initialize() method
dict run_loop(dict request_json)
Advances the simulation time and runs the runLoop method of the Script object
None set_datapack(dict request_json)
Sets given data on requested datapacks stored in the Script object
dict get_datapack(dict request_json)
Returns requested datapacks stored in the Script object
dict reset(dict request_json)
Calls the reset() method of the Script object
None shutdown(dict request_json)
Calls the shutdown() method of the Script object