project organization

This commit is contained in:
wass08
2026-01-14 11:14:31 +09:00
parent 88f26dd09e
commit aa8ee9c034
6 changed files with 54 additions and 68 deletions
+16
View File
@@ -0,0 +1,16 @@
// Base
export { BaseNode, generateId, objectId, nodeType, Material } from "./base"
// Nodes
export { SiteNode } from "./nodes/site"
export { BuildingNode } from "./nodes/building"
export { LevelNode } from "./nodes/level"
export { WallNode } from "./nodes/wall"
export { ItemNode } from "./nodes/item"
// Union types
export { AnyNode } from "./types"
export type { AnyNodeType, AnyNodeId } from "./types"
// Camera
export { CameraSchema } from "./camera"
+1 -1
View File
@@ -6,7 +6,7 @@ import { WallNode } from "./wall";
export const LevelNode = BaseNode.extend({
id: objectId("level"),
type: nodeType("level"),
children: z.array(z.discriminatedUnion("type", [WallNode])).default([]),
children: z.array(WallNode.shape.id).default([]),
// Specific props
level: z.number().default(0),
}).describe(