dp-s_doc/Object/Party/Party.md

90 lines
1.6 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Party 类函数文档
## 一、创建队伍
### 函数签名
- `function Create(SUser)`
### 参数
- `SUser`:用户对象
---
## 二、给队伍加入玩家
### 函数签名
- `function Join(SUser)`
### 参数
- `SUser`:用户对象
---
## 三、获取队长
### 函数签名
- `function GetMaster()`
### 返回值
- 用户对象,表示队长,若没有则返回 null
---
## 四、发送每个玩家的 IP 广播(因为组队时 P2P
### 函数签名
- `function SendIpInfo()`
---
## 五、获取战斗对象
### 函数签名
- `function GetBattleField()`
### 返回值
- `BattleField`对象,表示战斗对象
---
## 六、获取玩家
### 函数签名
- `function GetUser(Pos)`
### 参数
- `Pos`:整数,表示位置
### 返回值
- 用户对象,表示玩家,若没有则返回 null
---
## 七、踢出玩家
### 函数签名
- `function LeaveUser(SUser)`
### 参数
- `SUser`:用户对象
---
## 八、从副本踢出玩家
### 函数签名
- `function LeaveUserOnDgn(SUser)`
### 参数
- `SUser`:用户对象
---
## 九、设置队伍可用复活币数量
### 函数签名
- `function SetPartyMemberCoinLimit(Count)`
### 参数
- `Count`:整数,表示复活币数量
---
## 十、遍历玩家并执行函数
### 函数签名
- `function ForeachMember(Func)`
### 参数
- `Func`:函数,表示要执行的函数
---
## 十一、获取地下城清除状态
### 函数签名
- `function Get_Dgn_Clear_State()`
### 返回值
- 整数,表示地下城清除状态
---