mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-07 03:51:50 +00:00
Merge branch 'main' of https://github.com/Xertis/VoxelEngine-Cpp
This commit is contained in:
commit
d4e5bc99a0
61 changed files with 1209 additions and 534 deletions
|
|
@ -4,14 +4,17 @@ A library for managing audio/visual weather effects.
|
|||
|
||||
Weather settings:
|
||||
|
||||
| Property | Description | Default |
|
||||
| ------------ | ------------------------------ | ------- |
|
||||
| fall | Precipitation (see table 2) | {} |
|
||||
| clouds | Cloudiness [0.0, 1.0] | 0.0 |
|
||||
| fog_opacity | Maximum fog density [0.0, 1.0] | 0.0 |
|
||||
| fog_dencity | Fog density | 1.0 |
|
||||
| fog_curve | Fog curve | 1.0 |
|
||||
| thunder_rate | Thunder rate [0.0, 1.0] | 0.0 |
|
||||
| Property | Description | Default |
|
||||
| ------------- | -------------------------------- | ----------------- |
|
||||
| fall | Precipitation (see table 2) | {} |
|
||||
| clouds | Cloudiness [0.0, 1.0] | 0.0 |
|
||||
| fog_opacity | Maximum fog density [0.0, 1.0] | 0.0 |
|
||||
| fog_dencity | Fog density | 1.0 |
|
||||
| fog_curve | Fog curve | 1.0 |
|
||||
| thunder_rate | Thunder rate [0.0, 1.0] | 0.0 |
|
||||
| sky_tint | Sky color multiplier | {1, 1, 1} |
|
||||
| clouds_tint | Cloud color multiplier | {1, 1, 1} |
|
||||
| min_sky_light | Minimum sky-emitted light (moon) | {0.2, 0.25, 0.33} |
|
||||
|
||||
Precipitation:
|
||||
|
||||
|
|
|
|||
|
|
@ -78,14 +78,14 @@ Returns the id of all base packages (non-removeable)
|
|||
|
||||
```lua
|
||||
pack.get_info(packid: str) -> {
|
||||
id: str,
|
||||
title: str,
|
||||
creator: str,
|
||||
description: str,
|
||||
version: str,
|
||||
path: str,
|
||||
icon: str, -- not available in headless mode
|
||||
dependencies: optional strings array
|
||||
id: str,
|
||||
title: str,
|
||||
creator: str,
|
||||
description: str,
|
||||
version: str,
|
||||
path: str,
|
||||
icon: str, -- not available in headless mode
|
||||
dependencies: optional strings array
|
||||
}
|
||||
```
|
||||
|
||||
|
|
@ -95,6 +95,7 @@ Returns information about the pack (not necessarily installed).
|
|||
- `!` - required
|
||||
- `?` - optional
|
||||
- `~` - weak
|
||||
|
||||
for example `!teal`
|
||||
|
||||
To obtain information about multiple packs, use table of ids to avoid re-scanning:one
|
||||
|
|
|
|||
|
|
@ -114,6 +114,21 @@ body:set_crouching(enabled: bool)
|
|||
body:get_body_type() -> str
|
||||
-- Sets the physical body type
|
||||
body:set_body_type(type: str)
|
||||
|
||||
-- Returns the body material (same as for blocks)
|
||||
body:get_material() -> str
|
||||
-- Sets the body material
|
||||
body:set_material(material: str)
|
||||
|
||||
-- Returns the body's mass
|
||||
body:get_mass() -> number
|
||||
-- Sets the body's mass
|
||||
body:set_mass(mass: number)
|
||||
|
||||
-- Returns the body's elasticity
|
||||
body:get_elasticity() -> number
|
||||
-- Sets the body's elasticity
|
||||
body:set_elasticity(elasticity: number)
|
||||
```
|
||||
|
||||
### Skeleton
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue