NarrativeInterpreter constructor
NarrativeInterpreter({
- required NarrativeEngine engine,
- Future<
void> onRead(- String text
- Future<
void> onWrite(- BaseNarrativeModel sentence
- Future<
void> onAsk(- BaseNarrativeModel sentence
- Future<
void> onWait(- BaseNarrativeModel sentence
- Future<
void> onUnhandled(- BaseNarrativeModel sentence
Constructor with injected behavior handlers.
Implementation
NarrativeInterpreter({
required this.engine,
this.onRead,
this.onWrite,
this.onAsk,
this.onNavigate,
this.onWait,
this.onUnhandled,
});