wren
Vulkan-based game engine
Loading...
Searching...
No Matches
wren::scene::Entity Class Reference

#include <entity.hpp>

Public Member Functions

 Entity (flecs::entity entity, const std::shared_ptr< Scene > &scene)
 
template<typename T >
auto has_component () const -> bool
 
template<typename T >
auto get_component () -> T &
 
template<typename T , typename... Args>
void add_component (Args &&... args)
 

Private Attributes

flecs::entity entity_
 
std::shared_ptr< Scenescene_
 

Constructor & Destructor Documentation

◆ Entity()

wren::scene::Entity::Entity ( flecs::entity entity,
const std::shared_ptr< Scene > & scene )
inline

Member Function Documentation

◆ add_component()

template<typename T , typename... Args>
void wren::scene::Entity::add_component ( Args &&... args)

◆ get_component()

template<typename T >
auto wren::scene::Entity::get_component ( ) -> T&

◆ has_component()

template<typename T >
auto wren::scene::Entity::has_component ( ) const -> bool

Member Data Documentation

◆ entity_

flecs::entity wren::scene::Entity::entity_
private

◆ scene_

std::shared_ptr<Scene> wren::scene::Entity::scene_
private

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