2019-06-18 09:50:26 +02:00
|
|
|
#pragma once
|
|
|
|
|
2019-06-19 18:35:51 +02:00
|
|
|
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;
|
|
|
|
};
|
2020-05-10 17:49:33 +02:00
|
|
|
VALIDATE_SIZE(CObjectInfo, 0x20);
|
2019-06-19 18:35:51 +02:00
|
|
|
|
2019-06-18 09:50:26 +02:00
|
|
|
class CObjectData
|
|
|
|
{
|
2019-06-19 18:35:51 +02:00
|
|
|
static CObjectInfo ms_aObjectInfo[NUMOBJECTINFO];
|
2019-06-18 09:50:26 +02:00
|
|
|
public:
|
|
|
|
static void Initialise(const char *filename);
|
2019-06-19 18:35:51 +02:00
|
|
|
static void SetObjectData(int32 modelId, CObject &object);
|
2019-06-18 09:50:26 +02:00
|
|
|
};
|