Unravel Engine C++ Reference
Loading...
Searching...
No Matches
unravel::mono_field_proxy< T > Struct Template Reference

Proxy wrapper for mono field access that integrates with meta_any_proxy system. More...

Public Member Functions

 mono_field_proxy (mono::mono_field f)
 
auto get_name () const -> std::string
 
auto get_value (mono::mono_object &obj) const -> T
 
void set_value (mono::mono_object &obj, const T &value) const
 
auto get_attributes () const
 
auto get_type () const
 
auto is_readonly () const
 
auto is_const () const
 

Public Attributes

mono::mono_field field
 
std::string field_name
 

Detailed Description

template<typename T>
struct unravel::mono_field_proxy< T >

Proxy wrapper for mono field access that integrates with meta_any_proxy system.

This allows script field changes to be properly recorded in the undo/redo system by providing a bridge between mono field access and the engine's property system.

Definition at line 48 of file inspector_script.cpp.

Constructor & Destructor Documentation

◆ mono_field_proxy()

template<typename T >
unravel::mono_field_proxy< T >::mono_field_proxy ( mono::mono_field f)
inline

Definition at line 53 of file inspector_script.cpp.

Member Function Documentation

◆ get_attributes()

template<typename T >
auto unravel::mono_field_proxy< T >::get_attributes ( ) const
inline

Definition at line 69 of file inspector_script.cpp.

◆ get_name()

template<typename T >
auto unravel::mono_field_proxy< T >::get_name ( ) const -> std::string
inline

Definition at line 55 of file inspector_script.cpp.

◆ get_type()

template<typename T >
auto unravel::mono_field_proxy< T >::get_type ( ) const
inline

Definition at line 74 of file inspector_script.cpp.

◆ get_value()

template<typename T >
auto unravel::mono_field_proxy< T >::get_value ( mono::mono_object & obj) const -> T
inline

Definition at line 57 of file inspector_script.cpp.

◆ is_const()

template<typename T >
auto unravel::mono_field_proxy< T >::is_const ( ) const
inline

Definition at line 80 of file inspector_script.cpp.

◆ is_readonly()

template<typename T >
auto unravel::mono_field_proxy< T >::is_readonly ( ) const
inline

Definition at line 79 of file inspector_script.cpp.

◆ set_value()

template<typename T >
void unravel::mono_field_proxy< T >::set_value ( mono::mono_object & obj,
const T & value ) const
inline

Definition at line 63 of file inspector_script.cpp.

Member Data Documentation

◆ field

template<typename T >
mono::mono_field unravel::mono_field_proxy< T >::field

Definition at line 50 of file inspector_script.cpp.

◆ field_name

template<typename T >
std::string unravel::mono_field_proxy< T >::field_name

Definition at line 51 of file inspector_script.cpp.


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