malena
Why malena
Quick start
Tutorials
API docs
GitHub
GitHub
Tutorials
Loading...
Searching...
No Matches
ECS
Core
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
12
#include "
EntitiesAndComponents.h
"
13
namespace
ml
14
{
15
// Entity is just an integer ID
16
using
Entity
= int;
17
22
class
ECSManager
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
EntitiesAndComponents.h
ml::ECSManager
ECSManager.
Definition
ECSManager.h:23
ml::ECSManager::positions
std::unordered_map< Entity, PositionComponent > positions
Definition
ECSManager.h:25
ml::ECSManager::healths
std::unordered_map< Entity, HealthComponent > healths
Definition
ECSManager.h:27
ml::ECSManager::velocities
std::unordered_map< Entity, VelocityComponent > velocities
Definition
ECSManager.h:26
ml::ECSManager::size
std::unordered_map< Entity, HealthComponent > size
Definition
ECSManager.h:28
ml
Definition
Component.h:18
ml::Entity
int Entity
Definition
ECSManager.h:16
Generated by
1.16.1