![]() |
MAGE
v0.171.0
Matthias Advanced Game Engine
|
#include <component.hpp>
Public Member Functions | |
virtual | ~Component () |
Component & | operator= (const Component &component) noexcept |
Component & | operator= (Component &&component) noexcept |
State | GetState () const noexcept |
void | SetState (State state) noexcept |
U64 | GetGuid () const noexcept |
bool | HasOwner () const noexcept |
ProxyPtr< Node > | GetOwner () noexcept |
ProxyPtr< const Node > | GetOwner () const noexcept |
Protected Member Functions | |
Component () noexcept | |
Component (const Component &component) noexcept | |
Component (Component &&component) noexcept | |
Private Member Functions | |
void | SetOwner (ProxyPtr< Node > owner) noexcept |
Private Attributes | |
State | m_state |
U64 | m_guid |
ProxyPtr< Node > | m_owner |
Friends | |
class | ComponentClient |
A class of components.
|
virtualdefault |
Destructs this component.
|
protectednoexcept |
Constructs a component.
|
protectednoexcept |
Constructs a component from the given component.
[in] | component | A reference to the component to copy. |
|
protecteddefaultnoexcept |
Constructs a component by moving the given component.
[in] | component | A reference to the component to move. |
|
noexcept |
Returns the guid of this component.
Returns the owner of this component.
Returns the owner of this component.
|
noexcept |
Returns the state of this component.
|
noexcept |
Checks whether this component has an owner.
true
if this component has an owner. false
otherwise. Copies the given component to this component.
[in] | component | A reference to the component to copy. |
Moves the given component to this component.
[in] | component | A reference to the component to move. |
Sets the owner of this component to the given owner.
[in] | owner | A pointer to the owner. |
|
noexcept |
Sets the state of this component to the given state.
[in] | state | The state. |
|
friend |
|
private |
The guid of this component.
|
private |
The state of this component.