Flecs v3.1
A fast entity component system (ECS) for C & C++
Loading...
Searching...
No Matches
impl.hpp
Go to the documentation of this file.
1
6#pragma once
7
8#include "builder.hpp"
9
10namespace flecs
11{
12
13// Mixin implementation
14
15inline flecs::event_builder world::event(flecs::entity_t evt) const {
16 return flecs::event_builder(m_world, evt);
17}
18
19template <typename E>
21 return flecs::event_builder_typed<E>(m_world, _::cpp_type<E>().id(m_world));
22}
23
24} // namespace flecs
flecs::event_builder_typed< E > event() const
Create a new event.
Builder base class.