Re3/src/objects/ObjectData.h

28 lines
588 B
C
Raw Normal View History

2019-06-18 03:50:26 -04:00
#pragma once
2019-06-19 12:35:51 -04: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 03:50:26 -04:00
class CObjectData
{
2019-06-19 12:35:51 -04:00
static CObjectInfo ms_aObjectInfo[NUMOBJECTINFO];
2019-06-18 03:50:26 -04:00
public:
static void Initialise(const char *filename);
2019-06-19 12:35:51 -04:00
static void SetObjectData(int32 modelId, CObject &object);
2019-06-18 03:50:26 -04:00
};