Vyroda
Game engine made by hand, with modern C++ and Vulkan.
Loading...
Searching...
No Matches
Vyroda::Component< Class > Class Template Reference

Public Types

using ComponentsType

Public Member Functions

 Component ()=default
template<typename T>
 Component (std::unique_ptr< T > impl)
 Component (Component &&) noexcept=default
Componentoperator= (Component &&) noexcept=default
 Component (const Component &)=delete
Componentoperator= (const Component &)=delete
IDType getID () const
IDType getOwner () const
template<typename T>
void init (std::unique_ptr< T > impl)
template<typename T>
T * has () const
void setOwner (IDType owner)
void operator() (AnimationInfo const &animation_info)
void done ()
void reset ()
void setAnimId (std::uint32_t id)

Protected Attributes

ComponentsType _component

Member Typedef Documentation

◆ ComponentsType

template<typename Class>
using Vyroda::Component< Class >::ComponentsType
Initial value:
std::variant<
std::unique_ptr<AnimationComponentConcept>,
std::unique_ptr<Mesh>>

Constructor & Destructor Documentation

◆ Component() [1/4]

template<typename Class>
Vyroda::Component< Class >::Component ( )
default
Here is the caller graph for this function:

◆ Component() [2/4]

template<typename Class>
template<typename T>
Vyroda::Component< Class >::Component ( std::unique_ptr< T > impl)
inline
Here is the call graph for this function:

◆ Component() [3/4]

template<typename Class>
Vyroda::Component< Class >::Component ( Component< Class > && )
defaultnoexcept
Here is the call graph for this function:

◆ Component() [4/4]

template<typename Class>
Vyroda::Component< Class >::Component ( const Component< Class > & )
delete
Here is the call graph for this function:

Member Function Documentation

◆ done()

template<typename Class>
void Vyroda::Component< Class >::done ( )
inline

◆ getID()

template<typename Class>
IDType Vyroda::Component< Class >::getID ( ) const
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getOwner()

template<typename Class>
IDType Vyroda::Component< Class >::getOwner ( ) const
inline

◆ has()

template<typename Class>
template<typename T>
T * Vyroda::Component< Class >::has ( ) const
inline

◆ init()

template<typename Class>
template<typename T>
void Vyroda::Component< Class >::init ( std::unique_ptr< T > impl)
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator()()

template<typename Class>
void Vyroda::Component< Class >::operator() ( AnimationInfo const & animation_info)
inline

◆ operator=() [1/2]

template<typename Class>
Component & Vyroda::Component< Class >::operator= ( Component< Class > && )
defaultnoexcept
Here is the call graph for this function:

◆ operator=() [2/2]

template<typename Class>
Component & Vyroda::Component< Class >::operator= ( const Component< Class > & )
delete
Here is the call graph for this function:

◆ reset()

template<typename Class>
void Vyroda::Component< Class >::reset ( )
inline

◆ setAnimId()

template<typename Class>
void Vyroda::Component< Class >::setAnimId ( std::uint32_t id)
inline

◆ setOwner()

template<typename Class>
void Vyroda::Component< Class >::setOwner ( IDType owner)
inline

Member Data Documentation

◆ _component

template<typename Class>
ComponentsType Vyroda::Component< Class >::_component
protected

The documentation for this class was generated from the following file: