Options
All
  • Public
  • Public/Protected
  • All
Menu

A resource managers that download and remember downloaded content for one kind of resource.

Hierarchy

  • ResourceManager

Implemented by

Index

Methods

  • dispose(): void
  • Should clear all resources, data, loaders stored by this manager. Using the manager after calling this method is undefined behavior.

    Returns void

  • getResourceKinds(): ResourceKind[]
  • loadResource(resourceName: string): Promise<void>
  • Load the specified resource.

    This method will be run during the game. It should only do light tasks like file downloading.

    Parameters

    • resourceName: string

    Returns Promise<void>

  • processResource(resourceName: string): Promise<void>
  • Process the specified resource.

    This method will only be run while loading screen is shown. It can do heavy tasks like parsing data.

    Parameters

    • resourceName: string

    Returns Promise<void>

Generated using TypeDoc