8#ifndef RTYPE_LOGIN_SYSTEM_HPP_
9 #define RTYPE_LOGIN_SYSTEM_HPP_
44 void update(
float dt)
override;
67 void sendLoginResponse(uint32_t sessionId,
bool success,
const std::string& username);
Interface for ECS systems.
Network packet implementation for R-Type protocol.
Abstract base class for all ECS systems.
Network packet with header and serializable body.
System to handle player login operations on the server side.
ServerNetwork & _network
Reference to the server network manager.
void sendRegisterResponse(uint32_t sessionId, bool success, const std::string &username)
Send a registration response to a client.
void sendLoginResponse(uint32_t sessionId, bool success, const std::string &username)
Send a login response to a client.
std::pair< bool, std::string > handleRegisterRequest(uint32_t sessionId, const net::Packet &packet)
Handle a registration request from a client.
void update(float dt) override
Update system logic for one frame.
std::tuple< bool, std::string, uint8_t > handleLoginRequest(uint32_t sessionId, const net::Packet &packet)
Handle a login request from a client.
ecs::Registry & _registry
Reference to the entity registry.
Implementation ASIO du serveur réseau (TCP + UDP)
File : GameManager.hpp License: MIT Author : Elias Josué HAJJAR LLAUQUEN elias-josue....