From 5f7de20cdebe36759d6fe06ff8aabc91359771f0 Mon Sep 17 00:00:00 2001 From: aap Date: Tue, 24 Aug 2021 19:16:17 +0200 Subject: modelinfo bits --- src/modelinfo/ModelInfo.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/modelinfo/ModelInfo.h') 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 ms_vehicleModelStore; static CStore 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) -- cgit v1.2.3