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

45 lines
1.4 KiB
C++
Raw Normal View History

2016-09-20 16:00:02 -04:00
#define VERSION_ALPHA2 316
#define VERSION_ALPHA3 318//319
2016-09-18 09:10:23 -04:00
namespace Components
{
class Zones : public Component
{
public:
Zones();
~Zones();
#if defined(DEBUG) || defined(FORCE_UNIT_TESTS)
const char* GetName() { return "Zones"; };
#endif
static void InstallPatches(int version);
2016-09-19 16:52:00 -04:00
//private:
2016-09-18 09:10:23 -04:00
static int ZoneVersion;
static Utils::Hook LoadFxElemDefHook;
static Utils::Hook LoadFxElemDefArrayHook;
static Utils::Hook LoadXModelLodInfoHook;
2016-09-21 17:19:16 -04:00
static Utils::Hook LoadXModelHook;
static Utils::Hook LoadXSurfaceArrayHook;
static Utils::Hook LoadGameWorldSpHook;
static Utils::Hook LoadPathDataHook;
static Utils::Hook LoadVehicleDefHook;
static Utils::Hook Loadsnd_alias_tArrayHook;
static Utils::Hook LoadLoadedSoundHook;
static void LoadFxElemDefArrayStub(bool atStreamStart);
static bool LoadFxElemDefStub(bool atStreamStart, Game::FxElemDef* fxElem, int size);
static void LoadXModelLodInfo(int i);
static void LoadXModelLodInfoStub();
2016-09-21 17:19:16 -04:00
static bool LoadXModel(bool atStreamStart, char* xmodel, int size);
static bool LoadXSurfaceArray(bool atStreamStart, char* buffer, int size);
static bool LoadGameWorldSp(bool atStreamStart, char* buffer);
static bool LoadVehicleDef(bool atStreamStart, char* buffer);
static bool Loadsnd_alias_tArray(bool atStreamStart, char* buffer, int len);
static bool LoadLoadedSound(bool atStreamStart, char* buffer);
2016-09-18 09:10:23 -04:00
};
}