logger
This commit is contained in:
@@ -0,0 +1 @@
|
|||||||
|
g_game.bcm_tool.queryPlayerInfo(g_game.bcm_tool.listPlayers());
|
||||||
Vendored
+4
-1
@@ -63,7 +63,7 @@ class BcmTool {
|
|||||||
const record = this.queryInfo(playerId, id);
|
const record = this.queryInfo(playerId, id);
|
||||||
this.logger.Info(name, record);
|
this.logger.Info(name, record);
|
||||||
}
|
}
|
||||||
g_game.mgr.tools.CopyStrToClipboard(this.logger.GetOutput());
|
g_game.tools.CopyStrToClipboard(this.logger.GetOutput());
|
||||||
this.logger.Clear();
|
this.logger.Clear();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -79,6 +79,9 @@ class BcmTool {
|
|||||||
const data = this.mgrTeamInfo.GetPlayerData(playerId);
|
const data = this.mgrTeamInfo.GetPlayerData(playerId);
|
||||||
return data.GetSingleAttribute(attri).toFixed(2);
|
return data.GetSingleAttribute(attri).toFixed(2);
|
||||||
}
|
}
|
||||||
|
getPlayerIds() {
|
||||||
|
return Object.keys(this.mgrTeamInfo._map_player_detail);
|
||||||
|
}
|
||||||
listPlayers() {
|
listPlayers() {
|
||||||
const ids = Object.keys(this.mgrTeamInfo._map_player_detail);
|
const ids = Object.keys(this.mgrTeamInfo._map_player_detail);
|
||||||
for (const id of ids) {
|
for (const id of ids) {
|
||||||
|
|||||||
+5
-1
@@ -63,7 +63,7 @@ class BcmTool {
|
|||||||
const record = this.queryInfo(playerId, id as number);
|
const record = this.queryInfo(playerId, id as number);
|
||||||
this.logger.Info(name, record);
|
this.logger.Info(name, record);
|
||||||
}
|
}
|
||||||
g_game.mgr.tools.CopyStrToClipboard(this.logger.GetOutput());
|
g_game.tools.CopyStrToClipboard(this.logger.GetOutput());
|
||||||
this.logger.Clear();
|
this.logger.Clear();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -83,6 +83,10 @@ class BcmTool {
|
|||||||
return data.GetSingleAttribute(attri).toFixed(2);
|
return data.GetSingleAttribute(attri).toFixed(2);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public getPlayerIds() {
|
||||||
|
return Object.keys(this.mgrTeamInfo._map_player_detail);
|
||||||
|
}
|
||||||
|
|
||||||
public listPlayers() {
|
public listPlayers() {
|
||||||
const ids = Object.keys(this.mgrTeamInfo._map_player_detail);
|
const ids = Object.keys(this.mgrTeamInfo._map_player_detail);
|
||||||
for (const id of ids) {
|
for (const id of ids) {
|
||||||
|
|||||||
Vendored
+1
-1
@@ -4,7 +4,6 @@ declare global
|
|||||||
{
|
{
|
||||||
interface BGameMgr {
|
interface BGameMgr {
|
||||||
public mgr_team_player_team_info: MgrTeamPlayerInfo;
|
public mgr_team_player_team_info: MgrTeamPlayerInfo;
|
||||||
public tools: BGameTools;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
interface BGameTools {
|
interface BGameTools {
|
||||||
@@ -26,5 +25,6 @@ declare global
|
|||||||
var g_game: {
|
var g_game: {
|
||||||
mgr: BGameMgr;
|
mgr: BGameMgr;
|
||||||
bcm_tool: BcmTool;
|
bcm_tool: BcmTool;
|
||||||
|
tools: BGameTools;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user