mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-28 09:44:14 +00:00
have core/ directory use consolex for remote logging
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
import { Config } from "../core/configuration/Config"
|
||||
import { SendLogEvent } from "../core/Consolex"
|
||||
import { EventBus, GameEvent } from "../core/EventBus"
|
||||
import { AllianceRequest, AllPlayers, Cell, GameType, Player, PlayerID, PlayerType, Tile, UnitType } from "../core/game/Game"
|
||||
import { ClientID, ClientIntentMessageSchema, ClientJoinMessageSchema, GameID, Intent, ServerMessage, ServerMessageSchema, ClientPingMessageSchema, GameConfig, ClientLogMessageSchema, LogSeverity } from "../core/Schemas"
|
||||
import { ClientID, ClientIntentMessageSchema, ClientJoinMessageSchema, GameID, Intent, ServerMessage, ServerMessageSchema, ClientPingMessageSchema, GameConfig, ClientLogMessageSchema } from "../core/Schemas"
|
||||
import { LobbyConfig } from "./GameRunner"
|
||||
import { LocalServer } from "./LocalServer"
|
||||
|
||||
@@ -82,13 +83,6 @@ export class SendSetTargetTroopRatioEvent implements GameEvent {
|
||||
) { }
|
||||
}
|
||||
|
||||
export class SendLogEvent implements GameEvent {
|
||||
constructor(
|
||||
public readonly severity: LogSeverity,
|
||||
public readonly log: string,
|
||||
) { }
|
||||
}
|
||||
|
||||
export class Transport {
|
||||
|
||||
private socket: WebSocket
|
||||
|
||||
Reference in New Issue
Block a user