I think I've got my head around what ECS does and am slowly reshaping the engine to use it better.
This commit is contained in:
parent
da04c5ec54
commit
e42647d727
5 changed files with 93 additions and 76 deletions
12
systems.hpp
Normal file
12
systems.hpp
Normal file
|
@ -0,0 +1,12 @@
|
|||
#pragma once
|
||||
#include "dinkyecs.hpp"
|
||||
#include "map.hpp"
|
||||
#include "components.hpp"
|
||||
#include <ftxui/dom/canvas.hpp>
|
||||
|
||||
namespace System {
|
||||
void motion(DinkyECS::World &world, Map &game_map);
|
||||
void combat(DinkyECS::World &world, Player &player);
|
||||
void draw_entities(DinkyECS::World &world, ftxui::Canvas &canvas);
|
||||
void enemy_pathing(DinkyECS::World &world, Map &game_map, Player &player);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue