mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-12 06:21:50 +00:00
Merge branch 'MihailRis:main' into Fix-usage-vcpkg-for-windows-and-add-cmake-preset-for-vscode
This commit is contained in:
commit
75f5a47c9e
9 changed files with 43 additions and 12 deletions
|
|
@ -60,7 +60,7 @@ Library **audio** contains available Audio API in Lua scripts.
|
|||
|
||||
```lua
|
||||
audio.play_stream(
|
||||
-- audio file location
|
||||
-- audio file location (without entry point, but with extension included)
|
||||
name: string,
|
||||
-- audio source world position
|
||||
x: number, y: number, z: number,
|
||||
|
|
@ -79,7 +79,7 @@ Plays streaming audio from the specified file at the specified world position. R
|
|||
|
||||
```lua
|
||||
audio.play_stream_2d(
|
||||
-- audio file location
|
||||
-- audio file location (without entry point, but with extension included)
|
||||
name: string,
|
||||
-- audio gain (0.0 - 1.0)
|
||||
volume: number
|
||||
|
|
@ -202,4 +202,4 @@ audio.count_speakers() -> integer
|
|||
|
||||
-- get current number of playing streams
|
||||
audio.count_streams() -> integer
|
||||
```
|
||||
```
|
||||
|
|
|
|||
|
|
@ -52,6 +52,7 @@ The main properties described in the configuration file:
|
|||
- **biomes-bpd** - number of blocks per point of the biome selection parameter map. Default: 4.
|
||||
- **heights-bpd** - number of blocks per point of the height map. Default: 4.
|
||||
- **wide-structs-chunks-radius** - maximum radius for placing 'wide' structures, measured in chunks.
|
||||
- **heightmap-inputs** - an array of parameter map numbers that will be passed by the inputs table to the height map generation function.
|
||||
|
||||
## Global variables
|
||||
|
||||
|
|
|
|||
|
|
@ -61,7 +61,7 @@
|
|||
|
||||
```lua
|
||||
audio.play_stream(
|
||||
-- путь к аудио-файлу
|
||||
-- путь к аудио-файлу (без точки входа, но с указанием расширения)
|
||||
name: string,
|
||||
-- позиция источника аудио в мире
|
||||
x: number, y: number, z: number,
|
||||
|
|
@ -80,7 +80,7 @@ audio.play_stream(
|
|||
|
||||
```lua
|
||||
audio.play_stream_2d(
|
||||
-- путь к аудио-файлу
|
||||
-- путь к аудио-файлу (без точки входа, но с указанием расширения)
|
||||
name: string,
|
||||
-- громкость аудио (от 0.0 до 1.0)
|
||||
volume: number
|
||||
|
|
|
|||
|
|
@ -52,6 +52,7 @@
|
|||
- **biomes-bpd** - количество блоков на точку карты параметра выбора биомов. По-умолчанию: 4.
|
||||
- **heights-bpd** - количество блоков на точку карты высот. По-умолчанию: 4.
|
||||
- **wide-structs-chunks-radius** - масимальный радиус размещения 'широких' структур, измеряемый в чанках.
|
||||
- **heightmap-inputs** - массив номеров карт параметров, которые будут переданы таблицей inputs в функцию генерации карты высот.
|
||||
|
||||
## Глобальные переменные
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue