summaryrefslogtreecommitdiffstats
path: root/src/core/ColStore.h
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2021-01-01 11:21:42 +0100
committerNikolay Korolev <nickvnuk@gmail.com>2021-01-01 11:21:42 +0100
commit575845772fc3f5385eab56044cf97ef0ce930e17 (patch)
tree1b51da6e1759bac72bec1392435c453eaee60158 /src/core/ColStore.h
parentlcs car ctrl 2 (diff)
parentMerge branch 'miami' of github.com:GTAmodding/re3 into miami (diff)
downloadre3-575845772fc3f5385eab56044cf97ef0ce930e17.tar
re3-575845772fc3f5385eab56044cf97ef0ce930e17.tar.gz
re3-575845772fc3f5385eab56044cf97ef0ce930e17.tar.bz2
re3-575845772fc3f5385eab56044cf97ef0ce930e17.tar.lz
re3-575845772fc3f5385eab56044cf97ef0ce930e17.tar.xz
re3-575845772fc3f5385eab56044cf97ef0ce930e17.tar.zst
re3-575845772fc3f5385eab56044cf97ef0ce930e17.zip
Diffstat (limited to 'src/core/ColStore.h')
-rw-r--r--src/core/ColStore.h43
1 files changed, 0 insertions, 43 deletions
diff --git a/src/core/ColStore.h b/src/core/ColStore.h
deleted file mode 100644
index 8e2a3a70..00000000
--- a/src/core/ColStore.h
+++ /dev/null
@@ -1,43 +0,0 @@
-#pragma once
-
-#include "templates.h"
-
-struct ColDef { // made up name
- int32 unused;
- bool isLoaded;
- CRect bounds;
- char name[20];
- int16 minIndex;
- int16 maxIndex;
-};
-
-class CColStore
-{
- static CPool<ColDef,ColDef> *ms_pColPool;
-
-public:
- static void Initialise(void);
- static void Shutdown(void);
- static int AddColSlot(const char *name);
- static void RemoveColSlot(int32 slot);
- static int FindColSlot(const char *name);
- static char *GetColName(int32 slot);
- static CRect &GetBoundingBox(int32 slot);
- static void IncludeModelIndex(int32 slot, int32 modelIndex);
- static bool LoadCol(int32 storeID, uint8 *buffer, int32 bufsize);
- static void RemoveCol(int32 slot);
- static void AddCollisionNeededAtPosn(const CVector2D &pos);
- static void LoadAllCollision(void);
- static void RemoveAllCollision(void);
- static void LoadCollision(const CVector2D &pos);
- static void RequestCollision(const CVector2D &pos);
- static void EnsureCollisionIsInMemory(const CVector2D &pos);
- static bool HasCollisionLoaded(const CVector2D &pos);
-
- static ColDef *GetSlot(int slot) {
- assert(slot >= 0);
- assert(ms_pColPool);
- assert(slot < ms_pColPool->GetSize());
- return ms_pColPool->GetSlot(slot);
- }
-};