|
Toast Engine
|
Converts exported Lua script variable values to/from the engine's text encoding. More...
#include <any>#include <functional>#include <string>#include <string_view>#include <toast/scripting/script_schema.hpp>#include <toast/world/box.hpp>

Go to the source code of this file.
Typedefs | |
| using | scripting::NodeResolver = std::function<toast::Box<toast::Node>(std::string_view)> |
| Resolves a node UID to a node reference. | |
Functions | |
| auto | scripting::stringifyLuaValue (const LuaVarDesc &desc, const std::any &value) -> std::string |
| Encodes a Lua variable's current value as the engine's text encoding. | |
| auto | scripting::parseLuaValue (const LuaVarDesc &desc, std::string_view text, const NodeResolver &find_node) -> std::any |
| Decodes the engine's text encoding back into a value. | |
Converts exported Lua script variable values to/from the engine's text encoding.