class

FWolangScripting

Module
Scripting
Header
#include "Scripting/WolangScripting.h"
Namespace
Mowo

Public functions

ReturnsNameDescription
std::vector<FWolangDiagnostic>ParseDiagnosticsSplits a vm's rendered diagnostics ("error[E0026]: ..." then " --> file:7:16") into entries.
voidReportDiagnosticsThe diagnostics of the last load or reload that reported any, and of the last CheckProject; empty after one that compiled.
std::vector<FWolangDiagnostic>GetDiagnostics
uint32_tGetDiagnosticsRevision
boolHasErrors
boolCheckProjectCompiles every script package of the project (and the engine classes' shims) in a vm of its own and reports what it found; the editor runs it when a script is saved and before Play.
boolIsAvailableFalse on a platform the Wolang library is not vendored for; every script actor then logs that once and does nothing.
boolHasEmbeddedPackagesWhether this module carries the engine's own package and Wolang's standard library as data (loaded from memory, never from a folder); false when it was built without the bindings.
std::filesystem::pathGetScriptsDirectoryWhere the project's script packages are: <project>/Scripts, or <package root>/Scripts in a packaged game (which opens no project; mbt package copies the folder there).
std::filesystem::pathFindPackageA script path as an actor names it — project-relative or absolute, a package folder or a .wo file inside one — to the folder holding its wolang.toml; empty when there is none.
FWolangVm*Acquire
voidRelease
FWolangVm*Find
FWolangVm*FindAnyAny world's vm, for calls that come with no world (a Visual Script library node); null when no world runs scripts.
size_tGetVmCount
boolIsHotReloadEnabledwolang.HotReload: whether a playing world reloads a saved script.
uint64_tGetCallBudgetwolang.CallBudget: the ticks one call into a script may spend.
voidAdvanceTasksThe world's script tasks (task fun, wait Wait(seconds)) advance by the game's dt, once per frame however many script objects call this; a paused world does not call it and slow motion passes a smaller dt.
int32_tGetDebugPort
voidSetDebugPort

Function details

ParseDiagnostics

C++
static std::vector<FWolangDiagnostic> ParseDiagnostics(const std::string& text)

Splits a vm's rendered diagnostics ("error[E0026]: ..." then " --> file:7:16") into entries.

ReportDiagnostics

C++
static void ReportDiagnostics(const std::string& text)

The diagnostics of the last load or reload that reported any, and of the last CheckProject; empty after one that compiled. The revision bumps on every change, which is what the editor's Message Log page and status bar item poll.

GetDiagnostics

C++
static std::vector<FWolangDiagnostic> GetDiagnostics()

GetDiagnosticsRevision

C++
static uint32_t GetDiagnosticsRevision()

HasErrors

C++
static bool HasErrors()

CheckProject

C++
static bool CheckProject(std::vector<FWolangDiagnostic>* out = nullptr)

Compiles every script package of the project (and the engine classes' shims) in a vm of its own and reports what it found; the editor runs it when a script is saved and before Play. True when everything compiled.

IsAvailable

C++
static bool IsAvailable()

False on a platform the Wolang library is not vendored for; every script actor then logs that once and does nothing.

HasEmbeddedPackages

C++
static bool HasEmbeddedPackages()

Whether this module carries the engine's own package and Wolang's standard library as data (loaded from memory, never from a folder); false when it was built without the bindings.

GetScriptsDirectory

C++
static std::filesystem::path GetScriptsDirectory()

Where the project's script packages are: <project>/Scripts, or <package root>/Scripts in a packaged game (which opens no project; mbt package copies the folder there). Empty when there is neither.

FindPackage

C++
static std::filesystem::path FindPackage(const std::string& scriptPath)

A script path as an actor names it — project-relative or absolute, a package folder or a .wo file inside one — to the folder holding its wolang.toml; empty when there is none.

Acquire

C++
static FWolangVm* Acquire(const MWorld* world)

Release

C++
static void Release(const MWorld* world)

Find

C++
static FWolangVm* Find(const MWorld* world)

FindAny

C++
static FWolangVm* FindAny()

Any world's vm, for calls that come with no world (a Visual Script library node); null when no world runs scripts.

GetVmCount

C++
static size_t GetVmCount()

IsHotReloadEnabled

C++
static bool IsHotReloadEnabled()

wolang.HotReload: whether a playing world reloads a saved script.

GetCallBudget

C++
static uint64_t GetCallBudget()

wolang.CallBudget: the ticks one call into a script may spend.

AdvanceTasks

C++
static void AdvanceTasks(const MWorld* world, double dt, uint64_t frame)

The world's script tasks (task fun, wait Wait(seconds)) advance by the game's dt, once per frame however many script objects call this; a paused world does not call it and slow motion passes a smaller dt.

GetDebugPort

C++
static int32_t GetDebugPort()

SetDebugPort

C++
static void SetDebugPort(int32_t port)
Generated from Scripting/WolangScripting.h via scripting.json · Nov 3, 2026Version 1.0.0