Chira Engine
A customizable MIT-licensed game engine.
chira::Scene Class Reference

Public Member Functions

EntityaddEntity ()
 
EntityaddEntity (const std::string &name)
 
EntityaddEntity (uuids::uuid uuid)
 
EntityaddEntity (uuids::uuid uuid, const std::string &name)
 
EntitygetEntity (uuids::uuid entityID)
 
template<typename... T>
auto getEntities () const
 
template<typename... T>
auto getEntities (auto &&exclude) const
 
const auto & getEntities () const
 
bool hasEntity (uuids::uuid entityID)
 
void removeEntity (uuids::uuid entityID)
 
template<typename T , typename... Args>
T & addComponent (Args &&...args)
 
template<typename T >
void addTagComponent ()
 
template<typename T >
T & getComponent ()
 
template<typename T >
const T & getComponent () const
 
template<typename T >
T * tryGetComponent ()
 
template<typename T >
const T * tryGetComponent () const
 
template<typename T >
bool hasComponent () const
 
template<typename T >
void tryRemoveComponent ()
 
template<typename T >
void removeComponent ()
 
CameraComponentgetCamera ()
 
void setupForRender (glm::vec2i size)
 
entt::registry & getRegistry ()
 
const entt::registry & getRegistry () const
 
std::string getName () const
 
uuids::uuid getUUID () const
 
entt::entity getRawHandle () const
 
bool operator== (const Scene &other) const
 
bool operator!= (const Scene &other) const
 

Protected Member Functions

 Scene (const std::string &name)
 

Friends

class Viewport
 

Detailed Description

Definition at line 16 of file Scene.h.


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