NoJobEngine 2.0.7
Loading...
Searching...
No Matches
NoJob::Entity Class Reference

#include <Entity.h>

Public Member Functions

 Entity ()=default
 Entity (std::uint32_t handle, Scene *scene)
template<typename T, typename... Args>
T & AddComponent (Args &&... args)
template<typename T>
void RemoveComponent ()
template<typename T>
T & GetComponent ()
template<typename T>
const T & GetComponent () const
template<typename T>
bool HasComponent () const
 operator bool () const
std::uint32_t GetHandle () const
Scene * GetScene () const
bool operator== (const Entity &other) const
bool operator!= (const Entity &other) const

Friends

class Scene
class PrefabSerializer

Detailed Description

Definition at line 15 of file Entity.h.

Constructor & Destructor Documentation

◆ Entity() [1/2]

◆ Entity() [2/2]

NoJob::Entity::Entity ( std::uint32_t handle,
Scene * scene )
inline

Definition at line 19 of file Entity.h.

References Scene.

Member Function Documentation

◆ AddComponent()

template<typename T, typename... Args>
T & NoJob::Entity::AddComponent ( Args &&... args)

◆ GetComponent() [1/2]

◆ GetComponent() [2/2]

template<typename T>
const T & NoJob::Entity::GetComponent ( ) const

Definition at line 858 of file Scene.h.

◆ GetHandle()

std::uint32_t NoJob::Entity::GetHandle ( ) const
inline

Definition at line 41 of file Entity.h.

Referenced by NoJob::SceneSerializer::Load().

◆ GetScene()

Scene * NoJob::Entity::GetScene ( ) const
inline

◆ HasComponent()

◆ operator bool()

NoJob::Entity::operator bool ( ) const
inlineexplicit

Definition at line 828 of file Scene.h.

◆ operator!=()

bool NoJob::Entity::operator!= ( const Entity & other) const
inline

Definition at line 49 of file Entity.h.

References Entity().

◆ operator==()

bool NoJob::Entity::operator== ( const Entity & other) const
inline

Definition at line 44 of file Entity.h.

References Entity().

◆ RemoveComponent()

template<typename T>
void NoJob::Entity::RemoveComponent ( )

Definition at line 844 of file Scene.h.

◆ PrefabSerializer

friend class PrefabSerializer
friend

Definition at line 59 of file Entity.h.

References PrefabSerializer.

Referenced by PrefabSerializer.

◆ Scene

friend class Scene
friend

Definition at line 58 of file Entity.h.

References Scene.

Referenced by Entity(), GetScene(), and Scene.


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