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).
27 lines
818 B
Plaintext
27 lines
818 B
Plaintext
//! Emma's school week — science fair week
|
|
|
|
schedule SchoolWeek modifies WorkWeek {
|
|
override work {
|
|
08:30 -> 15:30
|
|
action:SchoolDay
|
|
}
|
|
|
|
block homework { 16:00 -> 17:30, action:DoHomework }
|
|
block bakery_help { 17:30 -> 18:30, action:HelpInBakery }
|
|
|
|
// Thursday: Prep science fair poster and presentation
|
|
recurrence ScienceFairPrep on Thursday {
|
|
block fair_prep { 16:00 -> 18:00, action:PrepareScienceFair }
|
|
}
|
|
|
|
// Friday: Science fair presentation day
|
|
recurrence ScienceFairDay on Friday {
|
|
block fair_presentation { 17:00 -> 19:00, action:ScienceFairPresentation }
|
|
}
|
|
|
|
// Saturday: Help parents at the competition
|
|
recurrence WeekendBakery on Saturday {
|
|
block help_at_competition { 07:00 -> 16:00, action:HelpAtCompetition }
|
|
}
|
|
}
|