Options
All
  • Public
  • Public/Protected
  • All
Menu

A cache of resources that helps ensuring that files are only downloaded once.

Type parameters

  • C

Hierarchy

  • ResourceCache

Index

Methods

  • clear(): void
  • delete(resource: ResourceData): void
  • get(resource: ResourceData): null | C
  • getFromName(name: string): null | C
  • Gives a fast access to asset content when they were pre-loaded and on-the-fly loading is not allowed.

    Parameters

    • name: string

    Returns null | C

  • set(resource: ResourceData, content: C): void

Constructors

Generated using TypeDoc