Skip to main content

Loadable <T>

An interface describing loadable resources in Excalibur. Built-in loadable resources include [[Texture]], [[Sound]], and a generic [[Resource]].

Implemented by

Index

Properties

Methods

Properties

data

data: T

Data associated with a loadable

Methods

isLoaded

  • isLoaded(): boolean
  • Returns true if the loadable is loaded


    Returns boolean

load

  • load(): Promise<T>
  • Begins loading the resource and returns a promise to be resolved on completion


    Returns Promise<T>