Advertisement
devenshona

InventoryItem.h

Jan 20th, 2024 (edited)
23
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.76 KB | None | 0 0
  1. // Fill out your copyright notice in the Description page of Project Settings.
  2.  
  3. #pragma once
  4.  
  5. #include "CoreMinimal.h"
  6. #include "BaseItemPickup.h"
  7. #include "Components/InventoryComponent.h"
  8. #include "GameFramework/Actor.h"
  9. #include "InventoryItem.generated.h"
  10.  
  11. UCLASS()
  12. class INVENTORYSYSTEM_API AInventoryItem : public AActor
  13. {
  14.     GENERATED_BODY()
  15.  
  16. public:
  17.     // Sets default values for this actor's properties
  18.     AInventoryItem();
  19.  
  20. protected:
  21.     // Called when the game starts or when spawned
  22.     virtual void BeginPlay() override;
  23.  
  24. public:
  25.     // Called every frame
  26.     virtual void Tick(float DeltaTime) override;
  27.  
  28.     //Functions
  29.     UFUNCTION(BlueprintNativeEvent)
  30.     void UseItem(FStaticItemInfo* Row , UInventoryComponent* InventoryComponentRef,int32 Index);
  31. };
  32.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement