Remove validateSceneExitEntity function and related logic

This commit is contained in:
2026-04-15 02:08:07 +02:00
parent b9de337127
commit 295366d94f

View File

@@ -2868,86 +2868,6 @@ function validateNpcEntity(
});
}
function validateSceneExitEntity(
entity: SceneExitEntity,
path: string,
diagnostics: SceneDiagnostic[]
) {
validateAuthoredEntityState(entity, path, diagnostics);
if (!isFiniteVec3(entity.position)) {
diagnostics.push(
createDiagnostic(
"error",
"invalid-scene-exit-position",
"Scene Exit position must remain finite on every axis.",
`${path}.position`
)
);
}
if (!isPositiveFiniteNumber(entity.radius)) {
diagnostics.push(
createDiagnostic(
"error",
"invalid-scene-exit-radius",
"Scene Exit radius must remain finite and greater than zero.",
`${path}.radius`
)
);
}
if (typeof entity.prompt !== "string" || entity.prompt.trim().length === 0) {
diagnostics.push(
createDiagnostic(
"error",
"invalid-scene-exit-prompt",
"Scene Exit prompt must remain a non-empty string.",
`${path}.prompt`
)
);
}
if (!isBoolean(entity.interactionEnabled)) {
diagnostics.push(
createDiagnostic(
"error",
"invalid-scene-exit-interaction-enabled",
"Scene Exit interactionEnabled must remain a boolean.",
`${path}.interactionEnabled`
)
);
}
if (
typeof entity.targetSceneId !== "string" ||
entity.targetSceneId.trim().length === 0
) {
diagnostics.push(
createDiagnostic(
"error",
"invalid-scene-exit-target-scene",
"Scene Exit target scene id must remain a non-empty string.",
`${path}.targetSceneId`
)
);
}
if (
typeof entity.targetEntryEntityId !== "string" ||
entity.targetEntryEntityId.trim().length === 0
) {
diagnostics.push(
createDiagnostic(
"error",
"invalid-scene-exit-target-entry",
"Scene Exit target entry id must remain a non-empty string.",
`${path}.targetEntryEntityId`
)
);
}
}
function validateLightControlTarget(
target: LightControlTargetRef,
path: string,