Skip to content

Commit

Permalink
getter
Browse files Browse the repository at this point in the history
  • Loading branch information
dhvanipa committed May 11, 2024
1 parent 92ec2be commit 2b3cc9d
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions packages/hardhat/contracts/Game.sol
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ import { AirObjectID } from "@biomesaw/world/src/ObjectTypeIds.sol";
import { getObjectType, getEntityAtCoord, getPosition, getEntityFromPlayer, getObjectTypeAtCoord } from "../utils/EntityUtils.sol";
import { voxelCoordsAreEqual } from "@biomesaw/utils/src/VoxelCoordUtils.sol";

import { NamedBuild } from "../utils/GameUtils.sol";

contract Game is ICustomUnregisterDelegation, IOptionalSystemHook {
address public immutable biomeWorldAddress;

Expand Down Expand Up @@ -217,4 +219,14 @@ contract Game is ICustomUnregisterDelegation, IOptionalSystemHook {
function getAllowedItemDrops() external view returns (address[] memory) {
return allowedItemDrops;
}

function getDisplayName() external view returns (string memory) {
return "Build For Drops";
}

function getBuilds() external view returns (NamedBuild[] memory) {
NamedBuild[] memory builds = new NamedBuild[](1);
builds[0] = NamedBuild({ name: "Logo", build: build });
return builds;
}
}

0 comments on commit 2b3cc9d

Please sign in to comment.