first commit

This commit is contained in:
boybook
2025-03-17 13:24:39 +08:00
commit 9a0334ee84
6410 changed files with 221907 additions and 0 deletions

View File

@@ -0,0 +1,67 @@
---
sidebarDepth: 1
---
# 附加值
## GetAuxValue
<span style="display:inline;color:#ff5555">服务端</span><span style="display:inline;color:#7575f9">客户端</span>
### 服务端接口
<span id="s0"></span>
method in mod.server.component.auxValueCompServer.AuxValueComponentServer
- 描述
获取射出的弓箭或投掷出的药水的附加值
- 参数
- 返回值
| <div style="width: 4em">数据类型</div> | 说明 |
| :--- | :--- |
| int | auxValue |
- 示例
```python
import mod.server.extraServerApi as serverApi
comp = serverApi.GetEngineCompFactory().CreateAuxValue(entityId)
comp.GetAuxValue()
```
### 客户端接口
<span id="c0"></span>
method in mod.client.component.auxValueCompClient.AuxValueComponentClient
- 描述
获取射出的弓箭或投掷出的药水的附加值
- 参数
- 返回值
| <div style="width: 4em">数据类型</div> | 说明 |
| :--- | :--- |
| int | 具体数值见wiki的“箭”及“药水”页面 |
- 示例
```python
import mod.client.extraClientApi as clientApi
comp = clientApi.GetEngineCompFactory().CreateAuxValue(entityId)
auxValue = comp.GetAuxValue()
```