This shows you the differences between two versions of the page.
Last revision Both sides next revision | |||
component:world_sensor:zh [2023/11/15 15:12] hfsr created |
component:world_sensor:zh [2023/11/15 15:15] hfsr [World Sensor] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | World Sensor | + | 组件:世界传感器 |
============== | ============== | ||
- | This component is provided by the [[item:world_sensor_upgrade|World Sensor Upgrade]]. | + | 此组件由[[item:world_sensor_upgrade:zh|世界传感器升级]]提供。 |
- | Component name: `world_sensor`. | + | 组件名:`world_sensor`。 |
- | Callbacks: | + | 回调函数: |
- `isGasPresent(gas:string):boolean` | - `isGasPresent(gas:string):boolean` | ||
- | Gets whether the world the device is currently in has the specified gas. | + | 获取设备当前所在世界是否有给定气体。 |
+ | \\ | ||
- `getGravity():number` | - `getGravity():number` | ||
- | Gets the gravity of the world that the device is currently in. | + | 获取设备当前所在世界的重力大小。 |
+ | \\ | ||
- ` hasBreathableAtmosphere():boolean` | - ` hasBreathableAtmosphere():boolean` | ||
- | Gets whether the world that the device is in has a breathable atmosphere. | + | 获取设备当前所在世界是否有可呼吸的大气。 |
+ | \\ | ||
- `getWindLevel():number` | - `getWindLevel():number` | ||
- | Gets the wind level of the world that the device is currently in. | + | 获取设备当前所在世界的风力等级。 |
目录 | 目录 | ||
----------- | ----------- | ||
{{page>component:contents:zh&noheader&noeditbutton&nouser&nofooter}} | {{page>component:contents:zh&noheader&noeditbutton&nouser&nofooter}} |