mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-24 06:27:24 +00:00
22 lines
415 B
C
22 lines
415 B
C
|
#ifndef __ISERVERS__H__
|
||
|
#define __ISERVERS__H__
|
||
|
|
||
|
#include <cstdint>
|
||
|
#include <optional>
|
||
|
|
||
|
class IServers {
|
||
|
public:
|
||
|
struct MasterInfo {
|
||
|
std::string ip;
|
||
|
uint32_t port{};
|
||
|
};
|
||
|
|
||
|
// Set the master server ip and port.
|
||
|
virtual void SetMasterIp(const std::string_view ip, const uint32_t port) = 0;
|
||
|
|
||
|
// Get the master server info.
|
||
|
virtual std::optional<MasterInfo> GetMasterInfo() = 0;
|
||
|
};
|
||
|
|
||
|
#endif //!__ISERVERS__H__
|