LEAP Documentation 40220
Documentation for the LEAP project
VehicleRespawnManager.h
Go to the documentation of this file.
1// Copyright Blue Isle Studios Inc 2018. All Rights Reserved.
2
3#pragma once
4
5#include "CoreMinimal.h"
6#include "Components/ActorComponent.h"
7#include "VehicleRespawnManager.generated.h"
8
10
11USTRUCT(Blueprintable)
13{
14 GENERATED_USTRUCT_BODY()
15
16 TSubclassOf<AProjectXVehicle> VehicleClass = NULL;
17 FTransform VehicleTransform = FTransform::Identity;
18 float RespawnTime = 0.f;
19};
20
21
22UCLASS(BlueprintType, HideCategories = (ComponentTick, Collision, Tags, Variable, Activation, ComponentReplication, Cooking))
23class PROJECTX_API UVehicleRespawnManager : public UActorComponent
24{
25 GENERATED_UCLASS_BODY()
26
27public:
29 virtual void RespawnVehicle(int32 RespawnID);
30
31protected:
32 TMap<int32, FRespawnInformation> RespawnMap;
33
34private:
35 int32 RespawnIDCounter = 0;
36};
Definition: ProjectXVehicle.h:56
float RespawnTime
Definition: ProjectXVehicle.h:514
Definition: VehicleRespawnManager.h:24
TMap< int32, FRespawnInformation > RespawnMap
Definition: VehicleRespawnManager.h:32
Definition: VehicleRespawnManager.h:13