-
-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FEquipmentItemSlot #143
Milestone
Comments
pavlicekdominik
added a commit
that referenced
this issue
Nov 26, 2023
pavlicekdominik
added a commit
that referenced
this issue
Nov 27, 2023
pavlicekdominik
added a commit
that referenced
this issue
Nov 27, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
FEquipmentItemSlot
Properties:
ItemSlot:
FInventoryItemSlot
SlotName:
FName
SlotGuid:
FGuid
AcceptedTags:
FGameplayTagsContainer
AcceptedCategories:
TArray<UInventoryItemCategory*>
Usage and Logic Integration:
Initialization:
FEquipmentItemSlot
, you'd specify the accepted tags and categories to dictate what it can hold. TheSlotGuid
would ideally be generated upon creation to ensure uniqueness.Checking If An Item Can Be Equipped:
FEquipmentItemSlot
, you'd first check if the item's tags or category match with theAcceptedTags
orAcceptedCategories
of the equipment slot.Storing an Item:
ItemSlot
property.Querying:
SlotGuid
.Removing or Replacing an Item:
ItemSlot
or clear it to remove the item. When replacing, you should also ensure that the item being replaced is either discarded, destroyed, or returned to the inventory, depending on the desired game behavior.The text was updated successfully, but these errors were encountered: