mirror of
https://github.com/Jous99/F4MP.git
synced 2026-01-12 23:20:53 +01:00
18 lines
326 B
C
18 lines
326 B
C
|
|
#pragma once
|
||
|
|
|
||
|
|
class IGameServerInstance
|
||
|
|
{
|
||
|
|
public:
|
||
|
|
virtual ~IGameServerInstance() = default;
|
||
|
|
|
||
|
|
// lifetime control
|
||
|
|
virtual bool Initialize() = 0;
|
||
|
|
virtual void Shutdown() = 0;
|
||
|
|
|
||
|
|
virtual bool IsListening() = 0;
|
||
|
|
virtual bool IsRunning() = 0;
|
||
|
|
|
||
|
|
// update the server logic
|
||
|
|
virtual void Update() = 0;
|
||
|
|
};
|