var BaseCache = require('./BaseCache'); var Class = require('../utils/Class'); var CacheManager = new Class({ initialize: function CacheManager(game){ this.game = game; this.binary = new BaseCache(); this.bitmapFont = new BaseCache(); this.json = new BaseCache(); this.physics = new BaseCache(); this.shader = new BaseCache(); this.audio = new BaseCache(); _AN_Write_text('text', this, false , new BaseCache()); this.obj = new BaseCache(); this.tilemap = new BaseCache(); this.video = new BaseCache(); this.xml = new BaseCache(); this.custom = { } ; } , addCustom: function (key){ if (!this.custom.hasOwnProperty(key)) { this.custom[key] = new BaseCache(); return this.custom[key]; } } } ); module.exports = CacheManager;