logger
This commit is contained in:
Vendored
+18
-3
@@ -1,10 +1,8 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const logger_1 = require("./logger");
|
||||
class BcmTool {
|
||||
constructor() {
|
||||
this.mgrTeamInfo = g_game.mgr.mgr_team_player_team_info;
|
||||
this.logger = new logger_1.Logger();
|
||||
this.logger = new Logger();
|
||||
}
|
||||
queryPlayerInfo(playersToQuery) {
|
||||
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();
|
||||
})();
|
||||
|
||||
Vendored
-21
@@ -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
@@ -1,4 +1,3 @@
|
||||
import { Logger } from "./logger";
|
||||
|
||||
class BcmTool {
|
||||
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();
|
||||
})();
|
||||
@@ -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 = '';
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user