mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-12 06:21:50 +00:00
Update 0.27 docs (#484)
* update doc/*/scripting/builtins/libinventory.md * add doc/*/scripting/builtins/libgfx-weather.md * update doc/*/scripting/builtins/libfile.md * update doc/*/item-properties & update doc/*/scripting/builtins/libinventory.md * add inventory.decrement docs * update doc/*/scripting/builtins/libinventory.md
This commit is contained in:
parent
a74a4fcf53
commit
b1e854a73c
10 changed files with 358 additions and 2 deletions
|
|
@ -144,3 +144,24 @@ file.prefix(путь: str) --> str
|
|||
```
|
||||
|
||||
Извлекает точку входа (префикс) из пути. Пример: `world:data/base/config.toml` -> `world`.
|
||||
|
||||
```lua
|
||||
file.parent(путь: str) --> str
|
||||
```
|
||||
|
||||
Возвращает путь на уровень выше. Пример: `world:data/base/config.toml` -> `world:data/base`
|
||||
|
||||
```lua
|
||||
file.path(путь: str) --> str
|
||||
```
|
||||
|
||||
Убирает точку входа (префикс) из пути. Пример: `world:data/base/config.toml` -> `data/base/config.toml`
|
||||
|
||||
|
||||
```lua
|
||||
file.join(директория: str, путь: str) --> str
|
||||
```
|
||||
|
||||
Соединяет путь. Пример: `file.join("world:data", "base/config.toml)` -> `world:data/base/config.toml`.
|
||||
|
||||
Следует использовать данную функцию вместо конкатенации с `/`, так как `префикс:/путь` не является валидным.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue