From 51b6675545bced5c930304b15d2403ac6f0f6ea7 Mon Sep 17 00:00:00 2001 From: lingdar77 Date: Fri, 20 Mar 2026 19:16:46 +0800 Subject: [PATCH] update order --- dist/bcm_tool.js | 14 ++++++++++---- src/bcm_tool.ts | 16 ++++++++++++---- 2 files changed, 22 insertions(+), 8 deletions(-) diff --git a/dist/bcm_tool.js b/dist/bcm_tool.js index f416be1..2b771bc 100644 --- a/dist/bcm_tool.js +++ b/dist/bcm_tool.js @@ -18,6 +18,8 @@ class BcmTool { ['*进攻犯规', 24], ['*防守犯规', 25], ['*进攻IQ', 17], + ['*防守IQ', 18], + ['*反应时间', 30], ['速度', 1], ['力量', 2], ['内攻', 3], @@ -34,7 +36,6 @@ class BcmTool { ['干扰投篮', 14], ['篮板能力', 15], ['*出手时间', 16], - ['*防守IQ', 18], ['体能', 19], ['卡位能力', 20], ['罚球能力', 21], @@ -43,7 +44,6 @@ class BcmTool { ['扣篮能力', 26], ['勾手倾向', 27], ['打板倾向', 29], - ['*反应时间', 30], ['拉开空间', 31], ['补防、协防', 32], ['快下', 34], @@ -64,8 +64,9 @@ class BcmTool { const form = new Form(); form.SetCell(0, 0, "姓名"); form.SetCell(0, 1, "球队"); + form.SetCell(0, 2, "年龄"); for (let i = 0; i != lstAttributes.length; ++i) { - form.SetCell(0, i + 2, lstAttributes[i][0]); + form.SetCell(0, i + 3, lstAttributes[i][0]); } for (let i = 0; i != playersToQuery.length; ++i) { const playerId = playersToQuery[i]; @@ -75,9 +76,10 @@ class BcmTool { } form.SetCell(i + 1, 0, this.QueryName(playerId)); form.SetCell(i + 1, 1, this.QueryOwner(playerId)); + form.SetCell(i + 1, 2, this.QueryAge(playerId).toString()); for (let j = 0; j != lstAttributes.length; ++j) { const record = this.QueryInfo(playerId, lstAttributes[j][1]); - form.SetCell(i + 1, j + 2, record.toString()); + form.SetCell(i + 1, j + 3, record.toString()); } } console.log(form); @@ -189,6 +191,10 @@ class BcmTool { const data = this.mgrPlayers.GetPlayerData(playerId); return data === null || data === void 0 ? void 0 : data.teamName; } + QueryAge(playerId) { + const data = this.mgrPlayers.GetPlayerData(playerId); + return data === null || data === void 0 ? void 0 : data.playerAge; + } GetPlayerIds() { return Object.keys(this.mgrPlayers._map_player_detail); } diff --git a/src/bcm_tool.ts b/src/bcm_tool.ts index 8f6bc6f..98d0fca 100644 --- a/src/bcm_tool.ts +++ b/src/bcm_tool.ts @@ -9,6 +9,8 @@ class BcmTool ['*进攻犯规', 24], ['*防守犯规', 25], ['*进攻IQ', 17], + ['*防守IQ', 18], + ['*反应时间', 30], ['速度', 1], ['力量', 2], ['内攻', 3], @@ -25,7 +27,6 @@ class BcmTool ['干扰投篮', 14], ['篮板能力', 15], ['*出手时间', 16], - ['*防守IQ', 18], ['体能', 19], ['卡位能力', 20], ['罚球能力', 21], @@ -34,7 +35,6 @@ class BcmTool ['扣篮能力', 26], ['勾手倾向', 27], ['打板倾向', 29], - ['*反应时间', 30], ['拉开空间', 31], ['补防、协防', 32], ['快下', 34], @@ -56,9 +56,10 @@ class BcmTool const form = new Form(); form.SetCell(0, 0, "姓名"); form.SetCell(0, 1, "球队"); + form.SetCell(0, 2, "年龄"); for (let i = 0; i != lstAttributes.length; ++i) { - form.SetCell(0, i + 2, lstAttributes[i][0] as string); + form.SetCell(0, i + 3, lstAttributes[i][0] as string); } for (let i = 0; i != playersToQuery.length; ++i) { @@ -70,10 +71,11 @@ class BcmTool } form.SetCell(i + 1, 0, this.QueryName(playerId)); form.SetCell(i + 1, 1, this.QueryOwner(playerId)); + form.SetCell(i + 1, 2, this.QueryAge(playerId).toString()); for (let j = 0; j != lstAttributes.length; ++j) { const record = this.QueryInfo(playerId, lstAttributes[j][1] as number); - form.SetCell(i + 1, j + 2, record.toString()); + form.SetCell(i + 1, j + 3, record.toString()); } } console.log(form); @@ -215,6 +217,12 @@ class BcmTool return data?.teamName; } + public QueryAge(playerId: string) + { + const data = this.mgrPlayers.GetPlayerData(playerId); + return data?.playerAge; + } + public GetPlayerIds() { return Object.keys(this.mgrPlayers._map_player_detail);