Oakfolks Gold_1.14
Oakfolks coop game
Loading...
Searching...
No Matches
DeliveryPoint.h
1#pragma once
2
3#include "CoreMinimal.h"
4#include "GameFramework/Actor.h"
5#include "Components/BoxComponent.h"
6#include "BCR/Headers/System/Pickable/PickableItem.h"
7#include "DeliveryPoint.generated.h"
8
9class UBillboardComponent;
10
12
17UCLASS()
18class BCR_API ADeliveryPoint : public AActor
19{
20 GENERATED_BODY()
21
22public:
23
26 virtual void BeginPlay() override;
27 virtual void Tick(float DeltaTime) override;
28
31 UPROPERTY(EditAnywhere, BlueprintReadWrite)
32 UBoxComponent* ColliderBox;
33 UPROPERTY(EditAnywhere, BlueprintReadWrite)
34 UBillboardComponent* WorldPoint;
35
38 UPROPERTY(EditAnywhere, BlueprintReadWrite)
39 TSubclassOf<APickableItem> ItemType;
40 UPROPERTY(EditAnywhere, BlueprintReadWrite)
41 TSubclassOf<APickableItem> ObjectToSpawn;
42
43protected:
44
47 UFUNCTION()
48 void OnOverlapBegin(UPrimitiveComponent* OverlappedComponent, AActor* OtherActor, UPrimitiveComponent* OtherComp, int32 OtherBodyIndex, bool bFromSweep, const FHitResult& SweepResult);
49
52 bool DoOnce = false;
53};
Delivery point for transforming items into new objects.
Definition DeliveryPoint.h:19
Base class for all pickable objects in the game.
Definition PickableItem.h:16