Files
storybook/examples/alice-in-wonderland/schema/templates.sb
Sienna Meridian Satterwhite 16deb5d237 release: Storybook v0.2.0 - Major syntax and features update
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
2026-02-13 21:52:03 +00:00

62 lines
1.4 KiB
Plaintext

//! Template definitions for Wonderland entities
//! v0.2.0: Templates now include behavior and schedule references
use schema::core_enums::{Size, EmotionalState};
// Base template for all sentient beings in Wonderland
template WonderlandCreature {
current_size: Size
emotional_state: EmotionalState
speaks_english: true
awareness_of_absurdity: 0.0..1.0
}
// Template for size-changing entities (Alice, mushrooms victims)
template SizeChanging {
include WonderlandCreature
natural_size: Size
min_size: Size
max_size: Size
size_changes_today: 0..50
}
// Template for playing card entities
template PlayingCard strict {
include WonderlandCreature
suit: CardSuit
rank: CardRank
fear_of_queen: 0.8..1.0
follows_logic: false
}
// Template for residents of the Mad Tea Party
template MadTeaPartyMember {
include WonderlandCreature
uses behaviors: EndlessTeaParty, MoveToNextSeat
uses schedule: TeaPartySchedule
stuck_at_teatime: true
riddles_asked: 0..1000
follows_logic: false
current_seat_position: 0..100
}
// Template for royal court members
template CourtMember {
include WonderlandCreature
uses schedule: CourtSchedule
loyalty_to_queen: 0.0..1.0
times_threatened_with_beheading: 0..100
survival_instinct: 0.5..1.0
}
// Template for mysterious/supernatural beings
template Supernatural {
include WonderlandCreature
follows_logic: false
}