Handles game specific client/player tasks
struct IVehicleClient { };
IVehicleSystem.h
The implementation of the vehicle client class is used to perform game specific tasks related to the client player. For example, it can be used to store the last view used by the player on specific vehicle class or to filter game specific action types into vehicle ActionIds.
Should be implemented inside the Game DLL. The game should call the function IVehicleSystem::RegisterVehicleClient during intialization.
virtual ~IVehicleClient();
Initializes the vehicle client implementation
virtual bool Init() = 0;
A bool representing the success of the initialization
Filters client actions Parameter pVehicle - vehicle instance used by the client actionId - ActionId sent activationMode - One of the different activation mode defined in EActionActivationMode value - value of the action
Perform game specific tasks when the client enter a vehicle seat
virtual void OnEnterVehicleSeat(IVehicleSeat* pSeat) = 0;
Parameters |
Description |
IVehicleSeat* pSeat |
instance of the new vehicle seat assigned to the client |
Is also called when the client switch to a different seats inside the same vehicle
Perform game specific tasks when the client exit a vehicle seat
virtual void OnExitVehicleSeat(IVehicleSeat* pSeat) = 0;
Parameters |
Description |
IVehicleSeat* pSeat |
instance of the new vehicle seat exited by the client |
Is also called when the client switch to a different seats inside the same vehicle
Releases the vehicle client implementation
virtual void Release() = 0;
Should only be called when the game is shutdown
virtual void Reset() = 0;