Incorporate the systems registry to make it easier to add/remove systems.

This commit is contained in:
Zed A. Shaw 2026-05-25 12:00:25 -04:00
parent 54d0a41c52
commit 3d8572117c
5 changed files with 110 additions and 13 deletions

View file

@ -682,3 +682,18 @@ void System::spawn_attack(World& world, int attack_id, DinkyECS::Entity enemy) {
drop_item(effect_id);
}
void System::init(Registry& reg) {
reg.addRender(System::clear_attack);
reg.addUseItem(System::use_item);
reg.addMoving(System::move_player);
reg.addCombat(System::combat);
reg.addPickup(System::pickup);
reg.addUpdate(System::generate_paths);
reg.addUpdate(System::enemy_ai_initialize);
reg.addUpdate(System::enemy_pathing);
reg.addUpdate(System::motion);
reg.addUpdate(System::collision);
reg.addUpdate(System::lighting);
reg.addUpdate(System::death);
}