.. index:: pair: namespace; engine_server::server_callbacks .. _doxid-namespaceengine__server_1_1server__callbacks: namespace engine_server::server_callbacks ========================================= .. toctree:: :hidden: Overview ~~~~~~~~ .. ref-code-block:: cpp :class: doxyrest-overview-code-block namespace server_callbacks { // global variables :target:`script` = None; // global functions dict :ref:`initialize`(dict request_json); dict :ref:`run_loop`(dict request_json); None :ref:`set_datapack`(dict request_json); dict :ref:`get_datapack`(dict request_json); dict :ref:`reset`(dict request_json); None :ref:`shutdown`(dict request_json); } // namespace server_callbacks .. _details-namespaceengine__server_1_1server__callbacks: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ Global Functions ---------------- .. index:: pair: function; initialize .. _doxid-namespaceengine__server_1_1server__callbacks_1a9950a49a0364623be2202ccd6a6b333c: .. ref-code-block:: cpp :class: doxyrest-title-code-block dict initialize(dict request_json) .. code-block:: cpp Imports module containing the Script class, instantiates it, and runs its initialize() method .. index:: pair: function; run_loop .. _doxid-namespaceengine__server_1_1server__callbacks_1a16e7fab99a4c7246fcc7263d71bd9db9: .. ref-code-block:: cpp :class: doxyrest-title-code-block dict run_loop(dict request_json) .. code-block:: cpp Advances the simulation time and runs the runLoop method of the Script object .. index:: pair: function; set_datapack .. _doxid-namespaceengine__server_1_1server__callbacks_1a852a4bc096c1c58b099ead41ad6ad2d6: .. ref-code-block:: cpp :class: doxyrest-title-code-block None set_datapack(dict request_json) .. code-block:: cpp Sets given data on requested datapacks stored in the Script object .. index:: pair: function; get_datapack .. _doxid-namespaceengine__server_1_1server__callbacks_1a7fd142e0e4241bfa95763b6f79b71f0c: .. ref-code-block:: cpp :class: doxyrest-title-code-block dict get_datapack(dict request_json) .. code-block:: cpp Returns requested datapacks stored in the Script object .. index:: pair: function; reset .. _doxid-namespaceengine__server_1_1server__callbacks_1a4ecdd688f9bd5a06e16c58c8f1188c7a: .. ref-code-block:: cpp :class: doxyrest-title-code-block dict reset(dict request_json) .. code-block:: cpp Calls the reset() method of the Script object .. index:: pair: function; shutdown .. _doxid-namespaceengine__server_1_1server__callbacks_1a9fa58de6dbb6fa688b5f76f236f7bf16: .. ref-code-block:: cpp :class: doxyrest-title-code-block None shutdown(dict request_json) .. code-block:: cpp Calls the shutdown() method of the Script object