libER 0.1.4.2
ELDEN RING API library
Loading...
Searching...
No Matches
component.hpp
Go to the documentation of this file.
1
8#pragma once
9
11#include <detail/literal_string.hpp>
12#include <detail/preprocessor.hpp>
13
14// LIBER_CLASS specialization that implements
15// DLRuntimeClass reflection for CLASSNAME
16// The class must inherit from FD4ComponentBase
17#define FD4_RUNTIME_CLASS(CLASSNAME) \
18 from::DLRF::DLRuntimeClass* get_runtime_class() noexcept override { \
19 return &from::DLRF::DLRuntimeClassTemplate<CLASSNAME, \
20 LIBER_STRINGIFY(CLASSNAME)>::dl_runtime_class; \
21 } \
22 LIBER_CLASS(CLASSNAME)
23
24namespace from {
25namespace FD4 {
40 LIBERAPI virtual DLRF::DLRuntimeClass* get_runtime_class() noexcept;
41
42 virtual ~FD4ComponentBase() = default;
43};
44} // namespace FD4
45} // namespace from
Type reflection object for an implementing class.
Definition reflection.hpp:199
Dantelion2 type reflection.
Reflection implementation for a given class.
Definition component.hpp:34
virtual LIBERAPI DLRF::DLRuntimeClass * get_runtime_class() noexcept
Get the runtime class object.