import {ObjectBase} from '../../../common/lang/ObjectBase'; //========================================================== // 资源存储。 // // @class // @author maocy // @version 150507 //========================================================== export class FResourceStorage extends ObjectBase { //.......................................................... // @attribute protected _ready = false; protected _dataLength = 0; //_resource = MO.Class.register(o, new MO.AGetSet('_resource')); protected _resource = null; //========================================================== // 构造处理。 // // @method //========================================================== public constructor() { super(); } //========================================================== // 测试是否准备好。 // // @method // @return Boolean 是否准备好 //========================================================== public testReady() { return this._ready; } //========================================================== // 加载事件完成后,响应的处理。 // // @method // @param buffer:ArrayBuffer 数据 //========================================================== public load(buffer) { } //========================================================== // 释放处理。 // // @method //========================================================== public complete() { } //========================================================== // 释放处理。 // // @method //========================================================== public dispose() { // 清空属性 this._resource = null; // 父处理 super.dispose(); } }