diff options
author | aap <aap@papnet.eu> | 2019-06-19 18:35:51 +0200 |
---|---|---|
committer | aap <aap@papnet.eu> | 2019-06-19 18:35:51 +0200 |
commit | 2ec11b000db3af4cb5cd9a5d70dd050edfbdc99f (patch) | |
tree | 4bb63db3c36f43ae63e1560d19d36ccb46ed37ac /src/control/ObjectData.h | |
parent | implemented CPedStats (diff) | |
download | re3-2ec11b000db3af4cb5cd9a5d70dd050edfbdc99f.tar re3-2ec11b000db3af4cb5cd9a5d70dd050edfbdc99f.tar.gz re3-2ec11b000db3af4cb5cd9a5d70dd050edfbdc99f.tar.bz2 re3-2ec11b000db3af4cb5cd9a5d70dd050edfbdc99f.tar.lz re3-2ec11b000db3af4cb5cd9a5d70dd050edfbdc99f.tar.xz re3-2ec11b000db3af4cb5cd9a5d70dd050edfbdc99f.tar.zst re3-2ec11b000db3af4cb5cd9a5d70dd050edfbdc99f.zip |
Diffstat (limited to '')
-rw-r--r-- | src/control/ObjectData.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/control/ObjectData.h b/src/control/ObjectData.h index 7df1c845..e3a5c1bd 100644 --- a/src/control/ObjectData.h +++ b/src/control/ObjectData.h @@ -1,7 +1,27 @@ #pragma once +class CObject; + +class CObjectInfo +{ +public: + float m_fMass; + float m_fTurnMass; + float m_fAirResistance; + float m_fElasticity; + float m_fBuoyancy; + float m_fUprootLimit; + float m_fCollisionDamageMultiplier; + uint8 m_nCollisionDamageEffect; + uint8 m_nSpecialCollisionResponseCases; + bool m_bCameraToAvoidThisObject; +}; +static_assert(sizeof(CObjectInfo) == 0x20, "CObjectInfo: error"); + class CObjectData { + static CObjectInfo ms_aObjectInfo[NUMOBJECTINFO]; public: static void Initialise(const char *filename); + static void SetObjectData(int32 modelId, CObject &object); }; |