第一次提交

This commit is contained in:
不明不惑
2026-03-03 01:23:02 +08:00
commit 3e434877e8
1053 changed files with 102411 additions and 0 deletions

View File

@@ -0,0 +1,35 @@
//
#include "UI/ItemStacks/ItemData.h"
#include "UI/ItemStacks/ItemStackContainer.h"
UItemStackContainer* UItemData::GetContainer() const
{
return OwningItemStackContainer.Get();
}
void UItemData::SetContainer(UItemStackContainer* InContainer)
{
OwningItemStackContainer = InContainer;
}
void UItemData::Reset()
{
ItemInfo = FGIS_ItemInfo();
}
bool UItemData::IsValidItem() const
{
return ItemInfo.IsValid();
}
int32 UItemData::GetItemSlotIndex() const
{
if (OwningItemStackContainer.IsValid())
{
return OwningItemStackContainer.Get()->FindItemSlotIndex(this);
}
return INDEX_NONE;
}