This commit is contained in:
2026-01-20 16:24:17 +08:00
parent 9e37f0fc33
commit 66c0df8ade
4 changed files with 37 additions and 44 deletions
+18 -3
View File
@@ -1,10 +1,8 @@
"use strict"; "use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const logger_1 = require("./logger");
class BcmTool { class BcmTool {
constructor() { constructor() {
this.mgrTeamInfo = g_game.mgr.mgr_team_player_team_info; this.mgrTeamInfo = g_game.mgr.mgr_team_player_team_info;
this.logger = new logger_1.Logger(); this.logger = new Logger();
} }
queryPlayerInfo(playersToQuery) { queryPlayerInfo(playersToQuery) {
const attributes = [ const attributes = [
@@ -88,6 +86,23 @@ class BcmTool {
} }
} }
} }
class Logger {
constructor() {
this.msgs = '';
}
Info(...msgs) {
for (const msg of msgs) {
this.msgs += String(msg);
}
this.msgs += '\n';
}
GetOutput() {
return this.msgs;
}
Clear() {
this.msgs = '';
}
}
(() => { (() => {
g_game.bcm_tool = new BcmTool(); g_game.bcm_tool = new BcmTool();
})(); })();
-21
View File
@@ -1,21 +0,0 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Logger = void 0;
class Logger {
constructor() {
this.msgs = '';
}
Info(...msgs) {
for (const msg of msgs) {
this.msgs += String(msg);
}
this.msgs += '\n';
}
GetOutput() {
return this.msgs;
}
Clear() {
this.msgs = '';
}
}
exports.Logger = Logger;
+19 -1
View File
@@ -1,4 +1,3 @@
import { Logger } from "./logger";
class BcmTool { class BcmTool {
private mgrTeamInfo = g_game.mgr.mgr_team_player_team_info; private mgrTeamInfo = g_game.mgr.mgr_team_player_team_info;
@@ -93,6 +92,25 @@ class BcmTool {
} }
class Logger {
private msgs = '';
public Info(...msgs:any[]) {
for (const msg of msgs) {
this.msgs += String(msg);
}
this.msgs += '\n';
}
public GetOutput() {
return this.msgs;
}
public Clear() {
this.msgs = '';
}
}
(()=>{ (()=>{
g_game.bcm_tool = new BcmTool(); g_game.bcm_tool = new BcmTool();
})(); })();
-19
View File
@@ -1,19 +0,0 @@
export class Logger {
private msgs = '';
public Info(...msgs:any[]) {
for (const msg of msgs) {
this.msgs += String(msg);
}
this.msgs += '\n';
}
public GetOutput() {
return this.msgs;
}
public Clear() {
this.msgs = '';
}
}