![]() |
R-Type
2
Doom but in better
|
#include "Systems.hpp"
#include "Registry.hpp"
#include "AISystem.hpp"
#include "CollisionSystem.hpp"
#include "LifetimeSystem.hpp"
#include "MovementSystem.hpp"
#include "SpawnSystem.hpp"
#include "WeaponSystem.hpp"
#include "EventSystem.hpp"
#include "WinSystem.hpp"
Go to the source code of this file.
Functions | |
void | setup_systems (Registry &r) |
Sets up all the necessary systems for the game. | |
void | setup_components (Registry &r) |
Registers components in the given registry. | |
void setup_components | ( | Registry & | r | ) |
Registers components in the given registry.
This function sets up the necessary components for the game by registering them with the provided Registry
instance. Each component type is registered to enable their management and usage in the game's entity-component-system (ECS) architecture.
r | Reference to the Registry instance where components will be registered. |
Definition at line 26 of file Systems.cpp.
void setup_systems | ( | Registry & | r | ) |
Sets up all the necessary systems for the game.
This function initializes and configures all the game systems that will run during the game's update loop. It registers systems for handling different components, such as AI, movement, collision detection, weapon management, and entity spawning. It prepares the game state for processing during each frame.
r | The Registry that contains all the game entities and their components, used to register systems and access components. |
Definition at line 13 of file Systems.cpp.