mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-01-22 04:37:02 +00:00
8abc545bd1
* add password hashing for master server * use define
23 lines
419 B
C++
23 lines
419 B
C++
#ifndef __ISERVERS__H__
|
|
#define __ISERVERS__H__
|
|
|
|
#include <cstdint>
|
|
#include <optional>
|
|
|
|
class IServers {
|
|
public:
|
|
struct MasterInfo {
|
|
std::string ip;
|
|
uint32_t port{};
|
|
std::string password{};
|
|
};
|
|
|
|
// Set the master server ip and port.
|
|
virtual void SetMasterInfo(const MasterInfo& info) = 0;
|
|
|
|
// Get the master server info.
|
|
virtual std::optional<MasterInfo> GetMasterInfo() = 0;
|
|
};
|
|
|
|
#endif //!__ISERVERS__H__
|