refactor: 地图渲染器改为与 LayerState 绑定

This commit is contained in:
AncTe committed 2025-11-18 21:12:43 +08:00
1 parent 6ae0d6ca5f
commit ebaa35ea5b
17 files changed
+564 -387

No files matched your search

@@ -225,9 +225,10 @@ export class AutotileProcessor implements IAutotileProcessor {
const size = texture.height === 32 * 48 ? 32 : 48;
const index = distinctConnectionMap.get(connection);
if (isNil(index)) return null;
const { rect } = texture.render();
return {
source: texture.source,
rect: { x: 0, y: size * index, w: size, h: size }
rect: { x: rect.x, y: rect.y + size * index, w: size, h: size }
};
}