Skip to content
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

FEquipmentSearchCriteria #146

Open
pavlicekdominik opened this issue Nov 1, 2023 · 0 comments
Open

FEquipmentSearchCriteria #146

pavlicekdominik opened this issue Nov 1, 2023 · 0 comments
Assignees
Milestone

Comments

@pavlicekdominik
Copy link
Member

Structure: FEquipmentSlotSearchCriteria

Purpose: To provide a flexible and structured way to search for equipment slots based on various criteria.

Properties:

  • SearchSlotName:

    • Type: FName
    • Description: A unique name identifier for the equipment slot. If provided, will be used to search for slots by name.
  • SearchItem:

    • Type: UInstancedItem*
    • Description: An instance of an item. If provided, will be used to search for slots containing this specific item instance.
  • SearchGuid:

    • Type: FGuid
    • Description: A unique identifier for the equipment slot. If provided, will search for slots by this unique ID.
  • SearchTag:

    • Type: FGameplayTag
    • Description: A gameplay tag. If provided, will search for slots that accept items with this tag.
  • SearchCategory:

    • Type: UInventoryItemCategory*
    • Description: A category that the equipment slot will accept. If provided, will search for slots that accept items of this category.

Utility Properties (For Ease of Use):

  • SearchByName:

    • Type: bool
    • Description: Whether to use SlotName in the search criteria.
  • SearchByItem:

    • Type: bool
    • Description: Whether to use ItemInstance in the search criteria.
  • SearchByGuid:

    • Type: bool
    • Description: Whether to use SlotGuid in the search criteria.
  • SearchByTag:

    • Type: bool
    • Description: Whether to use Tag in the search criteria.
  • SearchByCategory:

    • Type: bool
    • Description: Whether to use ItemCategory in the search criteria.

Functions:

  • IsValid:
    • Purpose: To check if any of the search criteria properties have been set.
    • Returns: bool
    • Description: Returns true if any of the utility properties (SearchByName, SearchByItem, SearchByGuid, SearchByTag, SearchByCategory) are true. Otherwise, it returns false.

Pseudocode for IsValid Function:

Function IsValid() -> bool:

    If not (SearchByName AND SearchSlotName.IsValid )
        Return false
    If not (SearchByItem AND SearchItem.IsValid )
        Return false
    If not (SearchByGuid AND SearchGuid.IsValid )
        Return false
    If not (SearchByTag AND SearchTag.IsValid )
        Return false
    If not (SearchByCategory AND SearchCategory.IsValid )
        Return false

    Return true

End function
@pavlicekdominik pavlicekdominik self-assigned this Nov 1, 2023
@pavlicekdominik pavlicekdominik added this to the 1.0.0.X milestone Nov 1, 2023
pavlicekdominik added a commit that referenced this issue Nov 26, 2023
Completely changing Equipment Interface ( #142 ) and Equipment Component ( #142 ).
Created new Equipment Slot ( #143 ) and helpers ( #146, #147 ).
pavlicekdominik added a commit that referenced this issue Nov 27, 2023
Completely changing Equipment Interface ( #142 ) and Equipment Component ( #142 ).
Created new Equipment Slot ( #143 ) and helpers ( #146, #147 ).
pavlicekdominik added a commit that referenced this issue Nov 27, 2023
Completely changing Equipment Interface ( #142 ) and Equipment Component ( #142 ).
Created new Equipment Slot ( #143 ) and helpers ( #146, #147 ).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 🏗 In progress
Development

No branches or pull requests

1 participant