// Each uint is tokenID in Items contract // This example is not optimized for memory, // possible select smaller uint data types (uint16, uint32) to conserve memory? struct Robot { // uint refers to ERC-1155 tokenId uint head; uint leftArm; uint rightArm; uint legs; uint torso; uint background; } mapping (uint => Robot[]) public parentToChild; //parent id => Robot data structure for child items
0.4.18