![]() |
Divide Framework 0.1
A free and open-source 3D Framework under heavy development
|
#include <UnitComponent.h>
Public Member Functions | |
UnitComponent (SceneGraphNode *parentSGN, PlatformContext &context) | |
bool | setUnit (const Unit_ptr &unit) |
template<typename T = Unit> requires std::is_base_of_v<Unit, T> | |
std::shared_ptr< T > | getUnit () const noexcept |
Private Types | |
using | Parent = BaseComponentType< UnitComponent, ComponentType::UNIT > |
Private Attributes | |
Unit_ptr | _unit |
Friends | |
class | UnitSystem |
Definition at line 41 of file UnitComponent.h.
|
private |
Definition at line 41 of file UnitComponent.h.
Divide::UnitComponent::UnitComponent | ( | SceneGraphNode * | parentSGN, |
PlatformContext & | context | ||
) |
Definition at line 9 of file UnitComponent.cpp.
|
inlinenoexcept |
Definition at line 49 of file UnitComponent.h.
bool Divide::UnitComponent::setUnit | ( | const Unit_ptr & | unit | ) |
Definition at line 15 of file UnitComponent.cpp.
|
friend |
Definition at line 41 of file UnitComponent.h.
|
private |
Definition at line 55 of file UnitComponent.h.