Skip to content

bsy6766/ECS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ECS

Simple ECS implementation with C++

Manager

Manager class is the class that manages entire ECS.
There is only one manager class (singleton) and it can create Entity, EntityPool, Component and System.

Entity

Entity is just a pack of numbers.
Entity itself is represented with id, an unsigned integer number.
Entity does not hold any Component, but it knows where Components exist by storing Component id.

EntityPool

EntityPool is a pool where entities are stored.

Component

Component is an object that holds data.

System

System is an object that has logic.

Examples

There are some unittests in main.cpp to see how it works. Also header is fully commneted.

Releases

No releases published

Packages

No packages published

Languages