viotecs
1.1.0
Loading...
Searching...
No Matches
system.hpp
Go to the documentation of this file.
1
// SPDX-License-Identifier: MIT
2
// Author: Giovanni Santini
3
// Mail: giovanni.santini@proton.me
4
// Github: @San7o
5
6
#pragma once
7
8
#include <
viotecs/types.hpp
>
9
10
#include <tuple>
11
#include <typeindex>
12
#include <vector>
13
14
namespace
viotecs
15
{
16
37
template
<
typename
... T>
class
System
38
{
39
public
:
40
using
Dependencies
= std::tuple<T...>;
41
virtual
void
run
([[maybe_unused]]std::vector<EntityId> e)
const
{};
42
};
43
44
52
template
<
typename
... T>
class
RegisteredSystems
53
{
54
public
:
55
using
Systems
= std::tuple<T...>;
56
};
57
58
}
// namespace viotecs
viotecs::RegisteredSystems
Registered Systems Type.
Definition
system.hpp:53
viotecs::RegisteredSystems::Systems
std::tuple< T... > Systems
Definition
system.hpp:55
viotecs::System
System type.
Definition
system.hpp:38
viotecs::System::Dependencies
std::tuple< T... > Dependencies
Definition
system.hpp:40
viotecs::System::run
virtual void run(std::vector< EntityId > e) const
Definition
system.hpp:41
viotecs
Definition
component.hpp:11
types.hpp
include
viotecs
system.hpp
Generated by
1.9.8