R-Type  2
Doom but in better
Loading...
Searching...
No Matches
WeaponSystem.hpp
Go to the documentation of this file.
1#pragma once
2
3#include "Registry.hpp"
4#include "Weapon.hpp"
5#include "Position.hpp"
6#include "Type.hpp"
7
21
28void make_shot(Registry &r, std::size_t id);
Registry * r
Definition Tests.cpp:4
void weapon_system(Registry &r, ComponentContainer< Weapon > &weapons, ComponentContainer< Position > &positions, ComponentContainer< Type > &types)
Handles the firing of weapons and updates their states.
void make_shot(Registry &r, std::size_t id)
Changes the state of the weapon.
Manages a collection of components associated with entities in an ECS (Entity-Component-System) archi...
Manages entities and their associated components, enabling the creation, deletion,...
Definition Registry.hpp:23