R-Type
Distributed multiplayer game engine in C++
Loading...
Searching...
No Matches
ISessionManager.hpp
Go to the documentation of this file.
1/*
2** EPITECH PROJECT, 2025
3** Created by hugo on 06/12/2025
4** File description:
5** ISessionManager.hpp
6*/
7
8#pragma once
9
10#include <memory>
11#include <string>
13
14namespace server {
15
17 public:
18 virtual ~ISessionManager() = default;
19
25 virtual std::shared_ptr<Session> createSession(const std::string &id) = 0;
26
32 virtual std::shared_ptr<Session> getSession(const std::string &id) = 0;
33
38 virtual void removeSession(const std::string &id) = 0;
39 };
40
41} // namespace server
virtual ~ISessionManager()=default
virtual void removeSession(const std::string &id)=0
Remove session by ID.
virtual std::shared_ptr< Session > getSession(const std::string &id)=0
Get session by ID.
virtual std::shared_ptr< Session > createSession(const std::string &id)=0
Create a new session.