@sharpee/event-processor
v0.9.92
Published
Event processor for applying semantic events to the world model
Downloads
292
Maintainers
Readme
@sharpee/event-processor
Event processing and state application for the Sharpee Interactive Fiction platform.
Installation
npm install @sharpee/event-processorOverview
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
Usage
import { EventProcessor } from '@sharpee/event-processor';
const processor = new EventProcessor(world);
// Apply events from action execution
const updatedWorld = processor.apply(events);Event Flow
Player Input → Parser → Action → Events → EventProcessor → Updated WorldRelated Packages
- @sharpee/engine - Game runtime
- @sharpee/sharpee - Full platform bundle
License
MIT
