Engine → Scripting → script_host.h
script_host¶
| Type | Class |
| Namespace | conjure::scripting |
| Include File Path | engine/include/conjure/scripting/script_host.h |
| Source File Path | engine/src/scripting/script_host.cpp |
| API ↗ | Hosting, the native API and hot reload, Scripting |
Syntax¶
Derived Classes¶
Classes that use this as a base
Constructors¶
| Access | Signature | Description |
|---|---|---|
| public | script_host(); |
Important
Copy constructor and assignment has been deleted.
Destructors¶
| Access | Signature | Description |
|---|---|---|
| public | virtual ~script_host(); |
Functions¶
Public¶
backend¶
backend¶[[nodiscard]] virtual script_backend backend() const noexcept = 0;initialise¶
initialise¶[[nodiscard]] virtual core::result<void> initialise(
const script_host_config &config,
conjure_native_api &nativeApi) = 0;Starts (or attaches to) the runtime and performs the ABI handshake over nativeApi, which the caller must have filled and which must outlive the host. Main thread only. Failure leaves the host DISABLED.
managed_api¶
managed_api¶[[nodiscard]] virtual const conjure_managed_api &managed_api() const noexcept = 0;The table the managed side filled during the handshake; all null before READY.
shutdown¶
shutdown¶virtual void shutdown() = 0;Stops managed execution for this host (instances destroyed, game assembly unloaded). The CLR stays resident until process exit.