update order
This commit is contained in:
Vendored
+10
-4
@@ -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);
|
||||
}
|
||||
|
||||
+12
-4
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user