18 lines
519 B
C++
Executable file
18 lines
519 B
C++
Executable file
#pragma once
|
|
#include "CoreMinimal.h"
|
|
#include "ResourcesComponent.h"
|
|
#include "PlayerResourceComponent.generated.h"
|
|
|
|
class APlayerCharacter;
|
|
class UPlayerResourceComponent;
|
|
|
|
UCLASS(Blueprintable, ClassGroup=Custom, meta=(BlueprintSpawnableComponent))
|
|
class UPlayerResourceComponent : public UResourcesComponent {
|
|
GENERATED_BODY()
|
|
public:
|
|
UPlayerResourceComponent();
|
|
UFUNCTION(BlueprintCallable, BlueprintPure)
|
|
static UPlayerResourceComponent* GetFromPlayer(APlayerCharacter* PlayerCharacter);
|
|
|
|
};
|
|
|