IVehicleObject

Base interface used by many vehicle objects

C++
struct IVehicleObject : public IVehicleEventListener {
};
File

IVehicleSystem.h

IVehicleObject::GetId Method

Returns the id of the vehicle object

C++
virtual TVehicleObjectId GetId() = 0;
IVehicleObject::OnVehicleEvent Method

Handle vehicle events

C++
virtual void OnVehicleEvent(EVehicleEvent event, const SVehicleEventParams& params) = 0;
See Also
IVehicleObject::Serialize Method

Serialize the vehicle object

C++
virtual void Serialize(TSerialize ser, EEntityAspects aspects) = 0;
IVehicleObject::Update Method

Update the vehicle object

C++
virtual void Update(const float deltaTime) = 0;
Parameters
Parameters
Description
const float deltaTime
total time for the update, in seconds
Description

Used to handle any time sensitive updates. In example, rotation for turret parts is implemented in this function.

IVehicleObject::UpdateFromPassenger Method
C++
virtual void UpdateFromPassenger(const float deltaTime, EntityId playerId);