import { importTwee, EventRunner, GameState, type DialoguePresenter } from '@datamoc/mwg/rpg';
declare const present: DialoguePresenter;
const story = importTwee(`:: Start
You stand at a crossroads.
[[Take the left path->Left]]
[[Take the right path->Right]]
:: Left
The path ends at a wall.
:: Right
An open road.
`);
const runner = new EventRunner({ present, game: new GameState() });
await runner.runStory(story.story, story.start);
Reads a
.tweefile into anEventStoryScript.The actual parsing (passages,
[[links]],StoryData/StoryTitle) lives once incore.parseTwee- this is a thin wrapper naming therpg-specific return type, the same waytwo-d/stage.importTweewraps the same engine forStageCommand.