remove community

This commit is contained in:
wass08
2026-03-13 09:07:46 +01:00
parent 3eeba322a8
commit f2501be2bf
693 changed files with 8264 additions and 35562 deletions
+2 -2
View File
@@ -1,2 +1,2 @@
export declare const LevelSystem: () => null;
//# sourceMappingURL=level-system.d.ts.map
export declare const LevelSystem: () => null
//# sourceMappingURL=level-system.d.ts.map
@@ -14,7 +14,11 @@ export const LevelSystem = () => {
// Collect and sort levels by floor index so we can compute cumulative offsets.
// Level 0 → Y=0, Level 1 → Y=height(0), Level 2 → Y=height(0)+height(1), etc.
type LevelEntry = { levelId: string; index: number; obj: NonNullable<ReturnType<typeof sceneRegistry.nodes.get>> }
type LevelEntry = {
levelId: string
index: number
obj: NonNullable<ReturnType<typeof sceneRegistry.nodes.get>>
}
const entries: LevelEntry[] = []
sceneRegistry.byType.level.forEach((levelId) => {
const obj = sceneRegistry.nodes.get(levelId)
@@ -1,4 +1,10 @@
import { type CeilingNode, type LevelNode, sceneRegistry, useScene, type WallNode } from '@pascal-app/core'
import {
type CeilingNode,
type LevelNode,
sceneRegistry,
useScene,
type WallNode,
} from '@pascal-app/core'
export const DEFAULT_LEVEL_HEIGHT = 2.5
@@ -75,7 +81,9 @@ export function snapLevelsToTruePositions(): () => void {
entries.sort((a, b) => a.index - b.index)
// Snapshot current Y and visibility so we can restore them after the render
const snapshot = new Map(entries.map(({ levelId, obj }) => [levelId, { y: obj.position.y, visible: obj.visible }]))
const snapshot = new Map(
entries.map(({ levelId, obj }) => [levelId, { y: obj.position.y, visible: obj.visible }]),
)
// Snap to true stacked positions and make all levels visible
let cumulativeY = 0