8#ifndef RTYPE_CLIENT_SCENES_LOGINSCENE_HPP_
9 #define RTYPE_CLIENT_SCENES_LOGINSCENE_HPP_
15 #include "Systems/NetworkSyncSystem.hpp"
18 #include <SFML/Graphics.hpp>
46 std::function<
void(
GameState)> changeState);
61 void onExit(
void)
override;
73 void update(
float dt)
override;
System to handle network-related operations on the client side.
Manages game settings and preferences.
Manages game translations for all UI elements.
Factory class for creating UI components in the ECS registry.
Interface for different scenes in the client application.
TranslationManager & _translationManager
Reference to the translation manager.
Settings & _settings
Reference to the application settings.
NetworkSyncSystem & _network
Reference to the client network.
ecs::Registry & _uiRegistry
Reference to the ECS registry.
void handleEvent(const sf::Event &event) override
Handle an incoming event.
void onEnter(void) override
Called when the scene is entered.
void onExit(void) override
Called when the scene is exited.
ChangeStateFn _changeState
Function to change the game state.
std::string _uiUsername
Username input from the UI.
void update(float dt) override
Update the scene state.
std::function< void(GameState)> ChangeStateFn
Type alias for a function that changes the game state.
std::string _uiPassword
Password input from the UI.
graphics::UiFactory & _uiFactory
UI Factory for creating UI components.