Raven Engine v0.1
A modern 3D Game Engine
Loading...
Searching...
No Matches
Raven::PendingMemberRegistration< Parent, Member > Struct Template Reference

Static-init helper that records a single reflected member variable. More...

#include <ScriptEntry.h>

Public Member Functions

 PendingMemberRegistration (std::string_view name, u32 offset)
 Constructs the registration and appends it to the pending list.

Public Attributes

PendingMemberEntry Entry
 Linked-list node embedded in this registration.
std::string_view Name
 Reflected name of the member variable.
u32 Offset
 Byte offset within Parent (from offsetof).

Detailed Description

template<typename Parent, typename Member>
struct Raven::PendingMemberRegistration< Parent, Member >

Static-init helper that records a single reflected member variable.

Instantiated by the RV_REFLECT_MEMBER macro. Appends itself to PendingMemberRegistrationList at DLL load time; the registration is flushed into the engine registry when RV_RegisterScripts is called.

Template Parameters
ParentEnclosing script class that owns the member.
MemberType of the member variable being reflected.

Constructor & Destructor Documentation

◆ PendingMemberRegistration()

template<typename Parent, typename Member>
Raven::PendingMemberRegistration< Parent, Member >::PendingMemberRegistration ( std::string_view name,
u32 offset )
inline

Constructs the registration and appends it to the pending list.

Parameters
nameReflected member name (string literal lifetime required).
offsetByte offset of the member within Parent.

Member Data Documentation

◆ Entry

template<typename Parent, typename Member>
PendingMemberEntry Raven::PendingMemberRegistration< Parent, Member >::Entry

Linked-list node embedded in this registration.

◆ Name

template<typename Parent, typename Member>
std::string_view Raven::PendingMemberRegistration< Parent, Member >::Name

Reflected name of the member variable.

◆ Offset

template<typename Parent, typename Member>
u32 Raven::PendingMemberRegistration< Parent, Member >::Offset

Byte offset within Parent (from offsetof).


The documentation for this struct was generated from the following file: