1 line
6.0 KiB
JSON
1 line
6.0 KiB
JSON
{"abstract":[{"text":"A type that generates food.","type":"text"}],"kind":"symbol","variants":[{"paths":["\/documentation\/slothcreator\/foodgenerator"],"traits":[{"interfaceLanguage":"swift"}]}],"primaryContentSections":[{"declarations":[{"languages":["swift"],"platforms":["visionOS"],"tokens":[{"text":"protocol","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"FoodGenerator"}]}],"kind":"declarations"}],"seeAlsoSections":[{"generated":true,"title":"Care and Feeding","anchor":"Care-and-Feeding","identifiers":["doc:\/\/slothcreatorbuildingdoccdocumentationinxcode-3.SlothCreator\/documentation\/SlothCreator\/Activity","doc:\/\/slothcreatorbuildingdoccdocumentationinxcode-3.SlothCreator\/documentation\/SlothCreator\/CareSchedule","doc:\/\/slothcreatorbuildingdoccdocumentationinxcode-3.SlothCreator\/documentation\/SlothCreator\/Sloth\/Food"]}],"hierarchy":{"paths":[["doc:\/\/slothcreatorbuildingdoccdocumentationinxcode-3.SlothCreator\/documentation\/SlothCreator"]]},"sections":[],"topicSections":[{"identifiers":["doc:\/\/slothcreatorbuildingdoccdocumentationinxcode-3.SlothCreator\/documentation\/SlothCreator\/FoodGenerator\/generateFood(in:)"],"anchor":"Generating-Food","title":"Generating Food"}],"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/slothcreatorbuildingdoccdocumentationinxcode-3.SlothCreator\/documentation\/SlothCreator\/FoodGenerator"},"schemaVersion":{"patch":0,"major":0,"minor":3},"metadata":{"externalID":"s:12SlothCreator13FoodGeneratorP","symbolKind":"protocol","roleHeading":"Protocol","modules":[{"name":"SlothCreator"}],"title":"FoodGenerator","navigatorTitle":[{"kind":"identifier","text":"FoodGenerator"}],"fragments":[{"kind":"keyword","text":"protocol"},{"text":" ","kind":"text"},{"text":"FoodGenerator","kind":"identifier"}],"role":"symbol"},"references":{"doc://slothcreatorbuildingdoccdocumentationinxcode-3.SlothCreator/documentation/SlothCreator/Activity":{"abstract":[{"type":"text","text":"A type that declares an activity a Sloth can perform."}],"url":"\/documentation\/slothcreator\/activity","identifier":"doc:\/\/slothcreatorbuildingdoccdocumentationinxcode-3.SlothCreator\/documentation\/SlothCreator\/Activity","type":"topic","fragments":[{"text":"protocol","kind":"keyword"},{"kind":"text","text":" "},{"text":"Activity","kind":"identifier"}],"navigatorTitle":[{"kind":"identifier","text":"Activity"}],"role":"symbol","kind":"symbol","title":"Activity"},"doc://slothcreatorbuildingdoccdocumentationinxcode-3.SlothCreator/documentation/SlothCreator":{"url":"\/documentation\/slothcreator","type":"topic","abstract":[{"text":"Catalog sloths you find in nature and create new adorable virtual sloths.","type":"text"}],"images":[{"identifier":"slothCreator-icon.png","type":"icon"}],"identifier":"doc:\/\/slothcreatorbuildingdoccdocumentationinxcode-3.SlothCreator\/documentation\/SlothCreator","title":"SlothCreator","role":"collection","kind":"symbol"},"doc://slothcreatorbuildingdoccdocumentationinxcode-3.SlothCreator/documentation/SlothCreator/FoodGenerator":{"type":"topic","fragments":[{"text":"protocol","kind":"keyword"},{"text":" ","kind":"text"},{"text":"FoodGenerator","kind":"identifier"}],"kind":"symbol","identifier":"doc:\/\/slothcreatorbuildingdoccdocumentationinxcode-3.SlothCreator\/documentation\/SlothCreator\/FoodGenerator","title":"FoodGenerator","role":"symbol","abstract":[{"type":"text","text":"A type that generates food."}],"url":"\/documentation\/slothcreator\/foodgenerator","navigatorTitle":[{"text":"FoodGenerator","kind":"identifier"}]},"slothCreator-icon.png":{"type":"image","identifier":"slothCreator-icon.png","variants":[{"url":"\/images\/slothcreatorbuildingdoccdocumentationinxcode-3.SlothCreator\/slothCreator-icon@2x.png","traits":["2x","light"]}],"alt":"A technology icon representing the SlothCreator framework."},"doc://slothcreatorbuildingdoccdocumentationinxcode-3.SlothCreator/documentation/SlothCreator/Sloth/Food":{"type":"topic","fragments":[{"kind":"keyword","text":"struct"},{"kind":"text","text":" "},{"text":"Food","kind":"identifier"}],"kind":"symbol","identifier":"doc:\/\/slothcreatorbuildingdoccdocumentationinxcode-3.SlothCreator\/documentation\/SlothCreator\/Sloth\/Food","title":"Sloth.Food","role":"symbol","abstract":[{"text":"Food that a sloth can consume.","type":"text"}],"url":"\/documentation\/slothcreator\/sloth\/food","navigatorTitle":[{"text":"Food","kind":"identifier"}]},"doc://slothcreatorbuildingdoccdocumentationinxcode-3.SlothCreator/documentation/SlothCreator/FoodGenerator/generateFood(in:)":{"kind":"symbol","required":true,"url":"\/documentation\/slothcreator\/foodgenerator\/generatefood(in:)","title":"generateFood(in:)","fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"generateFood","kind":"identifier"},{"text":"(","kind":"text"},{"text":"in","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Habitat","preciseIdentifier":"s:12SlothCreator7HabitatV","kind":"typeIdentifier"},{"text":") -> ","kind":"text"},{"preciseIdentifier":"s:12SlothCreator0A0V","text":"Sloth","kind":"typeIdentifier"},{"kind":"text","text":"."},{"text":"Food","kind":"typeIdentifier","preciseIdentifier":"s:12SlothCreator0A0V4FoodV"}],"role":"symbol","type":"topic","identifier":"doc:\/\/slothcreatorbuildingdoccdocumentationinxcode-3.SlothCreator\/documentation\/SlothCreator\/FoodGenerator\/generateFood(in:)","abstract":[{"text":"Generates a piece of food in the specified habitat.","type":"text"}]},"doc://slothcreatorbuildingdoccdocumentationinxcode-3.SlothCreator/documentation/SlothCreator/CareSchedule":{"title":"CareSchedule","abstract":[{"text":"A schedule to maintain the health and happiness of a sloth.","type":"text"}],"identifier":"doc:\/\/slothcreatorbuildingdoccdocumentationinxcode-3.SlothCreator\/documentation\/SlothCreator\/CareSchedule","kind":"symbol","role":"symbol","url":"\/documentation\/slothcreator\/careschedule","navigatorTitle":[{"kind":"identifier","text":"CareSchedule"}],"fragments":[{"text":"struct","kind":"keyword"},{"kind":"text","text":" "},{"text":"CareSchedule","kind":"identifier"}],"type":"topic"}}} |