xentara-plugin v2.0.4
The Xentara Plugin Framework
|
A factory for creating skill elements. More...
#include <xentara/skill/ElementFactory.hpp>
Public Member Functions | |
virtual | ~ElementFactory ()=0 |
Virtual destructor. | |
template<std::derived_from< Element > Derived, typename... Arguments> | |
auto | makeShared (Arguments &&... arguments) const -> std::shared_ptr< Derived > |
Creates a shared pointer containing an element. | |
Public Member Functions inherited from xentara::utils::tools::Unique | |
constexpr | Unique () noexcept=default |
constexpr | Unique (Unique &&) noexcept=default |
constexpr Unique & | operator= (Unique &&) noexcept=default |
Unique (const Unique &)=delete | |
Unique & | operator= (const Unique &)=delete |
A factory for creating skill elements.
|
pure virtualdefault |
Virtual destructor.
auto xentara::skill::ElementFactory::makeShared | ( | Arguments &&... | arguments | ) | const -> std::shared_ptr<Derived> |
Creates a shared pointer containing an element.
Derived | The class of the element to be created |
arguments | The arguments for the constructor |