MCPcopy Create free account
hub / github.com/Bloom-Engine/engine / ensureSceneNode

Function ensureSceneNode

examples/scene-graph/room.ts:86–93  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

84const sceneRegistry: Map<string, number> = new Map();
85
86function ensureSceneNode(id: string): number {
87 let handle = sceneRegistry.get(id);
88 if (handle === undefined) {
89 handle = createSceneNode();
90 sceneRegistry.set(id, handle);
91 }
92 return handle;
93}
94
95// ============================================================
96// Wall geometry generator (pure TypeScript math)

Callers 2

slabSystemFunction · 0.85
wallSystemFunction · 0.85

Calls 2

createSceneNodeFunction · 0.90
getMethod · 0.45

Tested by

no test coverage detected