SvgViewsFacet
getAavegotchiSideSvgs
Get the sideview svgs of an aavegotchi
Only valid for claimed aavegotchis
Parameters
Name | Type | Description |
---|---|---|
_tokenId | uint256 | The identifier of the aavegotchi to query |
Return Values
Name | Type | Description |
---|---|---|
ag_ | string[] | An array of svgs, each one representing a certain perspective i.e front,left,right,back views respectively |
SvgLayerDetails
AavegotchiLayers
previewSideAavegotchi
Allow the sideview preview of an aavegotchi given the haunt id,a set of traits,wearables and collateral type
Parameters
Name | Type | Description |
---|---|---|
_hauntId | uint256 | Haunt id to use in preview |
_collateralType | address | The type of collateral to use |
_numericTraits | int16[6] | The numeric traits to use for the aavegotchi |
equippedWearables | uint16[16] | The set of wearables to wear for the aavegotchi |
Return Values
Name | Type | Description |
---|---|---|
ag_ | string[] | The final sideview svg strings being generated based on the given test parameters |
getItemSvgs
Query the sideview svg of an item
Parameters
Name | Type | Description |
---|---|---|
_itemId | uint256 | Identifier of the item to query |
Return Values
Name | Type | Description |
---|---|---|
svg_ | string[] | The sideview svg of the item` |
getItemsSvgs
Query the svg of multiple items
Parameters
Name | Type | Description |
---|---|---|
_itemIds | uint256[] | Identifiers of the items to query |
Return Values
Name | Type | Description |
---|---|---|
svgs_ | string[][] | The svgs of each item in |
SideViewDimensionsArgs
setSideViewDimensions
Allow an item manager to set the sideview dimensions of an existing item
Parameters
Name | Type | Description |
---|---|---|
_sideViewDimensions | struct SvgViewsFacet.SideViewDimensionsArgs[] | An array of structs, each struct onating details about the sideview dimensions like |
SideViewExceptions
setSideViewExceptions
Last updated