mirror of
https://github.com/unanmed/HumanBreak.git
synced 2026-11-14 18:54:30 +08:00
refactor: 地图渲染器改为与 LayerState 绑定
This commit is contained in:
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 }
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user