summaryrefslogtreecommitdiffstats
path: root/src/modelinfo
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2021-08-24 19:16:17 +0200
committeraap <aap@papnet.eu>2021-08-24 19:16:17 +0200
commit5f7de20cdebe36759d6fe06ff8aabc91359771f0 (patch)
tree44db44eef4a7c41770738fc8c493de8eb3570cdb /src/modelinfo
parentCModelInfo done (diff)
downloadre3-5f7de20cdebe36759d6fe06ff8aabc91359771f0.tar
re3-5f7de20cdebe36759d6fe06ff8aabc91359771f0.tar.gz
re3-5f7de20cdebe36759d6fe06ff8aabc91359771f0.tar.bz2
re3-5f7de20cdebe36759d6fe06ff8aabc91359771f0.tar.lz
re3-5f7de20cdebe36759d6fe06ff8aabc91359771f0.tar.xz
re3-5f7de20cdebe36759d6fe06ff8aabc91359771f0.tar.zst
re3-5f7de20cdebe36759d6fe06ff8aabc91359771f0.zip
Diffstat (limited to 'src/modelinfo')
-rw-r--r--src/modelinfo/ModelInfo.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/modelinfo/ModelInfo.h b/src/modelinfo/ModelInfo.h
index 1e401247..60a5e98f 100644
--- a/src/modelinfo/ModelInfo.h
+++ b/src/modelinfo/ModelInfo.h
@@ -25,10 +25,11 @@ class CModelInfo
static CStore<CVehicleModelInfo, VEHICLEMODELSIZE> ms_vehicleModelStore;
static CStore<C2dEffect, TWODFXSIZE> ms_2dEffectStore;
+public:
// these fields are in the resource image
int32 resNumModelInfos;
CBaseModelInfo **resModelInfoPtrs;
-public:
+
static void Initialise(void);
static void ShutDown(void);
@@ -43,6 +44,7 @@ public:
static C2dEffect *Get2dEffect(int32 id) { return &gp2dEffects[id]; }
static int32 Get2dEffectIndex(C2dEffect *effect) { return effect - gp2dEffects; }
+ static int32 GetNumModelInfos(void) { return msNumModelInfos; }
static CBaseModelInfo *GetModelInfo(const char *name, int *id);
static CBaseModelInfo *GetModelInfo(int id){
if(id < 0 || id >= msNumModelInfos)