From fd507d87bb7e72a6ecc32ac8acc05e4d840ccd33 Mon Sep 17 00:00:00 2001 From: ThePhD Date: Mon, 3 Apr 2017 00:30:20 -0400 Subject: [PATCH] [ci skip] doc updates --- docs/source/api/state.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/source/api/state.rst b/docs/source/api/state.rst index e37cc5e2..1a25dadb 100644 --- a/docs/source/api/state.rst +++ b/docs/source/api/state.rst @@ -93,6 +93,8 @@ To handle errors when using the second overload, provide a callable function/obj }); } +You can also pass a :doc:`sol::environment` to ``script``/``script_file`` to have the script have sandboxed / contained in a way inside of a state. This is useful for runnig multiple different "perspectives" or "views" on the same state. See the ``sol: + .. code-block:: cpp :caption: function: require / require_file :name: state-require-function