xentara-plugin v2.0.4
The Xentara Plugin Framework
|
Convenience subclass of Class that implements all callbacks. More...
#include <xentara/skill/Skill.hpp>
Private Member Functions | |
Virtual Overrides for Class | |
| |
auto | name () const -> std::string_view final |
Virtual override for Class::name() | |
auto | uuid () const -> utils::core::Uuid final |
Virtual override for Class::uuid() | |
auto | registerElements (Registry ®istry) -> void final |
Virtual override for Class::registerElements() | |
Additional Inherited Members | |
Public Member Functions inherited from xentara::skill::Skill::Class | |
virtual | ~Class ()=0 |
Virtual destructor. | |
Public Member Functions inherited from xentara::utils::tools::DisableCopy | |
constexpr | DisableCopy () noexcept=default |
DisableCopy (const DisableCopy &)=delete | |
DisableCopy & | operator= (const DisableCopy &)=delete |
Convenience subclass of Class that implements all callbacks.
This class is a convenience class that implements all the virtual member functions of Class using the given template parameters. Instead of implementing your own subclass of Class, you can use a specialization of this template:
DerivedSkill | The skill class this object represents. This class must be derived from Skill. An object of this class will be created and returned by the createSkill() callback. |
kName | A string literal containing the name of the skill, in UTF-8 encoding. This name will be returned by the name() callback. |
kUuid | A UUID literal containing the UUID of the skill. This UUID will be returned by the uuid() callback. |
ElementClasses... | All the element classes the skill provides. The classes must provide a static member function named instance() that returns a non-const reference to a global instance of the class, as demonstated by Element::ConcreteClass::instance(). The skill class will register all the instances returned by ElementClasses::instance()... in the registerElements() callback(). |
|
finalprivatevirtual |
Virtual override for Class::name()
This function returns the kName template parameter.
Implements xentara::skill::Skill::Class.
|
finalprivatevirtual |
Virtual override for Class::registerElements()
This function registers one class from each of the ElementClasses template parameters.
Implements xentara::skill::Skill::Class.
|
finalprivatevirtual |
Virtual override for Class::uuid()
This function returns the kUuid template parameter.
Implements xentara::skill::Skill::Class.