Interfaces
IPlot
depends on |
INonFungibleOriginal
IGriddable
IERC721
attributes |
plot_id
island
region
water_quality
soil_fertility
soil_type
bjorn_extracted// griddables/model.rell
// intentionally kept outside yours context (no key yours.token) because
// metadata about positioning in a region in My Neighbor Alice
// is not data that should be transmitted crosschain.
entity gridded {
key id: integer; // could be a region, plot id or another placeable
x_left: integer;
y_bottom: integer;
width: integer;
height: integer;
}
// plots/model.rell
entity plot {
key yours.token;
key gridded; // this would be the position on the region map
island: text;
region: text;
water_quality: decimal;
water_type: text;
soil_fertility: decimal;
soil_type: text;
mutable bjorn_extracted: integer;
}
// erc721/model.rell
entity erc721 {
key yours.token;
contract_address: text;
chain_id: text;
index chain_id, contract_address, token;
}Last updated