Shkyera Engine
Easy to use, game engine for Python
Loading...
Searching...
No Matches
shkyera::ObjectSelectionSystem Class Reference

#include <ObjectSelectionSystem.hpp>

Inheritance diagram for shkyera::ObjectSelectionSystem:
[legend]

Public Member Functions

 ObjectSelectionSystem (std::shared_ptr< Registry > registry)
 
void update ()
 
- Public Member Functions inherited from shkyera::RegistryViewer
template<typename... Resources>
 RegistryViewer (std::shared_ptr< Registry > registry, ReadAccess< Resources... > read)
 
template<typename... Resources>
 RegistryViewer (std::shared_ptr< Registry > registry, WriteAccess< Resources... > read)
 
template<typename... ReadResources, typename... WriteResources>
 RegistryViewer (std::shared_ptr< Registry > registry, ReadAccess< ReadResources... > read, WriteAccess< WriteResources... > write)
 
const Policy & getPolicy () const
 
template<typename Component , typename... Args>
Component & add (Entity entity, Args &&... args)
 
template<typename Component >
void clear ()
 
template<typename Component >
bool has (Entity entity) const
 
template<typename Component >
Component & write (Entity entity)
 
template<typename Component >
const Component & read (Entity entity) const
 
template<NonSingletonComponentType Component>
const auto & read () const
 
template<SingletonComponentType Component>
const auto * read () const
 
template<NonSingletonComponentType Component>
auto & write ()
 
template<SingletonComponentType Component>
auto * write ()
 
template<SingletonComponentType Component>
std::optional< Entity > getEntity () const
 
const std::optional< Entity > getParent (Entity entity) const
 
template<typename Component >
SparseSet< Component > & writeAll ()
 
template<typename Component >
const SparseSet< Component > & readAll () const
 

Private Member Functions

std::optional< Entity > getHoveredObject ()
 

Private Attributes

std::optional< Entity > _objectSelectedOnMouseDown
 

Constructor & Destructor Documentation

◆ ObjectSelectionSystem()

shkyera::ObjectSelectionSystem::ObjectSelectionSystem ( std::shared_ptr< Registry >  registry)

Member Function Documentation

◆ getHoveredObject()

std::optional< Entity > shkyera::ObjectSelectionSystem::getHoveredObject ( )
private

◆ update()

void shkyera::ObjectSelectionSystem::update ( )

Member Data Documentation

◆ _objectSelectedOnMouseDown

std::optional<Entity> shkyera::ObjectSelectionSystem::_objectSelectedOnMouseDown
private

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