Raito 0.1
Loading...
Searching...
No Matches
Raito::ECS::Scene Class Reference

Scene class. More...

#include <Scene.h>

Public Member Functions

 Scene ()=default
 Default constructor.
 
 ~Scene ()=default
 Default destructor.
 
Entity CreateEntity (const std::string &name)
 
void DestroyEntity (Entity entity)
 
Entity DuplicateEntity (Entity entity)
 
Entity FindEntityByName (std::string_view name)
 
Entity GetEntityByUUID (UUID uuid)
 
template<typename... Components>
auto GetAllEntitiesWith () const
 

Friends

class Entity
 
class Editor::Hierarchy
 

Detailed Description

Scene class.

Constructor & Destructor Documentation

◆ Scene()

Raito::ECS::Scene::Scene ( )
default

Default constructor.

◆ ~Scene()

Raito::ECS::Scene::~Scene ( )
default

Default destructor.

Member Function Documentation

◆ CreateEntity()

Entity Raito::ECS::Scene::CreateEntity ( const std::string & name)

Entity creation function

Parameters
nameName of the created entity
Returns
The created entity

◆ DestroyEntity()

void Raito::ECS::Scene::DestroyEntity ( Entity entity)

Entity destruction function

Parameters
entityThe entity being destroyed

◆ DuplicateEntity()

Entity Raito::ECS::Scene::DuplicateEntity ( Entity entity)

Duplicate entity function

Parameters
entityThe entity to duplicate
Returns
The duplicated entity

◆ FindEntityByName()

Entity Raito::ECS::Scene::FindEntityByName ( std::string_view name)

◆ GetAllEntitiesWith()

template<typename... Components>
auto Raito::ECS::Scene::GetAllEntitiesWith ( ) const
inline

Templated function for all the entities with the components given

Returns
A view of all the entities with the given components

◆ GetEntityByUUID()

Entity Raito::ECS::Scene::GetEntityByUUID ( UUID uuid)

Friends And Related Symbol Documentation

◆ Editor::Hierarchy

friend class Editor::Hierarchy
friend

◆ Entity

friend class Entity
friend

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