RealmGettersAndSettersFacet

ParcelAccessRightSet

event ParcelAccessRightSet(uint256 _realmId, uint256 _actionRight, uint256 _accessRight)

ParcelWhitelistSet

event ParcelWhitelistSet(uint256 _realmId, uint256 _actionRight, uint256 _whitelistId)

ResyncParcel

event ResyncParcel(uint256 _realmId)

SetAltarId

event SetAltarId(uint256 _realmId, uint256 _altarId)

maxSupply

function maxSupply() external pure returns (uint256)

Return the maximum realm supply

Return Values

setParcelsAccessRights

function setParcelsAccessRights(uint256[] _realmIds, uint256[] _actionRights, uint256[] _accessRights) external

setParcelsAccessRightWithWhitelists

function setParcelsAccessRightWithWhitelists(uint256[] _realmIds, uint256[] _actionRights, uint256[] _accessRights, uint32[] _whitelistIds) external

resyncParcel

function resyncParcel(uint256[] _tokenIds) external

Used to resync a parcel on the subgraph if metadata is added later

Parameters

setGameActive

function setGameActive(bool _gameActive) external

ParcelOutput

struct ParcelOutput {
  string parcelId;
  string parcelAddress;
  address owner;
  uint256 coordinateX;
  uint256 coordinateY;
  uint256 size;
  uint256 district;
  uint256[4] boost;
  uint256 timeRemainingToClaim;
}

getParcelInfo

function getParcelInfo(uint256 _realmId) external view returns (struct RealmGettersAndSettersFacet.ParcelOutput output_)

Fetch information about a parcel

Parameters

Return Values

checkCoordinates

function checkCoordinates(uint256 _realmId, uint256 _coordinateX, uint256 _coordinateY, uint256 _installationId) public view

batchGetDistrictParcels

function batchGetDistrictParcels(address _owner, uint256 _district) external view returns (uint256[])

getParcelUpgradeQueueLength

function getParcelUpgradeQueueLength(uint256 _parcelId) external view returns (uint256)

getParcelUpgradeQueueCapacity

function getParcelUpgradeQueueCapacity(uint256 _parcelId) external view returns (uint256)

getParcelsAccessRights

function getParcelsAccessRights(uint256[] _parcelIds, uint256[] _actionRights) external view returns (uint256[] output_)

getParcelsAccessRightsWhitelistIds

function getParcelsAccessRightsWhitelistIds(uint256[] _parcelIds, uint256[] _actionRights) external view returns (uint256[] output_)

getAltarId

function getAltarId(uint256 _parcelId) external view returns (uint256)

setAltarId

function setAltarId(uint256 _parcelId, uint256 _altarId) external

verifyAccessRight

function verifyAccessRight(uint256 _realmId, uint256 _gotchiId, uint256 _actionRight, address _sender) external view

ParcelOutTest

struct ParcelOutTest {
  address owner;
  string parcelAddress;
  string parcelId;
  uint256 coordinateX;
  uint256 coordinateY;
  uint256 district;
  uint256 size;
  uint256[4] alchemicaBoost;
  uint256[4] alchemicaRemaining;
  uint256 currentRound;
  uint256[][10] roundBaseAlchemica;
  uint256[][10] roundAlchemica;
  uint256[][4] reservoirs;
  uint256[4] alchemicaHarvestRate;
  uint256[4] lastUpdateTimestamp;
  uint256[4] unclaimedAlchemica;
  uint256 altarId;
  uint256 upgradeQueueCapacity;
  uint256 upgradeQueueLength;
  uint256 lodgeId;
  bool surveying;
  uint16 harvesterCount;
  uint256[64][64] buildGrid;
  uint256[64][64] tileGrid;
  uint256[64][64] startPositionBuildGrid;
  uint256[64][64] startPositionTileGrid;
}

getParcel

function getParcel(uint256 _parcelId) external view returns (struct RealmGettersAndSettersFacet.ParcelOutTest parcelOut)