etCurrentChassisHP() const;

	// current hit points of the Engine
	UFUNCTION(BlueprintCallable, BlueprintPure)
	int32 GetCurrentEngineHP() const;

	// current hit points of the Suspension
	UFUNCTION(BlueprintCallable, BlueprintPure)
	int32 GetCurrentSuspensionHP() const;

	// current hit points of the Transmission
	UFUNCTION(BlueprintCallable, BlueprintPure)
	int32 GetCurrentTransmissionHP() const;
#pragma endregion

	// Back Camera Description
	UFUNCTION(BlueprintCallable, BlueprintPure)
	const FTruckCameraDesc& GetBackCameraDesc() const;

	// Front Camera Description
	UFUNCTION(BlueprintCallable, BlueprintPure)
	const FTruckCameraDesc& GetFrontCameraDesc() const;

	// Cabin Lights
	UFUNCTION(BlueprintCallable, BlueprintPure)
	const TArray<FTruckLightSrcDesc>& GetCabinLights() const;

	// Body Lights
	UFUNCTION(BlueprintCallable, BlueprintPure)
	const TArray<FTruckLightSrcDesc>& GetBodyLights() const;

	// Chassis Lights
	UFUNCTION(BlueprintCallable, BlueprintPure)
	const TArray<FTruckLightSrcDesc>& GetChassisLights() const;

#pragma region Set Functions

	// set Truck Model ID
	void SetTruckModelID(const FName& ModelId);

	// set localized truck name
	void SetName(const FText& TruckName);

	// set axle configuration
	void SetAxleConfig(EKAxleConfig Config);

	// set Max Speed
	void SetMaxSpeed(int32 Speed);

	// set Max Ascending Angle
	void SetMaxAscendingAngle(int32 MaxAscAngle);

	// Set Back Camera Description
	void SetBackCameraDesc(const FTruckCameraDesc& Desc);

	// Set Front Camera Description
	void SetFrontCameraDesc(const FTruckCameraDesc& Desc);

	// Set Cabin lights
	void SetCabinLights(const TArray<FTruckLightSrcDesc>& Lights);

	// Set Body lights
	void SetBodyLights(const TArray<FTruckLightSrcDesc>& Lights);

	// Set Chassis lights
	void SetChassisLights(const TArray<FTruckLightSrcDesc>& Lights);

#pragma endregion

protected:
	// unique truck id, used for identification of the truck in game, in backend
	int64 TruckID = -1;

	// unique truck model ID, should contain letters and digits, used to identify the truck model inside the game
	FName TruckModelID = FName(TEXT("t_kamaz_01"));

	// Localized Name of the truck visible for the player
	FText Name = FText::GetEmpty();

	// Axle Configuration
	UPROPERTY(BlueprintReadOnly, EditInstanceOnly)
	EKAxleConfig AxleConfig = EKAxleConfig::AC_4x4;

	// Truck parts meshes
	UPROPERTY(BlueprintReadOnly)
	FTruckModelPartMeshes PartMeshes;

#pragma region Data Table Parameters
	//////////////////////////////////////////////////////////////////////////
	// Basic parameters, stored in truck models DataTable

	// max speed in km/h, reference value
	int32 MaxSpeed = 120;

	// maximum ascending angle - truck should not ascend at all
	int32 MaxAscendingAngle = 30;

#pragma endregion

#pragma region Installed modules
	//////////////////////////////////////////////////////////////////////////
	// Installed modules

	// installed Engine information
	UPROPERTY()
	FTruckEngineInfo Engine;

	// Chassis installed in the truck
	UPROPERTY()
	FTruckChassisInfo Chassis;

	// Suspension installed in the truck
	UPROPERTY()
	FTruckSuspensionInfo Suspension;

	// Transmission installed in the truck
	UPROPERTY(BlueprintReadOnly)
	FTruckTransmissionInfo Transmission;

#pragma endregion

	// Back Camera Description
	FTruckCameraDesc BackCameraDesc;

	// Front Camera Description
	FTruckCameraDesc FrontCameraDesc;

	// Cabin Lights
	TArray<FTruckLightSrcDesc> CabinLights;

	// Body Lights
	TArray<FTruckLightSrcDesc> BodyLights;

	// Chassis Lights
	TArray<FTruckLightSrcDesc> ChassisLights;
};