iw4x-client/src/Components/Modules/Stats.hpp
Edo e49194ff65
Feature/set get stat (#485)
* [Script]: GetStat & SetStat from CoD4(x)

* [Stats] Remove limitation

* [Bullet] Clean this up
2022-09-13 20:39:45 +02:00

23 lines
453 B
C++

#pragma once
namespace Components
{
class Stats : public Component
{
public:
Stats();
static bool IsMaxLevel();
private:
static void UpdateClasses([[maybe_unused]] const UIScript::Token& token, [[maybe_unused]] const Game::uiInfo_s* info);
static void SendStats();
static int SaveStats(char* dest, const char* folder, const char* buffer, size_t length);
static std::int64_t* GetStatsID();
static void AddScriptFunctions();
};
}