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

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

Public Member Functions

 mono_property_proxy (mono::mono_property p)
 
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
 

Public Attributes

mono::mono_property property
 
std::string property_name
 

Detailed Description

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

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

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

Definition at line 295 of file inspector_script.cpp.

Constructor & Destructor Documentation

◆ mono_property_proxy()

template<typename T >
unravel::mono_property_proxy< T >::mono_property_proxy ( mono::mono_property p)
inline

Definition at line 300 of file inspector_script.cpp.

Member Function Documentation

◆ get_attributes()

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

Definition at line 316 of file inspector_script.cpp.

◆ get_name()

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

Definition at line 302 of file inspector_script.cpp.

◆ get_type()

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

Definition at line 321 of file inspector_script.cpp.

◆ get_value()

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

Definition at line 304 of file inspector_script.cpp.

◆ is_readonly()

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

Definition at line 326 of file inspector_script.cpp.

◆ set_value()

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

Definition at line 310 of file inspector_script.cpp.

Member Data Documentation

◆ property

template<typename T >
mono::mono_property unravel::mono_property_proxy< T >::property

Definition at line 297 of file inspector_script.cpp.

◆ property_name

template<typename T >
std::string unravel::mono_property_proxy< T >::property_name

Definition at line 298 of file inspector_script.cpp.


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