1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
| "use strict";
| cc._RF.push(module, 'fac31HosGxN8qIzPrxhsnLA', 'fileinfo');
| // Scripts/common/fileinfo.js
|
| "use strict";
|
| // --------------------------------------------------------------------
| // @author: shiraho@syg.com(必填, 创建模块的人员)
| // @description:
| // 资源下载数据
| // <br/>Create: new Date().toISOString()
| // --------------------------------------------------------------------
| var FileInfo = cc.Class({
| properties: {
| url: {
| get: function get() {
| return this._url;
| },
| set: function set(url) {
| this._url = url;
| }
| },
| obj: null
| },
| ctor: function ctor() {
| this.loadNum = 0;
| this.obj = arguments[0];
| },
| // 累加加载次数
| updateLoadNum: function updateLoadNum() {
| this.loadNum += 1;
| },
| //
| decrementLoadNum: function decrementLoadNum() {
| this.loadNum -= 1;
| },
| getLoadNum: function getLoadNum() {
| return this.loadNum;
| },
| deleteMe: function deleteMe() {}
| });
| module.exports = FileInfo;
|
| cc._RF.pop();
|
|