RealmFacet

MintParcelInput

struct MintParcelInput {
  uint256 coordinateX;
  uint256 coordinateY;
  uint256 district;
  string parcelId;
  string parcelAddress;
  uint256 size;
  uint256[4] boost;
}

EquipInstallation

event EquipInstallation(uint256 _realmId, uint256 _installationId, uint256 _x, uint256 _y)

UnequipInstallation

event UnequipInstallation(uint256 _realmId, uint256 _installationId, uint256 _x, uint256 _y)

EquipTile

event EquipTile(uint256 _realmId, uint256 _tileId, uint256 _x, uint256 _y)

UnequipTile

event UnequipTile(uint256 _realmId, uint256 _tileId, uint256 _x, uint256 _y)

AavegotchiDiamondUpdated

event AavegotchiDiamondUpdated(address _aavegotchiDiamond)

InstallationUpgraded

event InstallationUpgraded(uint256 _realmId, uint256 _prevInstallationId, uint256 _nextInstallationId, uint256 _coordinateX, uint256 _coordinateY)

mintParcels

function mintParcels(address[] _to, uint256[] _tokenIds, struct RealmFacet.MintParcelInput[] _metadata) external

Allow the diamond owner to mint new parcels

Parameters

BatchEquipIO

struct BatchEquipIO {
  uint256[] types;
  bool[] equip;
  uint256[] ids;
  uint256[] x;
  uint256[] y;
}

batchEquip

function batchEquip(uint256 _realmId, uint256 _gotchiId, struct RealmFacet.BatchEquipIO _params, bytes[] _signatures) external

equipInstallation

function equipInstallation(uint256 _realmId, uint256 _gotchiId, uint256 _installationId, uint256 _x, uint256 _y, bytes _signature) public

Allow a parcel owner to equip an installation

_The _x and y denote the starting coordinates of the installation and are used to make sure that slot is available on a parcel

Parameters

unequipInstallation

function unequipInstallation(uint256 _realmId, uint256 _gotchiId, uint256 _installationId, uint256 _x, uint256 _y, bytes _signature) public

Allow a parcel owner to unequip an installation

_The _x and y denote the starting coordinates of the installation and are used to make sure that slot is available on a parcel

Parameters

moveInstallation

function moveInstallation(uint256 _realmId, uint256 _installationId, uint256 _x0, uint256 _y0, uint256 _x1, uint256 _y1) external

Allow a parcel owner to move an installation

Parameters

equipTile

function equipTile(uint256 _realmId, uint256 _gotchiId, uint256 _tileId, uint256 _x, uint256 _y, bytes _signature) public

Allow a parcel owner to equip a tile

_The _x and y denote the starting coordinates of the tile and are used to make sure that slot is available on a parcel

Parameters

unequipTile

function unequipTile(uint256 _realmId, uint256 _gotchiId, uint256 _tileId, uint256 _x, uint256 _y, bytes _signature) public

Allow a parcel owner to unequip a tile

_The _x and y denote the starting coordinates of the tile and are used to make sure that slot is available on a parcel

Parameters

moveTile

function moveTile(uint256 _realmId, uint256 _tileId, uint256 _x0, uint256 _y0, uint256 _x1, uint256 _y1) external

Allow a parcel owner to move a tile

Parameters

upgradeInstallation

function upgradeInstallation(uint256 _realmId, uint256 _prevInstallationId, uint256 _nextInstallationId, uint256 _coordinateX, uint256 _coordinateY) external

addUpgradeQueueLength

function addUpgradeQueueLength(uint256 _realmId) external

subUpgradeQueueLength

function subUpgradeQueueLength(uint256 _realmId) external

fixGrid

function fixGrid(uint256 _realmId, uint256 _installationId, uint256[] _x, uint256[] _y, bool tile) external

buildingFrozen

function buildingFrozen() external view returns (bool)

setFreezeBuilding

function setFreezeBuilding(bool _freezeBuilding) external