#include <ReflectiveProperties.h>
◆ ~ReflectiveProperties()
| virtual lodestone::level::properties::ReflectiveProperties::~ReflectiveProperties |
( |
| ) |
|
|
virtualdefault |
◆ getProperty() [1/2]
template<typename T>
| std::unique_ptr< TemplatedProperty< T > > lodestone::level::properties::ReflectiveProperties::getProperty |
( |
const std::string & | name | ) |
|
|
inline |
38 {
40 }
static std::unique_ptr< To > dynamic_unique_pointer_cast(std::unique_ptr< From > ptr)
virtual std::unique_ptr< AbstractProperty > getProperty(const std::string &name)
Definition ReflectiveProperties.cpp:6
◆ getProperty() [2/2]
◆ getPropertyOr()
template<typename T>
| std::unique_ptr< TemplatedProperty< T > > lodestone::level::properties::ReflectiveProperties::getPropertyOr |
( |
const std::string & | name, |
|
|
T | value ) |
|
inline |
43 {
45 if (prop == nullptr) {
46 return std::make_unique<TemplatedProperty<T>>(value);
47 }
48
49 return std::move(prop);
50 }
The documentation for this class was generated from the following files:
- /home/runner/work/libLodestone/libLodestone/projects/Libraries/Level/include/Lodestone.Level/properties/ReflectiveProperties.h
- /home/runner/work/libLodestone/libLodestone/projects/Libraries/Level/src/properties/ReflectiveProperties.cpp