Helios Engine 0.1.0
A modular ECS based data-oriented C++23 game engine
 
Loading...
Searching...
No Matches
event.hpp File Reference
#include <helios/core_pch.hpp>
#include <ctti/name.hpp>
#include <ctti/type_id.hpp>
#include <concepts>
#include <cstddef>
#include <cstdint>
#include <string_view>

Go to the source code of this file.

Namespaces

namespace  helios
 
namespace  helios::ecs
 

Concepts

concept  helios::ecs::EventTrait
 Concept for valid event types.
 
concept  helios::ecs::EventWithNameTrait
 Concept for events with custom names.
 
concept  helios::ecs::EventWithClearPolicy
 Concept for events with custom clear policy.
 

Typedefs

using helios::ecs::EventTypeId = size_t
 Type ID for events.
 

Enumerations

enum class  helios::ecs::EventClearPolicy : uint8_t { helios::ecs::kAutomatic , helios::ecs::kManual }
 Policy for event clearing behavior. More...
 

Functions

template<EventTrait T>
constexpr EventTypeId helios::ecs::EventTypeIdOf () noexcept
 Gets type ID for an event type.
 
template<EventTrait T>
constexpr std::string_view helios::ecs::EventNameOf () noexcept
 Gets the name of an event.
 
template<EventTrait T>
constexpr EventClearPolicy helios::ecs::EventClearPolicyOf () noexcept
 Gets the clear policy of an event.