* 处理资源文件 * @returns {Promise }
()
| 51 | |
| 52 | enqueueWrite(directory, filename, data) { |
| 53 | this._writeQueue.push(fileManager.writeFile(directory, filename, data)); |
| 54 | }, |
| 55 | |
| 56 | async flushWrites() { |
| 57 | if (this._writeQueue.length === 0) return; |
| 58 | const pending = this._writeQueue; |
| 59 | this._writeQueue = []; |
| 60 | await Promise.all(pending); |
| 61 | }, |
| 62 | |
| 63 | async processResources() { |
| 64 | try { |
| 65 | this.resetState(); |
| 66 | this.buildSettingsIndex(); |
| 67 | |
| 68 | await this.readFiles(global.paths.res, true); |
| 69 | // rawAssets may point at prefabs/textures not covered by packed imports |
| 70 | await this.processStandaloneRawAssets(); |
| 71 | await this.convertToOutputFiles(); |
nothing calls this directly
no outgoing calls
no test coverage detected