This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
component:debug:zh [2023/12/10 16:01] hfsr [玩家对象] |
component:debug:zh [2023/12/10 16:06] (current) hfsr [计分板对象] |
||
---|---|---|---|
Line 208: | Line 208: | ||
- `addObjective(objectiveName:string, objectiveCriteria:string)` | - `addObjective(objectiveName:string, objectiveCriteria:string)` | ||
- | 在计分板中创建一个新的对象。 | + | 在计分板中创建一个新的对象。 |
+ | \\ | ||
- `removeObjective(objectiveName:string)` | - `removeObjective(objectiveName:string)` | ||
- | 从计分板中移除一个对象。 | + | 从计分板中移除一个对象。 |
+ | \\ | ||
- `increasePlayerScore(playerName:string, objectiveName:string, score:int)` | - `increasePlayerScore(playerName:string, objectiveName:string, score:int)` | ||
- | 增加某计分板对象中某玩家的分数。 | + | 增加某计分板对象中某玩家的分数。 |
+ | \\ | ||
- `decreasePlayerScore(playerName:string, objectiveName:string, score:int)` | - `decreasePlayerScore(playerName:string, objectiveName:string, score:int)` | ||
- | 减少某计分板对象中某玩家的分数。 | + | 减少某计分板对象中某玩家的分数。 |
+ | \\ | ||
- `addPlayerToTeam(player:string, team:string):boolean` | - `addPlayerToTeam(player:string, team:string):boolean` | ||
- | 将某玩家加入某团队中。 | + | 将某玩家加入某团队中。 |
+ | \\ | ||
- `removePlayerFromTeam(player:string, team:string):boolean` | - `removePlayerFromTeam(player:string, team:string):boolean` | ||
- | 将一名玩家从指定团队中移除。 | + | 将一名玩家从指定团队中移除。 |
+ | \\ | ||
- `removePlayerFromTeams(player:string):boolean` | - `removePlayerFromTeams(player:string):boolean` | ||
- | 将一名玩家从所有团队中移除。 | + | 将一名玩家从所有团队中移除。 |
+ | \\ | ||
- `addTeam(team:string)` | - `addTeam(team:string)` | ||
- | 将一个团队添加到计分板中。 | + | 将一个团队添加到计分板中。 |
+ | \\ | ||
- `removeTeam(teamName: string)` | - `removeTeam(teamName: string)` | ||
- | 从计分板中移除一个团队。 | + | 从计分板中移除一个团队。 |
+ | \\ | ||
- `getPlayerScore(playerName:string, objectiveName:string):int` | - `getPlayerScore(playerName:string, objectiveName:string):int` | ||
- | 获取某计分板对象中某玩家的分数。 | + | 获取某计分板对象中某玩家的分数。 |
+ | \\ | ||
- `setPlayerScore(playerName:string, objectiveName:string, score:int)` | - `setPlayerScore(playerName:string, objectiveName:string, score:int)` | ||
设定某计分板对象中某玩家的分数。 | 设定某计分板对象中某玩家的分数。 |