MCPcopy Create free account
hub / github.com/Crain99/cc-reverse / processSpriteFrame

Function processSpriteFrame

src/core/resourceProcessor.js:492–503  ·  view source on GitHub ↗

* 处理精灵帧资源 * @param {Object} data 精灵帧数据 * @param {string} index 索引 * @param {string} key 键名

(data, index, key)

Source from the content-addressed store, hash-verified

490
491 /**
492 * 解析数据对象(测试兼容:默认会 resolve __id__)
493 */
494 async revealData(jsonObject) {
495 if (!jsonObject || typeof jsonObject !== 'object') return jsonObject;
496
497 if (Array.isArray(jsonObject)) {
498 return this.restoreCompressedData(jsonObject);
499 }
500
501 this.decodeUuids(jsonObject);
502 return jsonObject;
503 },
504
505 isCompressedFormat(data) {
506 if (!Array.isArray(data) || data.length < 2) return false;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected