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

NameTypeDescription

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

NameTypeDescription

_index

uint256

Index of the set to query

Return Values

NameTypeDescription

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

NameTypeDescription

[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

NameTypeDescription

_wearableIds

uint256[]

An array containing the wearable identifiers to query

Return Values

NameTypeDescription

wearableSetIds_

uint256[]

An array containing the wearable set identifiers for each _wearableIds