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 PolicygetPolicy () const
 
template<typename Component , typename... Args>
Componentadd (Entity entity, Args &&... args)
 
template<typename Component >
void clear ()
 
template<typename Component >
bool has (Entity entity) const
 
template<typename Component >
Componentwrite (Entity entity)
 
template<typename Component >
const Componentread (Entity entity) const
 
template<NonSingletonComponentType Component>
const autoread () const
 
template<SingletonComponentType Component>
const autoread () const
 
template<NonSingletonComponentType Component>
autowrite ()
 
template<SingletonComponentType Component>
autowrite ()
 
template<SingletonComponentType Component>
std::optional< EntitygetEntity () const
 
const std::optional< EntitygetParent (Entity entity) const
 
template<typename Component >
SparseSet< Component > & writeAll ()
 
template<typename Component >
const SparseSet< Component > & readAll () const
 

Private Member Functions

std::optional< EntitygetHoveredObject ()
 

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: