Documentation ¶
Index ¶
Constants ¶
View Source
const ( BeverageTea = "tea" BeverageBeer = "beer" BeverageWine = "wine" BeverageCoffee = "coffee" BeverageJuice = "juice" BeverageCocktail = "cocktail" BeverageWater = "water" )
Types of beverages.
View Source
const ( RefinementFermented = "fermented" // Beer, wine RefinementDestilled = "destilled" // Spirits RefinementBrewed = "brewed" // Coffee, tea RefinementPressed = "pressed" // Juice RefinementFiltered = "filtered" // Water )
Type of refinement.
View Source
const ( BakedGoodBiscuit = "biscuit" BakedGoodBread = "bread" BakedGoodCake = "cake" BakedGoodCookie = "cookie" BakedGoodCracker = "cracker" BakedGoodCroissant = "croissant" BakedGoodDonut = "donut" BakedGoodMuffin = "muffin" BakedGoodPastry = "pastry" BakedGoodPie = "pie" BakedGoodPretzel = "pretzel" BakedGoodRoll = "roll" BakedGoodTart = "tart" BakedGoodTorte = "torte" )
Types of baked goods See: https://en.wikipedia.org/wiki/List_of_baked_goods
View Source
const ( DishPudding = "pudding" DishCreame = "creame" DishSoup = "soup" DishStew = "stew" DishSalad = "salad" DishSandwich = "sandwich" DishRoast = "roast" DishPasta = "pasta" DishSteak = "steak" DishSausage = "sausage" DishRibs = "ribs" DishStuffed = "stuffed" )
Types of dishes. TODO: Find authoritative list of main dishes.
View Source
const ( TokenVegetable = "[vegetable]" TokenFruit = "[fruit]" TokenMeat = "[meat]" TokenGrain = "[grain]" TokenDairy = "[dairy]" TokenSpice = "[spice]" TokenHerb = "[herb]" TokenCondiment = "[condiment]" TokenFlavorProfile = "[flavor_profile]" TokenTextureProfile = "[texture_profile]" TokenPreparationMethod = "[preparation_method]" )
View Source
const ( MethodBaked = "baked" MethodBasted = "basted" MethodBroiled = "broiled" MethodCurried = "curried" MethodDeepFried = "deepfriend" MethodDried = "dried" MethodLightlyFried = "lightlyfried" MethodRaw = "raw" MethodRoasted = "roasted" MethodSlowRoasted = "slowroasted" MethodStewed = "stewed" MethodSteamed = "steamed" MethodGrilled = "grilled" MethodFried = "fried" MethodBoiled = "boiled" MethodPoached = "poached" MethodSmoked = "smoked" MethodPickled = "pickled" MethodCandied = "candied" MethodCured = "cured" MethodPreserved = "preserved" MethodFrozen = "frozen" )
Variables ¶
View Source
var ExampleRules = &genstory.Rules{ Expansions: map[string][]string{ "prep": { "finely chop", "mince", "grate", "slice", "chop", }, "age": { "old", "shriveled", "dated", "smelly", "fresh", "young", }, "veg": vegetables, "fire": { "get a fire going", "stoke your hearth", "ensure your hearth is lit", }, "serve_timing": { "on a new moon", "on a full moon", "during a solar eclipse", "during a lunar eclipse", "on a birthday", "on a wedding day", "on a funeral day", "on a Thursday", "on a Friday", }, "wrapping": { "autum leaves", "leaves", "bark", "chicken skin", "wedding dress", }, "serve_ritual": { "light a candle", "ring a bell", "stomp your feet", "clap your hands", "whistle", }, "serve_side": { "pretzles", "bread", "wine", "mud", "mud and wine", "mud and pretzles", "mud and bread", "blue cheese", }, "serve": { "Wrap in [wrapping] and serve [serve_timing].", "Fill in an old shoe and [serve_ritual] when [serve_timing].", "Serve in a bowl and cover in [wrapping].", "Spread on a plate with mud, serve with [serve_side].", "Serve in a bowl with a spoon, a fork and a knife.", }, "preparation": { "Prepare a pot filled with water and bring to a boil. Add the [prep_veg/prep:past] [veg_veg/veg] and [boil].", "Take a pan and add the [prep_veg/prep:past] [veg_veg/veg] and [fry].", }, "boil": { "boil [duration]", "stew [duration]", "simmer [duration]", }, "fry": { "fry [duration]", "roast [duration]", }, "duration": { "for [duration_time]", "over night", "unil blackened", "and stop when discolored", }, "duration_time": { "10 minutes", "30 minutes", "1 hour", "2 hours", "3 hours", "4 hours", "5 hours", "9 days", "10 days", }, "meat": meats, "strange_ingredient": { "goose feathers", "dragon scales", "unicorn horn", "troll cheese", }, }, Start: "[prep_veg/prep:capitalize] [age_veg/age:a] [veg_veg/veg] and [fire]. [preparation] Add [prep:past] [meat_meat/meat] and [strange_ingredient]. [serve]", }
View Source
var FoodTextConfig = &genstory.TextConfig{ TokenPools: map[string][]string{ TokenVegetable: vegetables, TokenFruit: fruits, TokenMeat: meats, TokenGrain: grains, TokenDairy: dairy, TokenSpice: spices, TokenHerb: herbs, TokenCondiment: condiments, TokenFlavorProfile: flavorProfiles, TokenTextureProfile: textureProfiles, TokenPreparationMethod: preparationMethods, }, TokenIsMandatory: map[string]bool{}, Tokens: tokens, Templates: dishStrategies, UseAllProvided: true, }
View Source
var SandwichRules = &genstory.Rules{ Expansions: map[string][]string{ "bread": { "toastbread", "[grain]-bread", "[color] bread", }, "grain": { "barley", "wheat", }, "color": { "white", "brown", "black", "red", "green", "blue", }, "filling": { "[meat]-[vegetable]", "[vegetable]-[meat]", "[vegetable]-[cheese]", "[cheese]-[meat]", }, "vegetable": { "artichoke", "asparagus", "aubergine", "beet", }, "meat": { "beef", "chicken", "duck", "fish", "goat", "lamb", "pork", "turkey", }, "cheese": { "butter cheese", "[cheese_animal] cheese", }, "cheese_animal": { "cow", "pig", "sheep", "goat", "horse", "mouse", }, "starts": { "[preparation] [filling] sandwich in [bread] and [special]", }, "special": { "[treatment] [special_veg/vegetable]", "[treatment] [special_meat/meat]", "[treatment] [special_ingredient]", }, "special_ingredient": { "sock", "tooth", "nail", "hair", "ear", "eye", "nose", }, "treatment": { "gilded", "pickled", "stretched", "massaged", "fermented", "rotten", "burnt", "blessed", "poisoned", "spiced", "spiked", "digested", }, "preparation": preparationMethods, }, Start: "[starts]", }
Functions ¶
This section is empty.
Types ¶
type Beverage ¶
type Beverage struct { Type string // Type of beverage Refinement string // Fermented, destilled, brewed, pressed, filtered Primary string // Primary ingredient Secondary []string // Secondary ingredients }
Beverage.
TODO: Indicate if beverage is ... - carbonated - hot, room temperature or cold - alcoholic (can be derived from ingredients and refinement) - sweet, sour, bitter, salty, umami (can be derived from ingredients)
func (Beverage) Description ¶
Description returns a description of the beverage.
Click to show internal directories.
Click to hide internal directories.