My Project
Client
Source
Component
Click.hpp
1
/*
2
** EPITECH PROJECT, 2022
3
** B-CPP-500-PAR-5-1-rtype-martin.vanaud
4
** File description:
5
** Click
6
*/
7
8
#ifndef CLICK_HPP_
9
#define CLICK_HPP_
10
11
#include "Registry.hpp"
12
16
namespace
component
{
20
struct
cclick_t
{
21
bool
isPressed
;
22
std::function<void(
Registry
®istry)>
callBack
;
23
};
24
}
25
26
#endif
/* !CLICK_HPP_ */
component::cclick_t
Structure representing the click component to know if a entity is pressed and a call back to call whe...
Definition:
Click.hpp:20
component::cclick_t::isPressed
bool isPressed
Boolean to know if is pressed.
Definition:
Click.hpp:21
component
Namespace for all components.
Definition:
CDamage.hpp:14
Registry
Class that handle ECS.
Definition:
Registry.hpp:22
component::cclick_t::callBack
std::function< void(Registry ®istry)> callBack
Callback function.
Definition:
Click.hpp:22
Generated by
1.8.17