R-Type  2
Doom but in better
Loading...
Searching...
No Matches
transposer.hpp
Go to the documentation of this file.
1/*
2** EPITECH PROJECT, 2024
3** rtype (Workspace)
4** File description:
5** transposer.hpp
6*/
7
8#pragma once
9#include <cstdint>
10#include <vector>
11#include <unordered_map>
17
18namespace GUI
19{
20 namespace ECS
21 {
22 namespace GameComponents
23 {
24 class ECSCapsule {
25 public:
26 ECSCapsule(std::unordered_map<std::uint32_t, EntityType> entities)
27 {
28 // Your way of storing the available entities (below is just an example)
29 _entities = entities;
30 };
31 void userEvents(std::vector<EntityActions_t>) {};
32 std::vector<ECSPackage_t> tick(std::uint32_t elapsedTime)
33 {
34 std::vector<ECSPackage_t> response;
35 return response;
36 };
37 private:
38 std::unordered_map<std::uint32_t, EntityType> _entities;
39 };
40 }
41 }
42}
ECSCapsule(std::unordered_map< std::uint32_t, EntityType > entities)
std::vector< ECSPackage_t > tick(std::uint32_t elapsedTime)
void userEvents(std::vector< EntityActions_t >)