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:
Zed A. Shaw 2024-10-16 20:31:00 -04:00
parent da04c5ec54
commit e42647d727
5 changed files with 93 additions and 76 deletions

12
systems.hpp Normal file
View 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);
}