R-Type
Distributed multiplayer game engine in C++
Loading...
Searching...
No Matches
IServerLoop.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** IServerLoop.hpp
6*/
7
8#pragma once
9
10#include <memory>
11
12namespace server {
13
21 public:
22 virtual ~IServerLoop() = default;
23
27 virtual void start() = 0;
28
32 virtual void stop() = 0;
33
38 virtual bool isRunning() const = 0;
39 };
40
41} // namespace server
Interface for the main server loop.
virtual void stop()=0
Stop the server loop.
virtual ~IServerLoop()=default
virtual bool isRunning() const =0
Check if the server loop is running.
virtual void start()=0
Start the server loop.