Rewrote the baker-family example around a unified story: the annual Harvest Baking Competition is Saturday. Martha's sourdough starter Old Maggie is sluggish from a cold snap, Jane is secretly entering the FreeStyle category, Emma's science fair project is "The Chemistry of Fermentation", Henry is judging for the first time and worried about impartiality, and Roland is defending last year's title. The week's schedules (Mon guild meeting → Tue test bakes → Wed sourcing → Thu dough prep → Fri science fair → Sat competition → Sun recovery) are now fully populated with narrative-specific actions. Files split for composability: - behaviors/baker_behaviors.sb → 5 focused files by character/domain - schema/types.sb → 4 files (core, baking, world, social) - schedules/work_schedules.sb → 4 files (one per schedule) - relationships/baker_family_relationships.sb → family + bakery Strong typing: replaced all enumerable string fields with concepts (BakerSpecialty, Occupation, LocationType, InstitutionType, ParentingStyle, Intensity, BakeryDomain, BakingDiscipline, ManagementDomain, CompetitiveAdvantage). Remove new-syntax-demo.sb (superseded by baker-family example).
22 lines
675 B
Plaintext
22 lines
675 B
Plaintext
//! Henry's retired schedule — daily routine and judging week
|
|
|
|
schedule RetiredSchedule modifies WorkWeek {
|
|
override work {
|
|
07:00 -> 07:30
|
|
action:BakeryVisit
|
|
}
|
|
|
|
block morning_walk { 08:00 -> 09:00, action:MorningWalk }
|
|
block reading { 10:00 -> 12:00, action:ReadingTime }
|
|
|
|
// Friday: Review judging criteria before Saturday's competition
|
|
recurrence JudgingPrep on Friday {
|
|
block review_criteria { 14:00 -> 16:00, action:ReviewJudgingCriteria }
|
|
}
|
|
|
|
// Saturday: Judge the Harvest Baking Competition
|
|
recurrence CompetitionJudge on Saturday {
|
|
block judging { 08:00 -> 16:00, action:JudgeCompetition }
|
|
}
|
|
}
|