30 lines
780 B
C++
30 lines
780 B
C++
// Fill out your copyright notice in the Description page of Project Settings.
|
|
|
|
#pragma once
|
|
|
|
#include "CoreMinimal.h"
|
|
#include "Actor/BaseEquippable.h"
|
|
#include "BaseConsumable.generated.h"
|
|
|
|
/**
|
|
*
|
|
*/
|
|
UCLASS()
|
|
class D1_API ABaseConsumable : public ABaseEquippable
|
|
{
|
|
GENERATED_BODY()
|
|
public:
|
|
ABaseConsumable();
|
|
public:
|
|
virtual void UseItem() override;
|
|
|
|
private:
|
|
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Montage", meta = (AllowPrivateAccess = "true"))
|
|
TObjectPtr<UAnimMontage> UseItemMontage;
|
|
|
|
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Montage", meta = (AllowPrivateAccess = "true"))
|
|
int32 CurrentNumberOfUses;
|
|
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Montage", meta = (AllowPrivateAccess = "true"))
|
|
int32 MaxNumberOfUses;
|
|
};
|