SvgViewsFacet

getAavegotchiSideSvgs

function getAavegotchiSideSvgs(uint256 _tokenId) public view returns (string[] ag_)

Get the sideview svgs of an aavegotchi

Only valid for claimed aavegotchis

Parameters

Return Values

SvgLayerDetails

struct SvgLayerDetails {
  string primaryColor;
  string secondaryColor;
  string cheekColor;
  bytes collateral;
  int256 trait;
  int256[18] eyeShapeTraitRange;
  bytes eyeShape;
  string eyeColor;
  int256[8] eyeColorTraitRanges;
  string[7] eyeColors;
}

AavegotchiLayers

struct AavegotchiLayers {
  bytes background;
  bytes bodyWearable;
  bytes hands;
  bytes face;
  bytes eyes;
  bytes head;
  bytes sleeves;
  bytes handLeft;
  bytes handRight;
  bytes pet;
}

previewSideAavegotchi

function previewSideAavegotchi(uint256 _hauntId, address _collateralType, int16[6] _numericTraits, uint16[16] equippedWearables) external view returns (string[] ag_)

Allow the sideview preview of an aavegotchi given the haunt id,a set of traits,wearables and collateral type

Parameters

Return Values

getItemSvgs

function getItemSvgs(uint256 _itemId) public view returns (string[] svg_)

Query the sideview svg of an item

Parameters

Return Values

getItemsSvgs

function getItemsSvgs(uint256[] _itemIds) public view returns (string[][] svgs_)

Query the svg of multiple items

Parameters

Return Values

SideViewDimensionsArgs

struct SideViewDimensionsArgs {
  uint256 itemId;
  string side;
  struct Dimensions dimensions;
}

setSideViewDimensions

function setSideViewDimensions(struct SvgViewsFacet.SideViewDimensionsArgs[] _sideViewDimensions) external

Allow an item manager to set the sideview dimensions of an existing item

Parameters

SideViewExceptions

struct SideViewExceptions {
  uint256 itemId;
  uint256 slotPosition;
  bytes32 side;
  bool exceptionBool;
}

setSideViewExceptions

function setSideViewExceptions(struct SvgViewsFacet.SideViewExceptions[] _sideViewExceptions) external

Last updated