Advertisement
devenshona

InventoryItem.cpp

Jan 20th, 2024 (edited)
794
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.95 KB | None | 0 0
  1. // Fill out your copyright notice in the Description page of Project Settings.
  2.  
  3.  
  4. #include "Actors/InventoryItem.h"
  5.  
  6.  
  7. // Sets default values
  8. AInventoryItem::AInventoryItem()
  9. {
  10.     // Set this actor to call Tick() every frame.  You can turn this off to improve performance if you don't need it.
  11.     PrimaryActorTick.bCanEverTick = true;
  12. }
  13.  
  14. // Called when the game starts or when spawned
  15. void AInventoryItem::BeginPlay()
  16. {
  17.     Super::BeginPlay();
  18.    
  19. }
  20.  
  21. // Called every frame
  22. void AInventoryItem::Tick(float DeltaTime)
  23. {
  24.     Super::Tick(DeltaTime);
  25. }
  26.  
  27. /**
  28.  * Uses the given item.
  29.  *
  30.  * @param Row - The static item information.
  31.  * @param InventoryComponentRef - The reference to the inventory component.
  32.  * @param Index - The index of the item being used.
  33.  *
  34.  * @note This method is called when an item needs to be used.
  35.  */
  36. void AInventoryItem::UseItem_Implementation(FStaticItemInfo* Row,UInventoryComponent* InventoryComponentRef,int32 Index)
  37. {
  38. }
  39.  
  40.  
  41.  
  42.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement