|
R-Type
Distributed multiplayer game engine in C++
|
System managing map state, scrolling, and transitions. More...
#include <MapSystem.hpp>


Public Member Functions | |
| MapSystem ()=default | |
| Default constructor. | |
| ~MapSystem () override=default | |
| Default destructor. | |
| void | update (Registry ®istry, float deltaTime) override |
| Updates map state and handles scrolling. | |
| ComponentMask | getComponentMask () const override |
| Gets the component mask for this system. | |
Public Member Functions inherited from ecs::ISystem | |
| virtual | ~ISystem ()=default |
| Virtual destructor. | |
Private Member Functions | |
| void | _applyScrolling (Registry ®istry, float scrollSpeed, float deltaTime) |
| Apply scrolling to entities (moves them left based on map speed). | |
System managing map state, scrolling, and transitions.
Handles:
Works with entities that have MapData component.
Definition at line 28 of file MapSystem.hpp.
|
default |
Default constructor.
|
overridedefault |
Default destructor.
|
private |
Apply scrolling to entities (moves them left based on map speed).
| registry | Reference to the ECS registry |
| scrollSpeed | Horizontal scroll speed in pixels/second |
| deltaTime | Time elapsed since last frame |
Definition at line 58 of file MapSystem.cpp.
References ecs::Registry::getComponent(), ecs::Registry::getEntitiesWithMask(), ecs::Transform::getPosition(), and ecs::Registry::hasComponent().
Referenced by update().

|
overridevirtual |
Gets the component mask for this system.
Implements ecs::ISystem.
Definition at line 78 of file MapSystem.cpp.
Referenced by update().
|
overridevirtual |
Updates map state and handles scrolling.
| registry | Reference to the ECS registry |
| deltaTime | Time elapsed since last frame (in seconds) |
Implements ecs::ISystem.
Definition at line 14 of file MapSystem.cpp.
References _applyScrolling(), ecs::Registry::getComponent(), getComponentMask(), ecs::Registry::getEntitiesWithMask(), LOG_INFO, and ecs::MapData::updateElapsedTime().
