Base interface used by many vehicle objects
struct IVehicleObject : public IVehicleEventListener { };
IVehicleSystem.h
Returns the id of the vehicle object
virtual TVehicleObjectId GetId() = 0;
Handle vehicle events
virtual void OnVehicleEvent(EVehicleEvent event, const SVehicleEventParams& params) = 0;
Serialize the vehicle object
virtual void Serialize(TSerialize ser, EEntityAspects aspects) = 0;
Update the vehicle object
virtual void Update(const float deltaTime) = 0;
Parameters |
Description |
const float deltaTime |
total time for the update, in seconds |
Used to handle any time sensitive updates. In example, rotation for turret parts is implemented in this function.
virtual void UpdateFromPassenger(const float deltaTime, EntityId playerId);