IVehicleView

Interface used to implement vehicle views

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

IVehicleSystem.h

Description

A vehicle view is a camera implementation. Default implementations of a first person and third person camera are already available in the CryAction Dll.

IVehicleView::GetId Method

Returns the id of the vehicle object

C++
virtual TVehicleObjectId GetId() = 0;
IVehicleView::GetMemoryUsage Method
C++
virtual void GetMemoryUsage(ICrySizer * pSizer) const = 0;
IVehicleView::GetName Method

Returns the name of the camera view

C++
virtual const char* GetName() = 0;
IVehicleView::Init Method
C++
virtual bool Init(IVehicleSeat* pSeat, const CVehicleParams& table) = 0;
IVehicleView::IsAvailableRemotely Method
C++
virtual bool IsAvailableRemotely() const = 0;
IVehicleView::IsDebugView Method
C++
virtual bool IsDebugView() = 0;
IVehicleView::IsPassengerHidden Method

Indicates if the player body has been hidden

C++
virtual bool IsPassengerHidden() = 0;
IVehicleView::IsThirdPerson Method

Indicates if the view implements a third person camera

C++
virtual bool IsThirdPerson() = 0;
IVehicleView::OffsetPosition Method
C++
virtual void OffsetPosition(const Vec3 & delta) = 0;
IVehicleView::OnAction Method
C++
virtual void OnAction(const TVehicleActionId actionId, int activationMode, float value) = 0;
IVehicleView::OnStartUsing Method

Performs tasks needed when the client start using this view

C++
virtual void OnStartUsing(EntityId playerId) = 0;
Parameters
Parameters
Description
EntityId playerId
EntityId of the player who will use the view
IVehicleView::OnStopUsing Method

Performs tasks needed when the client stop using this view

C++
virtual void OnStopUsing() = 0;
IVehicleView::Release Method
C++
virtual void Release() = 0;
IVehicleView::Reset Method
C++
virtual void Reset() = 0;
IVehicleView::ResetPosition Method
C++
virtual void ResetPosition() = 0;
IVehicleView::Serialize Method

Serialize the vehicle object

C++
virtual void Serialize(TSerialize ser, EEntityAspects aspects) = 0;
IVehicleView::SetDebugView Method
C++
virtual void SetDebugView(bool debug) = 0;
IVehicleView::ShootToCrosshair Method
C++
virtual bool ShootToCrosshair() = 0;
IVehicleView::Update Method

Performs computation which depends of the frame rate

C++
virtual void Update(const float deltaTime) = 0;
IVehicleView::UpdateView Method
C++
virtual void UpdateView(SViewParams & viewParams, EntityId playerId = 0) = 0;