Loading...
Searching...
No Matches
ECSManager.h
Go to the documentation of this file.
1//
2// Created by Dave Smith on 3/11/25.
3//
4
5#ifndef ECSMANAGER_H
6#define ECSMANAGER_H
7
8#pragma once
9
10#include <unordered_map>
11
13namespace ml
14{
15 // Entity is just an integer ID
16 using Entity = int;
17
23 {
24 public:
25 std::unordered_map<Entity, PositionComponent> positions;
26 std::unordered_map<Entity, VelocityComponent> velocities;
27 std::unordered_map<Entity, HealthComponent> healths;
28 std::unordered_map<Entity, HealthComponent> size;
29 };
30}
31
32#endif // ECSMANAGER_H
ECSManager.
Definition ECSManager.h:23
std::unordered_map< Entity, PositionComponent > positions
Definition ECSManager.h:25
std::unordered_map< Entity, HealthComponent > healths
Definition ECSManager.h:27
std::unordered_map< Entity, VelocityComponent > velocities
Definition ECSManager.h:26
std::unordered_map< Entity, HealthComponent > size
Definition ECSManager.h:28
Definition Component.h:18
int Entity
Definition ECSManager.h:16