FScriptValueMdf
- Module
- Game
- Header
#include "Game/ScriptVariableHost.h"- Namespace
Mowo
Public functions
| Returns | Name | Description |
|---|---|---|
MDF::MdfValue | ToMdf | Containers become MDF arrays (a map: an array of [key, value] pairs). |
VisualScriptValue | FromMdf | |
bool | WriteOverrides | The overrides of a host (values that differ from their declared default) into node, and back. |
void | ApplyOverrides | |
bool | SameValue | Value equality for script variables: VisualScriptValue::Equals compares object values by the live object they resolve to, so two unresolved references (any two, before Play) would read as equal and an actor picked in Details as "still the default". |
AActor* | ResolveActor | The live actor an Object value names in world, or null. |
VisualScriptValue | MakeActorRef | An Object value that names actor by its stable id. |
Function details
ToMdf
static MDF::MdfValue ToMdf(const VisualScriptValue& value, const FScriptVariableMeta* meta = nullptr)Containers become MDF arrays (a map: an array of [key, value] pairs). An Object value writes its reference: "actor:<uuid>" for a placed actor (a live object is encoded through its backing entity), the asset path as a typed asset reference when the variable is an asset reference.
FromMdf
static VisualScriptValue FromMdf(const MDF::MdfValue& mdf, FMValueType type, VisualScriptContainer container = VisualScriptContainer::None)WriteOverrides
static bool WriteOverrides(const IScriptVariableHost& host, MDF::MdfNode& node)The overrides of a host (values that differ from their declared default) into node, and back. Unknown keys on read are skipped.
ApplyOverrides
static void ApplyOverrides(IScriptVariableHost& host, const MDF::MdfNode& node)SameValue
static bool SameValue(const VisualScriptValue& a, const VisualScriptValue& b)Value equality for script variables: VisualScriptValue::Equals compares object values by the live object they resolve to, so two unresolved references (any two, before Play) would read as equal and an actor picked in Details as "still the default". References compare by what they name.
ResolveActor
static AActor* ResolveActor(const VisualScriptValue& value, MWorld* world)The live actor an Object value names in world, or null.
MakeActorRef
static VisualScriptValue MakeActorRef(const AActor* actor)An Object value that names actor by its stable id.