Oakfolks Gold_1.14
Oakfolks coop game
Loading...
Searching...
No Matches
PickableItem.h
1#pragma once
2
3#include "CoreMinimal.h"
4#include "GameFramework/Actor.h"
5#include "BCR/Headers/Interfaces/IPickable.h"
6#include "PickableItem.generated.h"
7
9
14UCLASS()
15class BCR_API APickableItem : public AActor, public IIPickable
16{
17 GENERATED_BODY()
18
19public:
20
23 virtual void BeginPlay() override;
24 virtual void Tick(float DeltaTime) override;
25
28 UPROPERTY(EditAnywhere)
29 FString name;
30
33 UFUNCTION(Blueprintable,BlueprintCallable)
34 FString GetItemName() const { return name; };
35
38 virtual void PickedUp_Implementation(AActor* _player, AActor* _object) override;
39};
Base class for all pickable objects in the game.
Definition PickableItem.h:16
Interface for objects that can be picked up and dropped by players.
Definition IPickable.h:26