Files
AscEmu/src/logonserver/Server/Logon.h
2023-01-02 17:56:56 +02:00

44 lines
1.0 KiB
C++

/*
Copyright (c) 2014-2023 AscEmu Team <http://www.ascemu.org>
This file is released under the MIT license. See README-MIT for more information.
*/
#pragma once
#include "LogonConfig.h"
#include "PerformanceCounter.hpp"
class SERVER_DECL Logon
{
private:
Logon() = default;
~Logon() = default;
public:
static Logon& getInstance();
Logon(Logon&&) = delete;
Logon(Logon const&) = delete;
Logon& operator=(Logon&&) = delete;
Logon& operator=(Logon const&) = delete;
//////////////////////////////////////////////////////////////////////////////////////////
// LogonConfig
public:
LogonConfig settings;
void loadLogonConfigValues(bool reload = false);
//////////////////////////////////////////////////////////////////////////////////////////
// InfoCore
private:
Arcemu::PerformanceCounter perfcounter;
public:
float getCPUUsage();
float getRAMUsage();
};
#define sLogon Logon::getInstance()
#define logonConfig sLogon.settings