Add pause functionality validation in scene document
This commit is contained in:
@@ -2024,6 +2024,19 @@ function validatePlayerStartEntity(
|
||||
);
|
||||
}
|
||||
|
||||
if (
|
||||
!isPlayerStartKeyboardBindingCode(entity.inputBindings?.keyboard.pauseTime)
|
||||
) {
|
||||
diagnostics.push(
|
||||
createDiagnostic(
|
||||
"error",
|
||||
"invalid-player-start-pause-keyboard-binding",
|
||||
"Player Start pause keyboard binding must be a supported key code.",
|
||||
`${path}.inputBindings.keyboard.pauseTime`
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
if (!isPlayerStartGamepadBinding(entity.inputBindings?.gamepad.moveForward)) {
|
||||
diagnostics.push(
|
||||
createDiagnostic(
|
||||
@@ -2107,6 +2120,19 @@ function validatePlayerStartEntity(
|
||||
);
|
||||
}
|
||||
|
||||
if (
|
||||
!isPlayerStartGamepadActionBinding(entity.inputBindings?.gamepad.pauseTime)
|
||||
) {
|
||||
diagnostics.push(
|
||||
createDiagnostic(
|
||||
"error",
|
||||
"invalid-player-start-pause-gamepad-binding",
|
||||
"Player Start pause gamepad binding must be a supported standard-gamepad action input.",
|
||||
`${path}.inputBindings.gamepad.pauseTime`
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
if (
|
||||
!isPlayerStartGamepadCameraLookBinding(
|
||||
entity.inputBindings?.gamepad.cameraLook
|
||||
|
||||
Reference in New Issue
Block a user