class

IScriptVariableHost

Module
Game
Header
#include "Game/ScriptVariableHost.h"
Namespace
Mowo

Constructors

SignatureNameDescription
virtual ~IScriptVariableHost() = default~IScriptVariableHost

Public functions

ReturnsNameDescription
std::stringGetHostKeyUnique among the hosts of one actor: "" for the actor's own Visual Script variables, "wolang" for a script actor, "wolang:<component>" for a script component.
std::stringGetSectionNameThe Details section title ("Script Variables (Enemy)").
std::stringGetSerializedNodeNameThe child of the actor's MDF node the overrides are written to.
voidCollectVariables
const VisualScriptValue*FindVariable
boolSetVariable
voidCollectActionsFunctions the declaration marked as Details buttons.
boolInvokeAction
std::stringGetRedirectTypeNameThe type a Config/Redirects.ini PropertyRedirects line names for this host's variables (OldName="Enemy.hp",NewName="Enemy.health"), so a renamed field keeps the values levels stored under the old name.
const FScriptVariableDesc*FindDesc
boolPassesShowIfWhether ShowIf lets the variable's row show: a missing or non-bool condition does not hide it.

Function details

~IScriptVariableHost

C++
virtual ~IScriptVariableHost() = default

GetHostKey

C++
virtual std::string GetHostKey() const = 0

Unique among the hosts of one actor: "" for the actor's own Visual Script variables, "wolang" for a script actor, "wolang:<component>" for a script component. Undo and the Details rows address the host by it.

GetSectionName

C++
virtual std::string GetSectionName() const = 0

The Details section title ("Script Variables (Enemy)").

GetSerializedNodeName

C++
virtual std::string GetSerializedNodeName() const = 0

The child of the actor's MDF node the overrides are written to. Empty when the host serializes itself elsewhere.

CollectVariables

C++
virtual void CollectVariables(std::vector<FScriptVariableDesc>& out) const = 0

FindVariable

C++
virtual const VisualScriptValue* FindVariable(const std::string& name) const = 0

SetVariable

C++
virtual bool SetVariable(const std::string& name, const VisualScriptValue& value) = 0

CollectActions

C++
virtual void CollectActions(std::vector<FScriptActionDesc>& out) const

Functions the declaration marked as Details buttons. An action runs on the instance the panel shows (the edited level outside Play).

InvokeAction

C++
virtual bool InvokeAction(const std::string& name)

GetRedirectTypeName

C++
virtual std::string GetRedirectTypeName() const

The type a Config/Redirects.ini PropertyRedirects line names for this host's variables (OldName="Enemy.hp",NewName="Enemy.health"), so a renamed field keeps the values levels stored under the old name. Empty: no redirects apply.

FindDesc

C++
const FScriptVariableDesc* FindDesc(const std::string& name, std::vector<FScriptVariableDesc>& scratch) const

PassesShowIf

C++
bool PassesShowIf(const FScriptVariableDesc& desc) const

Whether ShowIf lets the variable's row show: a missing or non-bool condition does not hide it.

Generated from Game/ScriptVariableHost.h via game.json · Nov 5, 2026Version 1.0.0