2019-05-15 14:52:37 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "2dEffect.h"
|
|
|
|
#include "BaseModelInfo.h"
|
|
|
|
#include "SimpleModelInfo.h"
|
2020-01-20 20:41:41 +00:00
|
|
|
#include "MloModelInfo.h"
|
2019-05-15 14:52:37 +00:00
|
|
|
#include "TimeModelInfo.h"
|
|
|
|
#include "ClumpModelInfo.h"
|
|
|
|
#include "PedModelInfo.h"
|
|
|
|
#include "VehicleModelInfo.h"
|
2020-01-20 20:41:41 +00:00
|
|
|
#include "XtraCompsModelInfo.h"
|
|
|
|
#include "Instance.h"
|
2019-05-15 14:52:37 +00:00
|
|
|
|
|
|
|
class CModelInfo
|
|
|
|
{
|
|
|
|
static CBaseModelInfo **ms_modelInfoPtrs; //[MODELINFOSIZE];
|
|
|
|
static CStore<CSimpleModelInfo, SIMPLEMODELSIZE> ms_simpleModelStore;
|
2020-01-20 20:41:41 +00:00
|
|
|
static CStore<CMloModelInfo, MLOMODELSIZE> ms_mloModelStore;
|
|
|
|
static CStore<CInstance, MLOINSTANCESIZE> ms_mloInstanceStore;
|
2019-05-15 14:52:37 +00:00
|
|
|
static CStore<CTimeModelInfo, TIMEMODELSIZE> ms_timeModelStore;
|
|
|
|
static CStore<CClumpModelInfo, CLUMPMODELSIZE> ms_clumpModelStore;
|
|
|
|
static CStore<CPedModelInfo, PEDMODELSIZE> ms_pedModelStore;
|
|
|
|
static CStore<CVehicleModelInfo, VEHICLEMODELSIZE> ms_vehicleModelStore;
|
|
|
|
static CStore<C2dEffect, TWODFXSIZE> ms_2dEffectStore;
|
2020-01-20 20:41:41 +00:00
|
|
|
static CStore<CXtraCompsModelInfo, XTRACOMPSMODELSIZE> ms_xtraCompsModelStore;
|
2019-05-15 14:52:37 +00:00
|
|
|
|
|
|
|
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);
|
2020-01-20 20:41:41 +00:00
|
|
|
static CMloModelInfo *AddMloModel(int id);
|
2019-05-15 14:52:37 +00:00
|
|
|
static CTimeModelInfo *AddTimeModel(int id);
|
|
|
|
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; }
|
2020-01-23 15:29:36 +00:00
|
|
|
static CStore<CInstance, MLOINSTANCESIZE> &GetMloInstanceStore();
|
2019-06-17 08:30:02 +00:00
|
|
|
|
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];
|
|
|
|
}
|
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);
|
2019-06-28 17:23:28 +00:00
|
|
|
static void RemoveColModelsFromOtherLevels(eLevelName level);
|
2020-01-21 07:47:24 +00:00
|
|
|
static void ConstructMloClumps();
|
2019-05-15 14:52:37 +00:00
|
|
|
};
|