listPlayers
This commit is contained in:
Vendored
+6
@@ -73,6 +73,12 @@ class BcmTool {
|
||||
const data = g_game.mgr.mgr_team_player_team_info.GetPlayerData(playerId);
|
||||
return data.GetSingleAttribute(attri);
|
||||
}
|
||||
listPlayers() {
|
||||
const ids = Object.keys(g_game.mgr.mgr_team_player_team_info._map_player_detail);
|
||||
for (const id of ids) {
|
||||
console.log(this.queryName(id), id);
|
||||
}
|
||||
}
|
||||
}
|
||||
(() => {
|
||||
g_game.bcm_tool = new BcmTool();
|
||||
|
||||
@@ -79,6 +79,13 @@ class BcmTool {
|
||||
return data.GetSingleAttribute(attri);
|
||||
}
|
||||
|
||||
public listPlayers() {
|
||||
const ids = Object.keys(g_game.mgr.mgr_team_player_team_info._map_player_detail);
|
||||
for (const id of ids) {
|
||||
console.log(this.queryName(id), id);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
(()=>{
|
||||
|
||||
Vendored
+2
@@ -7,7 +7,9 @@ declare global
|
||||
}
|
||||
|
||||
interface MgrTeamPlayerInfo {
|
||||
public _map_player_detail:{ [key:string]:CPlayerData }
|
||||
public GetPlayerData(player_id:string):CPlayerData;
|
||||
public UpdateFromMessage(msg:BMProto.S2CGetPlayerDetailResp):void;
|
||||
}
|
||||
|
||||
interface CPlayerData {
|
||||
|
||||
Reference in New Issue
Block a user