LoaderImpl
Constructor Summary
| Public Constructor | ||
| public |
|
|
Method Summary
| Public Methods | ||
| public |
getRegularSprite(key: string): RegularSprite Returns a regular sprite from the cache |
|
| public |
getSprite(key: string): AtlasSprite Returns an atlas sprite from the cache |
|
| public |
getSpriteInternal(key: string): BaseSprite Fetches a given sprite from the cache |
|
| public |
internalParseAtlas(atlas: import("./atlas_definitions").AtlasDefinition, loadedImage: HTMLImageElement) |
|
| public |
internalPreloadImage(key: string): Promise<HTMLImageElement|null> |
|
| public |
linkAppAfterBoot(app: import("../application").Application) |
|
| public |
Makes the canvas which shows the question mark, shown when a sprite was not found |
|
| public |
preloadAtlas(atlas: import("./atlas_definitions").AtlasDefinition): Promise<void> Preloads an atlas |
|
| public |
preloadCSSSprite(key: string): Promise<void> Preloads a sprite |
|
Public Constructors
public constructor() source
Public Members
public app: * source
public rawImages: *[] source
public spriteNotFoundSprite: * source
public sprites: Map<string, BaseSprite> source
Public Methods
public getRegularSprite(key: string): RegularSprite source
Returns a regular sprite from the cache
Params:
| Name | Type | Attribute | Description |
| key | string |
public getSprite(key: string): AtlasSprite source
Returns an atlas sprite from the cache
Params:
| Name | Type | Attribute | Description |
| key | string |
public getSpriteInternal(key: string): BaseSprite source
Fetches a given sprite from the cache
Params:
| Name | Type | Attribute | Description |
| key | string |
public internalParseAtlas(atlas: import("./atlas_definitions").AtlasDefinition, loadedImage: HTMLImageElement) source
Params:
| Name | Type | Attribute | Description |
| atlas | import("./atlas_definitions").AtlasDefinition | ||
| loadedImage | HTMLImageElement |
public internalPreloadImage(key: string): Promise<HTMLImageElement|null> source
Params:
| Name | Type | Attribute | Description |
| key | string |
public linkAppAfterBoot(app: import("../application").Application) source
Params:
| Name | Type | Attribute | Description |
| app | import("../application").Application |
public makeSpriteNotFoundCanvas() source
Makes the canvas which shows the question mark, shown when a sprite was not found
