summaryrefslogtreecommitdiffstats
path: root/src/objects/ObjectData.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/objects/ObjectData.h')
-rw-r--r--src/objects/ObjectData.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/objects/ObjectData.h b/src/objects/ObjectData.h
new file mode 100644
index 00000000..e3a5c1bd
--- /dev/null
+++ b/src/objects/ObjectData.h
@@ -0,0 +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);
+};