iw4x-client/src/Components/Modules/Weapon.hpp

28 lines
604 B
C++
Raw Normal View History

2017-01-20 08:36:52 -05:00
#pragma once
// Increase the weapon limit
// Was 1200 before
#define WEAPON_LIMIT 2400
#define MAX_CONFIGSTRINGS (4139 - 1200 + WEAPON_LIMIT + 1)
2017-01-19 16:23:59 -05:00
namespace Components
{
class Weapon : public Component
{
public:
Weapon();
#if defined(DEBUG) || defined(FORCE_UNIT_TESTS)
2017-01-20 08:36:52 -05:00
const char* getName() override { return "Weapon"; };
2017-01-19 16:23:59 -05:00
#endif
private:
static Game::XAssetHeader WeaponFileLoad(Game::XAssetType type, std::string filename);
static void PatchLimit();
static void PatchConfigStrings();
static const char* GetWeaponConfigString(int index);
static void SaveRegisteredWeapons();
2017-01-19 16:23:59 -05:00
};
}