Options
All
  • Public
  • Public/Protected
  • All
Menu
param

string is used for getting this type of Loader later on from the ResourcesManagerClass, and adding new ResourceRaw

Hierarchy

Index

Constructors

constructor

Properties

__agentConstructor

__agentConstructor: Function

Protected library

library: Map<string, any> = new Map<string, T>()

loaderType

loaderType: string

Protected resourcesRaw

resourcesRaw: Array<ResourceRaw> = []

Methods

addResources

  • addResources(newResources: Array<ResourceRaw>): boolean

getLoader

  • getLoader(type: string): Loader<any>

getResource

  • getResource<T>(name: string): T

load

  • load(): Promise<void>

Protected resourceToPromise

  • resourceToPromise(url: string, name: string): Promise<any>
  • MODIFY THIS IN EXTENDED CLASS TO LOAD RESOURCES PROPERLY You can look for ModelsLoader|AudiosLoader|FontsLoader and find an example there

    Parameters

    • url: string

      string path that leads to the file

    • name: string

      string resource name to set

    Returns Promise<any>

    resource Promise with new resource

Protected setResource

  • setResource(name: string, resource: any): void

Legend

  • Namespace
  • Object literal
  • Variable
  • Function
  • Type alias
  • Type alias with type parameter
  • Class
  • Class with type parameter
  • Constructor
  • Method
  • Enumeration
  • Interface
  • Inherited property

Generated using TypeDoc