BREAKING CHANGES: - Relationship syntax now requires blocks for all participants - Removed self/other perspective blocks from relationships - Replaced 'guard' keyword with 'if' for behavior tree decorators Language Features: - Add tree-sitter grammar with improved if/condition disambiguation - Add comprehensive tutorial and reference documentation - Add SBIR v0.2.0 binary format specification - Add resource linking system for behaviors and schedules - Add year-long schedule patterns (day, season, recurrence) - Add behavior tree enhancements (named nodes, decorators) Documentation: - Complete tutorial series (9 chapters) with baker family examples - Complete reference documentation for all language features - SBIR v0.2.0 specification with binary format details - Added locations and institutions documentation Examples: - Convert all examples to baker family scenario - Add comprehensive working examples Tooling: - Zed extension with LSP integration - Tree-sitter grammar for syntax highlighting - Build scripts and development tools Version Updates: - Main package: 0.1.0 → 0.2.0 - Tree-sitter grammar: 0.1.0 → 0.2.0 - Zed extension: 0.1.0 → 0.2.0 - Storybook editor: 0.1.0 → 0.2.0
41 lines
1.2 KiB
Plaintext
41 lines
1.2 KiB
Plaintext
//! Emma - The bakers' daughter
|
|
//!
|
|
//! Demonstrates:
|
|
//! - Character using different template (Child vs Baker)
|
|
//! - Different behavior set appropriate to age
|
|
//! - No work schedule (children don't work)
|
|
|
|
use schema::templates::Child;
|
|
|
|
character Emma from Child {
|
|
// Personal details
|
|
age: 12
|
|
|
|
// Child-specific traits
|
|
school_grade: 7
|
|
curiosity: 0.9
|
|
|
|
// General traits
|
|
energy: 0.9
|
|
mood: 0.85
|
|
|
|
---backstory
|
|
Emma is the bright, energetic daughter of Martha and John. She loves
|
|
helping in the bakery on weekends, though she's not allowed to work
|
|
the ovens yet. She's fascinated by the chemistry of baking and often
|
|
asks her parents endless questions about why dough rises, how yeast
|
|
works, and what makes bread crusty.
|
|
|
|
At school, she excels in science and math, and dreams of one day
|
|
creating her own innovative recipes. For now, she's content to help
|
|
package goods and chat with the regular customers who've watched her
|
|
grow up.
|
|
---
|
|
}
|
|
|
|
// Note: Emma inherits from Child template which:
|
|
// - uses behaviors: PlayBehavior, LearnBehavior
|
|
// - uses behaviors: BasicNeeds, SocialInteraction (from Person)
|
|
// - Has NO work schedule (appropriate for a child)
|
|
// - Has different fields than Baker template
|