Air-Trap
1.0.0
A multiplayer R-Type clone game engine built with C++23 and ECS architecture
Loading...
Searching...
No Matches
HomingSystem.hpp
Go to the documentation of this file.
1
6
#pragma once
7
8
#include "
RType/ECS/ISystem.hpp
"
9
#include "
RType/ECS/Registry.hpp
"
10
11
#include "
RType/ECS/Components/Transform.hpp
"
12
#include "
RType/ECS/Components/Velocity.hpp
"
13
#include "
RType/ECS/Components/EntityType.hpp
"
14
#include "
RType/ECS/Components/RoomId.hpp
"
15
#include "
RType/ECS/Components/Health.hpp
"
16
#include "
RType/ECS/Components/Homing.hpp
"
17
18
namespace
rtp::server
{
19
20
class
HomingSystem
:
public
ecs::ISystem
{
21
public
:
22
explicit
HomingSystem
(
ecs::Registry
®istry);
23
void
update
(
float
dt)
override
;
24
25
private
:
26
ecs::Registry
&
_registry
;
27
};
28
29
}
// namespace rtp::server
EntityType.hpp
Health.hpp
Homing.hpp
ISystem.hpp
Interface for ECS systems.
Registry.hpp
RoomId.hpp
Transform.hpp
Velocity.hpp
rtp::ecs::ISystem
Abstract base class for all ECS systems.
Definition
ISystem.hpp:57
rtp::ecs::Registry
Definition
Registry.hpp:45
rtp::server::HomingSystem
Definition
HomingSystem.hpp:20
rtp::server::HomingSystem::update
void update(float dt) override
Update system logic for one frame.
Definition
HomingSystem.cpp:17
rtp::server::HomingSystem::_registry
ecs::Registry & _registry
Definition
HomingSystem.hpp:26
rtp::server
File : GameManager.hpp License: MIT Author : Elias Josué HAJJAR LLAUQUEN elias-josue....
server
include
Systems
HomingSystem.hpp
Generated by
1.9.8