Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Fill out your copyright notice in the Description page of Project Settings.
- #pragma once
- #include "CoreMinimal.h"
- #include "BaseItemPickup.h"
- #include "Components/InventoryComponent.h"
- #include "GameFramework/Actor.h"
- #include "InventoryItem.generated.h"
- UCLASS()
- class INVENTORYSYSTEM_API AInventoryItem : public AActor
- {
- GENERATED_BODY()
- public:
- // Sets default values for this actor's properties
- AInventoryItem();
- protected:
- // Called when the game starts or when spawned
- virtual void BeginPlay() override;
- public:
- // Called every frame
- virtual void Tick(float DeltaTime) override;
- //Functions
- UFUNCTION(BlueprintNativeEvent)
- void UseItem(FStaticItemInfo* Row , UInventoryComponent* InventoryComponentRef,int32 Index);
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement