iw4x-client/src/Components/Modules/Dedicated.hpp
Edo 86b402a5a0
[Dvar]: Don't lookup dvar every time we need it (#677)
* [Dvar]: Don't lookup dvar every time we need it

* [Console]: Cleanup the code

* [Party]: Improve source code quality

* [Party]: Update
2022-12-31 15:03:33 +01:00

33 lines
686 B
C++

#pragma once
namespace Components
{
class Dedicated : public Component
{
public:
Dedicated();
static SteamID PlayerGuids[18][2];
static Dvar::Var SVLanOnly;
static Dvar::Var SVMOTD;
static Dvar::Var COMLogFilter;
static bool IsEnabled();
static bool IsRunning();
static void Heartbeat();
private:
static void InitDedicatedServer();
static void PostInitialization();
static void PostInitializationStub();
static void TransmitGuids();
static void TimeWrapStub(Game::errorParm_t code, const char* message);
static Game::dvar_t* Dvar_RegisterSVNetworkFps(const char* dvarName, int value, int min, int max, int flags, const char* description);
};
}