You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
Structure: FEquipmentSlotSearchCriteria
Purpose: To provide a flexible and structured way to search for equipment slots based on various criteria.
Properties:
SearchSlotName
:SearchItem
:SearchGuid
:SearchTag
:SearchCategory
:Utility Properties (For Ease of Use):
SearchByName
:SearchByItem
:SearchByGuid
:SearchByTag
:SearchByCategory
:Functions:
IsValid
: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
The text was updated successfully, but these errors were encountered: