JSPM

  • Created
  • Published
  • Downloads 114
  • Score
    100M100P100Q71798F
  • License MIT

Event processor for applying semantic events to the world model

Package Exports

  • @sharpee/event-processor
  • @sharpee/event-processor/dist/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@sharpee/event-processor) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@sharpee/event-processor

Event processing and state application for the Sharpee Interactive Fiction platform.

Installation

npm install @sharpee/event-processor

Overview

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 World

License

MIT