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

Function initHandlers

src/core/resourceProcessor.js:98–108  ·  view source on GitHub ↗

* 初始化默认类型处理器

()

Source from the content-addressed store, hash-verified

96 this._uuidList = [];
97 this._packedMap = {};
98 this._rawAssetMap = new Map();
99 this._handledUuids = new Set();
100 this._labelAtlasCount = 0;
101 this.initHandlers();
102 },
103
104 registerHandler(type, handler) {
105 this.typeHandlers.set(type, handler);
106 },
107
108 initHandlers() {
109 this.typeHandlers = new Map();
110 this.registerHandler('cc.SceneAsset', (data, key, ctx) => this.processSceneAsset(ctx.parentData, ctx.index, key));
111 this.registerHandler('cc.Prefab', (data, key, ctx) => this.processPrefabAsset(ctx.parentData, ctx.index, key));

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected