Interface used to define different areas
struct IVehicleComponent { };
IVehicleSystem.h
The most important use for the vehicle components is to define different region on the vehicle which have specific uses. A good example would be to have components on the vehicles which react to hit damage in different ways.
virtual ~IVehicleComponent();
Get bounding box in vehicle space
virtual const AABB& GetBounds() = 0;
Gets the name of the component
virtual const char* GetComponentName() const = 0;
A c style string with the name of the component.
Get current damage ratio
virtual float GetDamageRatio() const = 0;
Get max damage
virtual float GetMaxDamage() const = 0;
virtual void GetMemoryUsage(ICrySizer * s) const = 0;
virtual IVehiclePart* GetPart(unsigned int index) const = 0;
Gets the number of vehicle parts which are linked to the vehicle
virtual unsigned int GetPartCount() const = 0;
The number of parts
Set current damage ratio
virtual void SetDamageRatio(float ratio) = 0;