diff options
author | Sergeanur <s.anureev@yandex.ua> | 2020-05-05 17:14:19 +0200 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2020-05-05 17:14:19 +0200 |
commit | 0aab36c5a7f08b1039a67e7f5eece8a1c0e8f69a (patch) | |
tree | 05a57e536e4bd3f20f0537ff689f01a8cd68eb86 /src/core/ColStore.h | |
parent | Revert "Remove #endif" (diff) | |
parent | Remove ColStore (diff) | |
download | re3-0aab36c5a7f08b1039a67e7f5eece8a1c0e8f69a.tar re3-0aab36c5a7f08b1039a67e7f5eece8a1c0e8f69a.tar.gz re3-0aab36c5a7f08b1039a67e7f5eece8a1c0e8f69a.tar.bz2 re3-0aab36c5a7f08b1039a67e7f5eece8a1c0e8f69a.tar.lz re3-0aab36c5a7f08b1039a67e7f5eece8a1c0e8f69a.tar.xz re3-0aab36c5a7f08b1039a67e7f5eece8a1c0e8f69a.tar.zst re3-0aab36c5a7f08b1039a67e7f5eece8a1c0e8f69a.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/ColStore.h | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/src/core/ColStore.h b/src/core/ColStore.h deleted file mode 100644 index 0d686ffd..00000000 --- a/src/core/ColStore.h +++ /dev/null @@ -1,43 +0,0 @@ -#pragma once - -#include "templates.h" - -struct ColDef { // made up name - int32 a; - 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); - } -}; |