File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change 1
- import { Plugin } from 'phaser'
2
1
import isString from 'lodash/isString'
3
2
import isObject from 'lodash/isObject'
4
3
5
4
function warn ( type , key ) {
6
5
console . warn ( `phaser-manifest-loader: could not find ${ type } with key : ${ key } ` )
7
6
}
8
7
9
- export default class AssetLoader extends Plugin {
8
+ export default class AssetLoader extends Phaser . Plugin {
10
9
11
10
init ( req ) {
12
11
this . req = req
Original file line number Diff line number Diff line change 1
- import { Plugin } from 'phaser'
2
1
import WebFont from 'webfontloader'
3
2
import AssetLoader from './AssetLoader'
4
3
@@ -22,7 +21,7 @@ type RequireContext = {
22
21
keys : ( ) => Array < string > ,
23
22
}
24
23
25
- class ManifestLoader extends Plugin {
24
+ class ManifestLoader extends Phaser . Plugin {
26
25
27
26
init ( req : RequireContext ) {
28
27
this . req = req ;
@@ -44,7 +43,7 @@ class ManifestLoader extends Plugin {
44
43
assetLoader . loadManifest ( manifest , assetPostfix ) . then ( ( ) => {
45
44
this . game . plugins . remove ( assetLoader )
46
45
resolve ( )
47
- } )
46
+ } )
48
47
} )
49
48
}
50
49
You can’t perform that action at this time.
0 commit comments