FVisualScriptRuntime
- Module
- Game
- Header
#include "Game/VisualScriptRuntime.h"- Namespace
Mowo
Constructors
| Signature | Name | Description |
|---|---|---|
FVisualScriptRuntime(AActor* owner, const char* nativeClassName, bool gateTick) | FVisualScriptRuntime | nativeClassName is the backing class whose reflected functions a graph calls on self. |
FVisualScriptRuntime(const FVisualScriptRuntime&) = delete | FVisualScriptRuntime |
Public functions
| Returns | Name | Description |
|---|---|---|
void | Rebind | |
FVisualScriptRuntime& | operator= | |
FVisualScriptRuntime* | Of | The runtime of a visual-script-backed object, or null for anything else. |
const FVisualScriptRuntime* | Of | |
void | InstallHooks | Hooks the backing classes cannot do without: the RPC receive dispatch, the spawn-pin applier and the visual-script-function RPC invoker. |
void | BindVisualScriptClass | |
bool | IsVisualScriptBound | |
MClass* | SyntheticClass | |
MClass* | NativeClass | |
AActor* | Owner | |
void | OnConstruct | Lifecycle, called by the host after its native base's own. |
void | BeginPlay | |
void | Tick | |
void | EndPlay | |
void | Destroyed | |
void | OnDamage | |
bool | IsDead | |
void | NotifyHit | |
bool | CallVisualScriptFunction | |
void | AdvanceLatents | |
bool | HasPendingLatents | |
void | ReceivePin | |
const VisualScriptValue* | FindVar | |
void | SetVar | |
bool | FindVarType | |
std::string | GetHostKey | The instance-editable variables, as the Details panel and the serializer see every script's; the overrides keep their own VisualScriptVars node. |
std::string | GetSectionName | |
std::string | GetSerializedNodeName | |
void | CollectVariables | |
const VisualScriptValue* | FindVariable | |
bool | SetVariable | |
void | CollectVarOverrides | |
void | CollectDeclaredVars | Every declared variable at its current value, overridden or not; the engine-fed scratch values (DamageAmount, HitLocation, ...) are left out. |
bool | IsAuthoredOverride | |
bool | PushReplicatedVars | |
void | ApplyReplicatedVars | The body of every backing class's MulticastVisualScriptVars. |
void | SetComponentSlotOverride | |
void | CollectComponentSlotOverrides | |
const VisualScriptValue* | FindComponentSlotOverride | |
EntityID | FindSlotEntity |
Function details
FVisualScriptRuntime
FVisualScriptRuntime(AActor* owner, const char* nativeClassName, bool gateTick)nativeClassName is the backing class whose reflected functions a graph calls on self. gateTick lets the runtime switch the owner's tick off when the class has nothing to tick; a backing class whose native base ticks for its own reasons (character movement, a controller) passes false and the runtime only ever turns ticking on.
FVisualScriptRuntime
FVisualScriptRuntime(const FVisualScriptRuntime&) = deleteRebind
void Rebind(AActor* owner, const char* nativeClassName, bool gateTick)operator=
FVisualScriptRuntime& operator=(const FVisualScriptRuntime&) = deleteOf
static FVisualScriptRuntime* Of(MObject* object)The runtime of a visual-script-backed object, or null for anything else.
Of
static const FVisualScriptRuntime* Of(const MObject* object)InstallHooks
static void InstallHooks()Hooks the backing classes cannot do without: the RPC receive dispatch, the spawn-pin applier and the visual-script-function RPC invoker. Idempotent.
BindVisualScriptClass
void BindVisualScriptClass(MClass* synthetic, VisualScriptClass* def)IsVisualScriptBound
bool IsVisualScriptBound() constSyntheticClass
MClass* SyntheticClass() constNativeClass
MClass* NativeClass() constOwner
AActor* Owner() constOnConstruct
void OnConstruct()Lifecycle, called by the host after its native base's own.
BeginPlay
void BeginPlay()Tick
void Tick(float deltaSeconds)EndPlay
void EndPlay()Destroyed
void Destroyed()OnDamage
void OnDamage(float amount, AActor* instigator)IsDead
bool IsDead() constNotifyHit
void NotifyHit(AActor* other, const Vec3& location, const Vec3& normal, float impulse)CallVisualScriptFunction
bool CallVisualScriptFunction(const std::string& functionName, const std::vector<VisualScriptValue>& args, VisualScriptValue* ret)AdvanceLatents
void AdvanceLatents(float dt)HasPendingLatents
bool HasPendingLatents() constReceivePin
void ReceivePin(const std::string& pin, const VisualScriptValue& payload)FindVar
const VisualScriptValue* FindVar(const std::string& name) constSetVar
void SetVar(const std::string& name, const VisualScriptValue& value)FindVarType
bool FindVarType(const std::string& name, FMValueType& outType) constGetHostKey
std::string GetHostKey() const overrideThe instance-editable variables, as the Details panel and the serializer see every script's; the overrides keep their own VisualScriptVars node.
GetSectionName
std::string GetSectionName() const overrideGetSerializedNodeName
std::string GetSerializedNodeName() const overrideCollectVariables
void CollectVariables(std::vector<FScriptVariableDesc>& out) const overrideFindVariable
const VisualScriptValue* FindVariable(const std::string& name) const overrideSetVariable
bool SetVariable(const std::string& name, const VisualScriptValue& value) overrideCollectVarOverrides
void CollectVarOverrides(std::vector<std::pair<std::string, VisualScriptValue>>& out) constCollectDeclaredVars
void CollectDeclaredVars(std::vector<std::pair<std::string, VisualScriptValue>>& out) constEvery declared variable at its current value, overridden or not; the engine-fed scratch values (DamageAmount, HitLocation, ...) are left out.
IsAuthoredOverride
static bool IsAuthoredOverride(const VisualScriptValue& current, const VisualScriptValue* seeded)PushReplicatedVars
bool PushReplicatedVars(bool forceFull = false)ApplyReplicatedVars
void ApplyReplicatedVars(const std::string& blob)The body of every backing class's MulticastVisualScriptVars.
SetComponentSlotOverride
void SetComponentSlotOverride(const std::string& slotName, const std::string& propertyName, const VisualScriptValue& value)CollectComponentSlotOverrides
void CollectComponentSlotOverrides(std::vector<std::pair<std::string, VisualScriptValue>>& out) constFindComponentSlotOverride
const VisualScriptValue* FindComponentSlotOverride(const std::string& slotName, const std::string& propertyName) constFindSlotEntity
EntityID FindSlotEntity(const std::string& slotName) const