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;
|
|
|
|
};
|
|
|
|
static_assert(sizeof(CObjectInfo) == 0x20, "CObjectInfo: error");
|
|
|
|
|
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
|
|
|
};
|