GlPortal Class Reference
0.1.1
Source code documentation of the free and open 3D action puzzle game.
|
Base class to create entity components. More...
#include <external/RadixEngine/include/radix/component/Component.hpp>
Inherits Serializable.
Inherited by glPortal::Portal, glPortal::Screen, glPortal::Terminal, radix::Health, radix::LightSource, radix::MeshDrawable, radix::Player, radix::RigidBody, radix::SoundListener, radix::SoundSource, radix::Transform, radix::Trigger, and radix::ViewFrame.
Public Types | |
using | TypeId = ComponentTypeId |
Public Member Functions | |
Component (Entity &ent) noexcept | |
virtual const char * | getName () const =0 |
virtual TypeId | getTypeId () const =0 |
virtual | ~Component () |
Static Public Member Functions | |
template<typename T > | |
static TypeId | getTypeId () |
Gets a component's type ID. More... | |
Static Public Attributes | |
static constexpr TypeId | MaxId = 32 |
Protected Attributes | |
Entity & | entity |
Private Member Functions | |
Component (const Component &)=delete | |
Component & | operator= (const Component &)=delete |
Base class to create entity components.
|
privatedelete |
|
inlinenoexcept |
|
inlinevirtual |
|
pure virtual |
|
inlinestatic |
Gets a component's type ID.
T | Component type |
|
pure virtual |
|
protected |
|
static |