Archive eaglerforge-builder (tool, 1.8.8, clean)

This commit is contained in:
2026-11-27 22:15:01 -06:00
parent 7f05345f49
commit 5f406cdc02
53 changed files with 11985 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
const BLOCK_LIBMAP = {};
var oldDefineBlocks = Blockly.common.defineBlocks;
Blockly.common.defineBlocks = function (blockMap) {
var types = Object.keys(blockMap);
types.forEach(type => {
BLOCK_LIBMAP[type] = (blockMap[type].libs || []);
});
return oldDefineBlocks.apply(this, [blockMap]);
}
function getBlockLibs(block) {
return BLOCK_LIBMAP[block.type] || [];
}
function getBlockLibsByType(blockType) {
return BLOCK_LIBMAP[blockType] || [];
}