summaryrefslogtreecommitdiff
path: root/src/objects/ObjectData.h
blob: e25c1aebe1ec50ede3fb15bbe7194d7c43a37162 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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;
};
VALIDATE_SIZE(CObjectInfo, 0x20);

class CObjectData
{
	static CObjectInfo ms_aObjectInfo[NUMOBJECTINFO];
public:
	static void Initialise(const char *filename);
	static void SetObjectData(int32 modelId, CObject &object);
};