Toast Engine
Loading...
Searching...
No Matches
script_context.hpp File Reference

Tracks the script that is executing on the current thread. More...

#include <atomic>
#include <cstddef>
#include <cstdint>
#include <memory>
#include <toast/world/box.hpp>
Include dependency graph for script_context.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  scripting::RuntimeToken
 Lifetime marker of one ScriptRuntime. More...
struct  scripting::ScriptContext
 The script that is executing on the current thread. More...
class  scripting::ScriptNodeContextScope

Functions

auto scripting::currentScriptNode () -> toast::Box< toast::Node >
auto scripting::currentScriptContext () -> const ScriptContext &

Detailed Description

Tracks the script that is executing on the current thread.

Author
Xein
Date
28 Sep 2026

Function Documentation

◆ currentScriptNode()

auto scripting::currentScriptNode ( ) -> toast::Box< toast::Node >
nodiscard
Returns
the node owning the currently executing script