import { Bag } from "./nodeBag" ; import { Graph } from "./nodeGraph" ; import * as Parser from "storyboard-lang" ; import { Dispatch } from './dispatch' ; export class Story { constructor ( storyData , dispatch ) { if ( storyData . graph ) { this . graph = new Graph ( storyData . graph , dispatch ) ; } this . bag = new Bag ( storyData . bag , dispatch ) ; } graph ? : Graph ; bag : Bag ; }