Added Default Item to test

Added a default item to the inventory BP.
This commit is contained in:
MH261677 2022-11-14 20:28:34 +00:00
parent fe75a8c388
commit 7a8dead59b
5 changed files with 12 additions and 7 deletions

Binary file not shown.

View File

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:c70ffaf4738412537996db61c6620a7f49e7fe9c07108cff72ab3738fdfe5c78
size 80902
oid sha256:394e6fd5c273948655cad58ad595dff0a3b24abc9279bfc1096997186314c7b8
size 81622

View File

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:47660a75d7b9806d0475c43f31f887d9f7266604ce09614b958b452fadbcd6f3
size 29178
oid sha256:d596c831e4baffe954feea4961e34e18072e026f907adbe7824d32d2db4e2e4a
size 89851

View File

@ -9,3 +9,8 @@ UBaseItem::UBaseItem()
ItemDisplayName = FText::FromString("ItemName");
ItemUseAction = FText::FromString("UseAction");
}
void UBaseItem::Use(ATempCharacter* Character)
{
}

View File

@ -57,7 +57,7 @@ public:
virtual void Buy(class UItemPurchaseComponent* PurchaseItem) PURE_VIRTUAL(UBaseItem); // WILL SET THIS UP LATER
//The use Item class to use the item in the player Inventory
virtual void Use(class ATempCharacter* Character) PURE_VIRTUAL(UBaseItem);
virtual void Use(class ATempCharacter* Character);
//This is the same as the use item class but its in BP instead
UFUNCTION(BlueprintImplementableEvent)