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.
- #include "Actors/InventoryItem.h"
- // Sets default values
- AInventoryItem::AInventoryItem()
- {
- // Set this actor to call Tick() every frame. You can turn this off to improve performance if you don't need it.
- PrimaryActorTick.bCanEverTick = true;
- }
- // Called when the game starts or when spawned
- void AInventoryItem::BeginPlay()
- {
- Super::BeginPlay();
- }
- // Called every frame
- void AInventoryItem::Tick(float DeltaTime)
- {
- Super::Tick(DeltaTime);
- }
- /**
- * Uses the given item.
- *
- * @param Row - The static item information.
- * @param InventoryComponentRef - The reference to the inventory component.
- * @param Index - The index of the item being used.
- *
- * @note This method is called when an item needs to be used.
- */
- void AInventoryItem::UseItem_Implementation(FStaticItemInfo* Row,UInventoryComponent* InventoryComponentRef,int32 Index)
- {
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement