2019-05-15 14:52:37 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "2dEffect.h"
|
|
|
|
#include "SimpleModelInfo.h"
|
|
|
|
#include "TimeModelInfo.h"
|
2020-05-10 08:04:20 +00:00
|
|
|
#include "WeaponModelInfo.h"
|
2019-05-15 14:52:37 +00:00
|
|
|
#include "ClumpModelInfo.h"
|
|
|
|
#include "PedModelInfo.h"
|
|
|
|
#include "VehicleModelInfo.h"
|
2021-01-16 13:44:59 +00:00
|
|
|
#include "templates.h"
|
2019-05-15 14:52:37 +00:00
|
|
|
|
|
|
|
class CModelInfo
|
|
|
|
{
|
2020-04-17 05:54:14 +00:00
|
|
|
static CBaseModelInfo *ms_modelInfoPtrs[MODELINFOSIZE];
|
2019-05-15 14:52:37 +00:00
|
|
|
static CStore<CSimpleModelInfo, SIMPLEMODELSIZE> ms_simpleModelStore;
|
|
|
|
static CStore<CTimeModelInfo, TIMEMODELSIZE> ms_timeModelStore;
|
2020-05-10 08:04:20 +00:00
|
|
|
static CStore<CWeaponModelInfo, WEAPONMODELSIZE> ms_weaponModelStore;
|
2019-05-15 14:52:37 +00:00
|
|
|
static CStore<CClumpModelInfo, CLUMPMODELSIZE> ms_clumpModelStore;
|
|
|
|
static CStore<CPedModelInfo, PEDMODELSIZE> ms_pedModelStore;
|
|
|
|
static CStore<CVehicleModelInfo, VEHICLEMODELSIZE> ms_vehicleModelStore;
|
|
|
|
static CStore<C2dEffect, TWODFXSIZE> ms_2dEffectStore;
|
|
|
|
|
|
|
|
public:
|
|
|
|
static void Initialise(void);
|
2019-06-17 08:30:02 +00:00
|
|
|
static void ShutDown(void);
|
2019-05-15 14:52:37 +00:00
|
|
|
|
|
|
|
static CSimpleModelInfo *AddSimpleModel(int id);
|
|
|
|
static CTimeModelInfo *AddTimeModel(int id);
|
2020-05-10 08:04:20 +00:00
|
|
|
static CWeaponModelInfo *AddWeaponModel(int id);
|
2019-05-15 14:52:37 +00:00
|
|
|
static CClumpModelInfo *AddClumpModel(int id);
|
|
|
|
static CPedModelInfo *AddPedModel(int id);
|
|
|
|
static CVehicleModelInfo *AddVehicleModel(int id);
|
|
|
|
|
2019-06-17 08:30:02 +00:00
|
|
|
static CStore<C2dEffect, TWODFXSIZE> &Get2dEffectStore(void) { return ms_2dEffectStore; }
|
|
|
|
|
2019-05-15 14:52:37 +00:00
|
|
|
static CBaseModelInfo *GetModelInfo(const char *name, int *id);
|
|
|
|
static CBaseModelInfo *GetModelInfo(int id){
|
|
|
|
return ms_modelInfoPtrs[id];
|
|
|
|
}
|
2020-05-05 15:04:43 +00:00
|
|
|
static CBaseModelInfo *GetModelInfo(const char *name, int minIndex, int maxIndex);
|
2019-06-27 08:58:51 +00:00
|
|
|
|
|
|
|
static bool IsBoatModel(int32 id);
|
2019-07-14 09:49:03 +00:00
|
|
|
static bool IsBikeModel(int32 id);
|
2020-05-08 20:29:43 +00:00
|
|
|
static bool IsCarModel(int32 id);
|
2020-09-29 19:53:12 +00:00
|
|
|
static bool IsHeliModel(int32 id);
|
|
|
|
static bool IsPlaneModel(int32 id);
|
2020-04-13 02:32:11 +00:00
|
|
|
static void ReInit2dEffects();
|
2019-05-15 14:52:37 +00:00
|
|
|
};
|