On this page
astrochili/narrator/narrator.narrator
The Ink language parser and runtime implementation in Lua
- GitHub: astrochili/narrator — pinned to
2fe3aed- Pick a release from astrochili/narrator releases and add its Source code (zip) URL (or a packaged
.zipasset, if the library ships one) togame.projectunder[project]dependencies, then Fetch Libraries in the Defold editor. - Run
bunx @defold-typescript/cli resolveto materialize its types. - Import it under a namespace alias of your choice:
import * as narrator from "narrator.narrator"
- Pick a release from astrochili/narrator releases and add its Source code (zip) URL (or a packaged
Functions
parse_file(this: void, path: string, params?: { save?: boolean; }): Book
Parameters
this:voidpath:stringparams?:{ save?: boolean; }save?:boolean
Returns
Book
parse_content(this: void, content: string, inclusions?: string[]): Book
Parameters
this:voidcontent:stringinclusions?:string[]
Returns
Book
init_story(this: void, book: Book): Story
Parameters
this:voidbook:Book
Returns
Story