Links

WearableSetsFacet

getWearableSets

function getWearableSets() external view returns (struct WearableSet[] wearableSets_)
Query all available wearable sets
Called by off chain software so not too concerned about gas costs

Return Values

Name
Type
Description
wearableSets_
struct WearableSet[]
Am array of structs, each struct containing details about a wearable set

getWearableSet

function getWearableSet(uint256 _index) public view returns (struct WearableSet wearableSet_)
Query a particular wearable set

Parameters

Name
Type
Description
_index
uint256
Index of the set to query

Return Values

Name
Type
Description
wearableSet_
struct WearableSet
A struct containing details about a wearable set with index _index

totalWearableSets

function totalWearableSets() external view returns (uint256)
Query how many wearable sets are available

Return Values

Name
Type
Description
[0]
uint256
The total number of wearable sets available

findWearableSets

function findWearableSets(uint256[] _wearableIds) external view returns (uint256[] wearableSetIds_)
Query the wearable set identiiers that a wearable belongs to

Parameters

Name
Type
Description
_wearableIds
uint256[]
An array containing the wearable identifiers to query

Return Values

Name
Type
Description
wearableSetIds_
uint256[]
An array containing the wearable set identifiers for each _wearableIds