meta data for this page
📚 差别
这里会显示出您选择的修订版和当前版本之间的差别。
两侧同时换到之前的修订记录前一修订版后一修订版 | 前一修订版 | ||
scripting:world:core [2025/07/02 01:20] – bibiboxs | scripting:world:core [2025/07/26 03:29] (当前版本) – bibiboxs | ||
---|---|---|---|
行 83: | 行 83: | ||
DLog(" | DLog(" | ||
} | } | ||
+ | ``` | ||
+ | |||
+ | |||
+ | |||
+ | ### OnWorldWeatherChange( oldWeather, newWeather ) | ||
+ | |||
+ | > 当世界天气发生改变时调用。 | ||
+ | |||
+ | ```javascript | ||
+ | function OnWorldWeatherChange( oldWeather: int, newWeather: int ) | ||
``` | ``` | ||
行 485: | 行 495: | ||
### SetWorldSolarColor() | ### SetWorldSolarColor() | ||
- | > 设置游戏世界日月颜色(太阳& | + | > 设置游戏世界日月颜色(太阳& |
```javascript | ```javascript | ||
行 519: | 行 529: | ||
```javascript | ```javascript | ||
function GetWorldSolarScale(): | function GetWorldSolarScale(): | ||
+ | ``` | ||
+ | |||
+ | |||
+ | |||
+ | ### SetWorldCloudColor() | ||
+ | |||
+ | > 设置游戏世界云层颜色,默认为浅灰色`Color(180, | ||
+ | |||
+ | ```javascript | ||
+ | function SetWorldCloudColor( color: Color ) | ||
+ | ``` | ||
+ | |||
+ | |||
+ | |||
+ | ### GetWorldCloudColor() | ||
+ | |||
+ | > 获取游戏世界云层颜色。 | ||
+ | |||
+ | ```javascript | ||
+ | function GetWorldCloudColor(): | ||
+ | ``` | ||
+ | |||
+ | |||
+ | |||
+ | ### SetWorldCloudDensity() | ||
+ | |||
+ | > 设置游戏世界云层密度,默认为`0.3`,限制范围`0.0~1.0`。 | ||
+ | |||
+ | ```javascript | ||
+ | function SetWorldCloudDensity( scale: float ) | ||
+ | ``` | ||
+ | |||
+ | |||
+ | |||
+ | ### GetWorldCloudDensity() | ||
+ | |||
+ | > 获取游戏世界云层密度。 | ||
+ | |||
+ | ```javascript | ||
+ | function GetWorldCloudDensity(): | ||
``` | ``` | ||
行 1274: | 行 1324: | ||
function IsValidNavMeshPoint( pos: Vector ): bool | function IsValidNavMeshPoint( pos: Vector ): bool | ||
``` | ``` | ||
+ | |||
+ | |||
+ | |||