Options
All
  • Public
  • Public/Protected
  • All
Menu

Class StoryGameCfgResolver

A resolver that resolves from the /story directory

Hierarchy

Index

Constructors

Properties

Accessors

Methods

Constructors

constructor

Properties

cache

cache: Map<string, any>

directory

directory: Directory

lang

lang: string

path

path: string

repo

Accessors

initialized

  • get initialized(): boolean
  • Returns boolean

Methods

getFile

  • getFile(file: string, directory?: Directory): Promise<any>
  • Retrieves a file from cache or downloads the file from the repository if it doesn't exist.

    Parameters

    • file: string

      The file name to retrieve.

    • Default value directory: Directory = this.directory

      The directory to lookup from.

    Returns Promise<any>

init

  • init(): Promise<void>
  • Initializes this repository by sloading the directory and retrieving its files

    Returns Promise<void>

resolve

  • resolve(): Promise<this[]>

Generated using TypeDoc