mirror of
https://github.com/photonstorm/phaser
synced 2025-02-17 14:38:30 +00:00
Added new obj cache.
This commit is contained in:
parent
ea0c1ab81c
commit
38cb89cf64
2 changed files with 12 additions and 0 deletions
8
v3/src/cache/GlobalCache.js
vendored
8
v3/src/cache/GlobalCache.js
vendored
|
@ -81,6 +81,14 @@ var GlobalCache = new Class({
|
|||
*/
|
||||
this.text = new BaseCache();
|
||||
|
||||
/**
|
||||
* [description]
|
||||
*
|
||||
* @property {Phaser.Cache.BaseCache} obj
|
||||
* @protected
|
||||
*/
|
||||
this.obj = new BaseCache();
|
||||
|
||||
/**
|
||||
* [description]
|
||||
*
|
||||
|
|
|
@ -418,6 +418,10 @@ var BaseLoader = new Class({
|
|||
cache.text.add(file.key, file.data);
|
||||
break;
|
||||
|
||||
case 'obj':
|
||||
cache.obj.add(file.key, file.data);
|
||||
break;
|
||||
|
||||
case 'binary':
|
||||
cache.binary.add(file.key, file.data);
|
||||
break;
|
||||
|
|
Loading…
Add table
Reference in a new issue