diff options
author | aap <aap@papnet.eu> | 2021-08-24 19:16:17 +0200 |
---|---|---|
committer | aap <aap@papnet.eu> | 2021-08-24 19:16:17 +0200 |
commit | 5f7de20cdebe36759d6fe06ff8aabc91359771f0 (patch) | |
tree | 44db44eef4a7c41770738fc8c493de8eb3570cdb /src/modelinfo | |
parent | CModelInfo done (diff) | |
download | re3-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.h | 4 |
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) |