Finality Engine
Loading...
Searching...
No Matches
ScriptReflection.h File Reference

Builds typed field metadata for native script registration. More...

#include "ScriptRegistry.h"
#include <tuple>
#include <typeindex>
#include <set>
#include <algorithm>

Go to the source code of this file.

Classes

struct  FINALITY::ScriptField< T, V >
struct  FINALITY::ScriptFieldAccess
class  FINALITY::ScriptReflection

Namespaces

namespace  FINALITY

Functions

template<typename T, typename V>
auto FINALITY::MakeScriptField (const char *name, V T::*member)

Detailed Description

Builds typed field metadata for native script registration.

Generated wrappers specialize ScriptFieldAccess for discovered script and nested struct types. Templates flatten the supported fields into the ScriptDefinition property descriptors consumed by serialization and the Inspector.

Usage
Run FIScriptReflect before compiling script translation units. Compile the generated wrappers instead of compiling the same authored cpp files a second time.

Definition in file ScriptReflection.h.