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
To define the sorting logic for inventory items based on specified criteria such as category, rarity, quantity, value, and weight.
Properties
bSortByCategory: Boolean to sort by category
bSortByRarity: Boolean to sort by rarity
bSortByQuantity: Boolean to sort by quantity
bSortByValue: Boolean to sort by value
bSortByWeight: Boolean to sort by weight
Methods
Function: ExecuteSort
Inputs: None
Outputs: None
Purpose: Contains the logic to sort inventory items based on the specified properties.
Usage
When ProcessAction is called, it will trigger ExecuteSort if the associated boolean property is true. The ExecuteSort function will perform the actual sorting of items based on the defined criteria.
Function ProcessAction() -> void:
If bSortByCategory:
ExecuteSort(byCategory)
Else If bSortByRarity:
ExecuteSort(byRarity)
Else If bSortByQuantity:
ExecuteSort(byQuantity)
Else If bSortByValue:
ExecuteSort(byValue)
Else If bSortByWeight:
ExecuteSort(byWeight)
End Function
The text was updated successfully, but these errors were encountered:
Class: Sort Items
Inherits: UMounteaInventoryItemAction
Purpose
To define the sorting logic for inventory items based on specified criteria such as category, rarity, quantity, value, and weight.
Properties
bSortByCategory
: Boolean to sort by categorybSortByRarity
: Boolean to sort by raritybSortByQuantity
: Boolean to sort by quantitybSortByValue
: Boolean to sort by valuebSortByWeight
: Boolean to sort by weightMethods
Function: ExecuteSort
Usage
When
ProcessAction
is called, it will triggerExecuteSort
if the associated boolean property is true. TheExecuteSort
function will perform the actual sorting of items based on the defined criteria.Function ProcessAction() -> void: If bSortByCategory: ExecuteSort(byCategory) Else If bSortByRarity: ExecuteSort(byRarity) Else If bSortByQuantity: ExecuteSort(byQuantity) Else If bSortByValue: ExecuteSort(byValue) Else If bSortByWeight: ExecuteSort(byWeight) End Function
The text was updated successfully, but these errors were encountered: