From 7a8dead59b1fbb2c45f1b9258a109e6213e53473 Mon Sep 17 00:00:00 2001 From: MH261677 Date: Mon, 14 Nov 2022 20:28:34 +0000 Subject: [PATCH] Added Default Item to test Added a default item to the inventory BP. --- Content/Blueprints/BP_MyTempCharacter.uasset | 4 ++-- Content/Blueprints/WBP_ItemDisplay.uasset | 4 ++-- Content/Blueprints/WBP_PlayerInventory.uasset | 4 ++-- Source/the_twilight_abyss/BaseItems/Items/BaseItem.cpp | 5 +++++ Source/the_twilight_abyss/BaseItems/Items/BaseItem.h | 2 +- 5 files changed, 12 insertions(+), 7 deletions(-) diff --git a/Content/Blueprints/BP_MyTempCharacter.uasset b/Content/Blueprints/BP_MyTempCharacter.uasset index 0594c08..7085e97 100644 --- a/Content/Blueprints/BP_MyTempCharacter.uasset +++ b/Content/Blueprints/BP_MyTempCharacter.uasset @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:7ab40229553278ecf914c2fb5a78609d1bff1d3c451797bf175ecf6a8948d3d5 -size 29619 +oid sha256:17cdf7f4c862e174899a1ef838d3e587abbb616a4e7d668ec440a0bfd0c250da +size 67817 diff --git a/Content/Blueprints/WBP_ItemDisplay.uasset b/Content/Blueprints/WBP_ItemDisplay.uasset index afb5151..aa0672a 100644 --- a/Content/Blueprints/WBP_ItemDisplay.uasset +++ b/Content/Blueprints/WBP_ItemDisplay.uasset @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:c70ffaf4738412537996db61c6620a7f49e7fe9c07108cff72ab3738fdfe5c78 -size 80902 +oid sha256:394e6fd5c273948655cad58ad595dff0a3b24abc9279bfc1096997186314c7b8 +size 81622 diff --git a/Content/Blueprints/WBP_PlayerInventory.uasset b/Content/Blueprints/WBP_PlayerInventory.uasset index ce2f4e0..9d031ad 100644 --- a/Content/Blueprints/WBP_PlayerInventory.uasset +++ b/Content/Blueprints/WBP_PlayerInventory.uasset @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:47660a75d7b9806d0475c43f31f887d9f7266604ce09614b958b452fadbcd6f3 -size 29178 +oid sha256:d596c831e4baffe954feea4961e34e18072e026f907adbe7824d32d2db4e2e4a +size 89851 diff --git a/Source/the_twilight_abyss/BaseItems/Items/BaseItem.cpp b/Source/the_twilight_abyss/BaseItems/Items/BaseItem.cpp index 1fd0d31..2fac2d1 100644 --- a/Source/the_twilight_abyss/BaseItems/Items/BaseItem.cpp +++ b/Source/the_twilight_abyss/BaseItems/Items/BaseItem.cpp @@ -9,3 +9,8 @@ UBaseItem::UBaseItem() ItemDisplayName = FText::FromString("ItemName"); ItemUseAction = FText::FromString("UseAction"); } + +void UBaseItem::Use(ATempCharacter* Character) +{ + +} diff --git a/Source/the_twilight_abyss/BaseItems/Items/BaseItem.h b/Source/the_twilight_abyss/BaseItems/Items/BaseItem.h index 2782c63..47cdbcc 100644 --- a/Source/the_twilight_abyss/BaseItems/Items/BaseItem.h +++ b/Source/the_twilight_abyss/BaseItems/Items/BaseItem.h @@ -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)