logger
This commit is contained in:
+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();
|
||||
})();
|
||||
Reference in New Issue
Block a user