Types for variables

This commit is contained in:
Bs0Dd
2022-07-06 13:20:41 +02:00
parent c81ef856ea
commit fa2ae7db25
2 changed files with 2 additions and 2 deletions

View File

@@ -12,7 +12,7 @@ This is a high level device. It must be controlled using the high level device A
Device name: `sound`
### Methods
`playSound(name:string[,volume,pitch])` plays back the sound effect with the specified name.
`playSound(name:string[,volume:float,pitch:float])` plays back the sound effect with the specified name.
- `name` is the name of the effect to play.
- `volume` is the volume at which to play the effect in the range from `0` to `1`, with `1` being the normal volume. Optional, defaulting to `1`.
- `pitch` is the pitch at which to play the effect in the range from `0.5` to `2`, with `1` being the normal pitch. Optional, defaulting to `1`.

View File

@@ -12,7 +12,7 @@
Название устройства: `sound`
### Методы
`playSound(name:string[,volume,pitch])` проигрывает звуковой эффект с указанным именем.
`playSound(name:string[,volume:float,pitch:float])` проигрывает звуковой эффект с указанным именем.
- `name` - название эффекта для проигрывания.
- `volume` - громкость проигрывания эффекта в диапазоне от `0` до `1`, где `1` - нормальная громкость. Опционально, по умолчанию `1`.
- `pitch` - высота звука для проигрываемого эффекта в диапазоне от `0.5` до `2`, где `1` - нормальная высота. Опционально, по умолчанию `1`.