Loading...
Searching...
No Matches
EntitiesAndComponents.h
Go to the documentation of this file.
1//
2// Created by Dave Smith on 3/11/25.
3//
4
5#ifndef ENTITIESANDCOMPONENTS_H
6#define ENTITIESANDCOMPONENTS_H
7
8#pragma once
9
10namespace ml
11{
12 // Define an Entity type (just an ID)
13 using Entity = int;
14
15 // Component store only data
21 {
22 float x, y;
23 };
24
26 {
27 float vx, vy;
28 };
29
31 {
32 int health;
33 };
34
36 {
37 float radius;
38 };
39}
40#endif // ENTITIESANDCOMPONENTS_H
Definition Component.h:18
int Entity
Definition ECSManager.h:16