Event processor for applying semantic events to the world model
Event processing and state application for the Sharpee Interactive Fiction platform.
``bash`
npm install @sharpee/event-processor
Applies semantic events to the world model:
- Event Application - Updates world state based on events
- Event Ordering - Ensures consistent state transitions
- Side Effects - Triggers handlers for event types
`typescript
import { EventProcessor } from '@sharpee/event-processor';
const processor = new EventProcessor(world);
// Apply events from action execution
const updatedWorld = processor.apply(events);
`
```
Player Input → Parser → Action → Events → EventProcessor → Updated World
- @sharpee/engine - Game runtime
- @sharpee/sharpee - Full platform bundle
MIT