update order

This commit is contained in:
2026-03-20 19:16:46 +08:00
parent cdf26eb761
commit 51b6675545
2 changed files with 22 additions and 8 deletions
+10 -4
View File
@@ -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);
}