diff options
author | aap <aap@papnet.eu> | 2020-05-06 21:54:43 +0200 |
---|---|---|
committer | aap <aap@papnet.eu> | 2020-05-06 21:54:43 +0200 |
commit | 965ea93a616575ef483c21f38c715b6559b18d4a (patch) | |
tree | 7ac8493ed384631a2956c599d0f2f62f730119dd /src/modelinfo/BaseModelInfo.h | |
parent | Merge pull request #516 from Nick007J/miami (diff) | |
download | re3-965ea93a616575ef483c21f38c715b6559b18d4a.tar re3-965ea93a616575ef483c21f38c715b6559b18d4a.tar.gz re3-965ea93a616575ef483c21f38c715b6559b18d4a.tar.bz2 re3-965ea93a616575ef483c21f38c715b6559b18d4a.tar.lz re3-965ea93a616575ef483c21f38c715b6559b18d4a.tar.xz re3-965ea93a616575ef483c21f38c715b6559b18d4a.tar.zst re3-965ea93a616575ef483c21f38c715b6559b18d4a.zip |
Diffstat (limited to '')
-rw-r--r-- | src/modelinfo/BaseModelInfo.h | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/src/modelinfo/BaseModelInfo.h b/src/modelinfo/BaseModelInfo.h index 9f828e7f..4b880758 100644 --- a/src/modelinfo/BaseModelInfo.h +++ b/src/modelinfo/BaseModelInfo.h @@ -6,14 +6,16 @@ enum ModelInfoType : uint8 { - MITYPE_NA = 0, - MITYPE_SIMPLE = 1, - MITYPE_MLO = 2, - MITYPE_TIME = 3, - MITYPE_CLUMP = 4, - MITYPE_VEHICLE = 5, - MITYPE_PED = 6, - MITYPE_XTRACOMPS = 7, + MITYPE_NA, + MITYPE_SIMPLE, + MITYPE_MLO, // unused but still in enum + MITYPE_TIME, + MITYPE_WEAPON, + MITYPE_CLUMP, + MITYPE_VEHICLE, + MITYPE_PED, + MITYPE_XTRACOMPS, // unused but still in enum + MITYPE_HAND // xbox and mobile }; static_assert(sizeof(ModelInfoType) == 1, "ModeInfoType: error"); @@ -43,10 +45,9 @@ public: // one day it becomes virtual ModelInfoType GetModelType() const { return m_type; } - bool IsSimple(void) { return m_type == MITYPE_SIMPLE || m_type == MITYPE_TIME; } - bool IsClump(void) { return m_type == MITYPE_CLUMP || m_type == MITYPE_PED || m_type == MITYPE_VEHICLE || - m_type == MITYPE_MLO || m_type == MITYPE_XTRACOMPS; // unused but what the heck - } + bool IsBuilding(void) { return m_type == MITYPE_SIMPLE || m_type == MITYPE_TIME; } + bool IsSimple(void) { return m_type == MITYPE_SIMPLE || m_type == MITYPE_TIME || m_type == MITYPE_WEAPON; } + bool IsClump(void) { return m_type == MITYPE_CLUMP || m_type == MITYPE_PED || m_type == MITYPE_VEHICLE; } char *GetName(void) { return m_name; } void SetName(const char *name) { strncpy(m_name, name, 24); } void SetColModel(CColModel *col, bool owns = false){ |