IScriptVariableHost
- Module
- Game
- Header
#include "Game/ScriptVariableHost.h"- Namespace
Mowo
Constructors
| Signature | Name | Description |
|---|---|---|
virtual ~IScriptVariableHost() = default | ~IScriptVariableHost |
Public functions
| Returns | Name | Description |
|---|---|---|
std::string | GetHostKey | 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. |
std::string | GetSectionName | The Details section title ("Script Variables (Enemy)"). |
std::string | GetSerializedNodeName | The child of the actor's MDF node the overrides are written to. |
void | CollectVariables | |
const VisualScriptValue* | FindVariable | |
bool | SetVariable | |
void | CollectActions | Functions the declaration marked as Details buttons. |
bool | InvokeAction | |
std::string | GetRedirectTypeName | 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. |
const FScriptVariableDesc* | FindDesc | |
bool | PassesShowIf | Whether ShowIf lets the variable's row show: a missing or non-bool condition does not hide it. |
Function details
~IScriptVariableHost
virtual ~IScriptVariableHost() = defaultGetHostKey
virtual std::string GetHostKey() const = 0Unique 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
virtual std::string GetSectionName() const = 0The Details section title ("Script Variables (Enemy)").
GetSerializedNodeName
virtual std::string GetSerializedNodeName() const = 0The child of the actor's MDF node the overrides are written to. Empty when the host serializes itself elsewhere.
CollectVariables
virtual void CollectVariables(std::vector<FScriptVariableDesc>& out) const = 0FindVariable
virtual const VisualScriptValue* FindVariable(const std::string& name) const = 0SetVariable
virtual bool SetVariable(const std::string& name, const VisualScriptValue& value) = 0CollectActions
virtual void CollectActions(std::vector<FScriptActionDesc>& out) constFunctions the declaration marked as Details buttons. An action runs on the instance the panel shows (the edited level outside Play).
InvokeAction
virtual bool InvokeAction(const std::string& name)GetRedirectTypeName
virtual std::string GetRedirectTypeName() constThe 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
const FScriptVariableDesc* FindDesc(const std::string& name, std::vector<FScriptVariableDesc>& scratch) constPassesShowIf
bool PassesShowIf(const FScriptVariableDesc& desc) constWhether ShowIf lets the variable's row show: a missing or non-bool condition does not hide it.