R-Type
Public Member Functions | Public Attributes | List of all members
GameEngine::CollisionComponent Struct Reference

#include <CollisionComponent.hpp>

Public Member Functions

template<typename Function , class... Components>
void addAction (Registry &registry, const Function &function)
 

Public Attributes

Rectf collider
 
std::vector< std::function< void(const std::size_t &entityId)> > actions
 
std::size_t layer
 
bool isActive = true
 

Member Function Documentation

◆ addAction()

template<typename Function , class... Components>
void GameEngine::CollisionComponent::addAction ( Registry registry,
const Function &  function 
)
inline

Member Data Documentation

◆ actions

std::vector<std::function<void(const std::size_t &entityId)> > GameEngine::CollisionComponent::actions

◆ collider

Rectf GameEngine::CollisionComponent::collider

◆ isActive

bool GameEngine::CollisionComponent::isActive = true

◆ layer

std::size_t GameEngine::CollisionComponent::layer

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