FArcUIBindingLibrary
Resolves .ui binding sources against live gameplay state. Two source forms are understood: - numeric literals ("0.75") — constant values, mostly for authoring tests; - reflection property paths ("Entity.Component.Property[.x|.y|.z|.w]") — the entity is looked up by scene name through the injected lookup, the component by ReflectionRegistry display/type name, the property by its serialized or display name via the PropertyInfo tables. Vec2/3/4 and Quat properties take an optional trailing swizzle component. A custom hook runs before both. "visualscript.Class.Function" sources are resolved by CArcUIScreenStack itself (shared per-class evaluation instances, per-tick result caching) before this library is consulted.
- Module
- ArcUI
- Header
#include "ArcUI/FArcUIBindingLibrary.h"- Namespace
Mowo
Type aliases
| Alias | Description |
|---|---|
using FEntityLookup = std::function<uint64_t(const std::string& name)> | |
using FWorldProvider = std::function<World*()> | |
using FCustomSourceHook = std::function<bool(const std::string& source, FArcUIBindingValue& outValue)> | |
using FNamedSourceResolver = bool (*)(const std::string& source, FArcUIBindingValue& outValue) | Plain function pointer, NOT std::function: named sources are registered by PLUGINS, and relocating a std::function built in another image inside this library's vector crashed packaged games (per-image allocators — same rule as the engine modular registry). Every registrant is a captureless block anyway. |
Public functions
| Returns | Name | Description |
|---|---|---|
FArcUIBindingValue | Resolve | |
FArcUIBindingResolver | MakeResolver | |
void | RegisterNamedSource | |
void | UnregisterNamedSource | |
size_t | RemoveNamedSourcesInModule | Drops every source whose resolver is code in the unloading module; run by the module-unload broadcast, since no plugin unregisters its own. |
bool | HasNamedSource | |
bool | ResolveNamedSource | |
std::string | LocalizeKeyOrText |
Function details
Resolve
static FArcUIBindingValue Resolve(World* world, const FEntityLookup& lookup, const std::string& source)MakeResolver
static FArcUIBindingResolver MakeResolver(FWorldProvider world, FEntityLookup lookup, FCustomSourceHook customHook = FCustomSourceHook())RegisterNamedSource
static void RegisterNamedSource(const std::string& prefix, FNamedSourceResolver hook)UnregisterNamedSource
static void UnregisterNamedSource(const std::string& prefix)RemoveNamedSourcesInModule
static size_t RemoveNamedSourcesInModule(void* moduleHandle)Drops every source whose resolver is code in the unloading module; run by the module-unload broadcast, since no plugin unregisters its own.
HasNamedSource
static bool HasNamedSource(const std::string& prefix)ResolveNamedSource
static bool ResolveNamedSource(const std::string& source, FArcUIBindingValue& outValue)LocalizeKeyOrText
static std::string LocalizeKeyOrText(const std::string& value)