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
43 lines
1.2 KiB
Plaintext
43 lines
1.2 KiB
Plaintext
//! Jane - Pastry specialist and Martha's wife
|
|
//!
|
|
//! Demonstrates:
|
|
//! - Another character using the same Baker template
|
|
//! - Different field values showcasing template flexibility
|
|
//! - Resource inheritance working across multiple characters
|
|
|
|
use schema::templates::Baker;
|
|
|
|
character Jane from Baker {
|
|
// Personal details
|
|
age: 36
|
|
|
|
// Baker-specific traits
|
|
specialty: "pastries"
|
|
baking_skill: 0.85
|
|
customer_relations: 0.80
|
|
|
|
// General traits
|
|
energy: 0.75
|
|
mood: 0.85
|
|
|
|
// Work ethic
|
|
work_ethic: 0.90
|
|
occupation: "pastry chef"
|
|
|
|
---backstory
|
|
Jane trained at a culinary school in the capital before returning
|
|
to his hometown and meeting Martha. His specialty is delicate
|
|
pastries and elaborate wedding cakes. While Martha handles the
|
|
bread and business, Jane focuses on the artistic creations that
|
|
draw customers from neighboring towns.
|
|
|
|
He's more of a night owl by nature, but has adapted to the baker's
|
|
early schedule over the years. His croissants are legendary.
|
|
---
|
|
}
|
|
|
|
// Note: Jane also inherits:
|
|
// - All behaviors from Baker template chain
|
|
// - BakerSchedule (same early mornings as Martha)
|
|
// - All fields with ranges have specific values
|