2.6
This commit is contained in:
43
docs/mcdocs/1-ModAPI/接口/山头服务器.md
Normal file
43
docs/mcdocs/1-ModAPI/接口/山头服务器.md
Normal file
@@ -0,0 +1,43 @@
|
||||
---
|
||||
sidebarDepth: 1
|
||||
---
|
||||
# 山头服务器
|
||||
|
||||
# 索引
|
||||
|
||||
---
|
||||
|
||||
| 接口 | <div style="width: 3em"></div> | 描述 |
|
||||
| --- | --- | --- |
|
||||
| [GetHostPlayerUid](山头服务器.md#gethostplayeruid) | <span style="display:inline;color:#ff5555">服务端</span> | 获取服务器拥有者的uid。 |
|
||||
|
||||
## GetHostPlayerUid
|
||||
|
||||
<span style="display:inline;color:#ff5555">服务端</span>
|
||||
|
||||
method in mod.server.component.domainGameCompServer.DomainGameCompServer
|
||||
|
||||
- 描述
|
||||
|
||||
获取服务器拥有者的uid。
|
||||
|
||||
- 参数
|
||||
|
||||
无
|
||||
|
||||
- 返回值
|
||||
|
||||
| <div style="width: 4em">数据类型</div> | 说明 |
|
||||
| :--- | :--- |
|
||||
| int | 服务器拥有者uid |
|
||||
|
||||
- 示例
|
||||
|
||||
```python
|
||||
import mod.server.extraServerApi as serverApi
|
||||
comp = serverApi.GetEngineCompFactory().CreateDomainGame(levelId)
|
||||
uid = comp.GetHostPlayerUid()
|
||||
```
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user