mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-22 20:35:45 +00:00
feat: Add temporary console logs for ping debugging
This commit is contained in:
@@ -516,6 +516,12 @@ export class InputHandler {
|
||||
x: worldCoords.x,
|
||||
y: worldCoords.y,
|
||||
});
|
||||
console.log(
|
||||
"Emitting PingPlacedEvent with type:",
|
||||
this.uiState.currentPingType,
|
||||
"at world coordinates:",
|
||||
worldCoords,
|
||||
);
|
||||
this.eventBus.emit(
|
||||
new PingPlacedEvent(
|
||||
this.uiState.currentPingType,
|
||||
|
||||
@@ -370,7 +370,7 @@ export class FxLayer implements Layer {
|
||||
this.pingEventCleanup = this.eventBus.on(
|
||||
PingPlacedEvent,
|
||||
(event: PingPlacedEvent) => {
|
||||
console.log("received PingPlacedEvent", event);
|
||||
console.log("received PingPlacedEvent in FxLayer", event);
|
||||
const pingFx = new PingFx(this.game, event.type, event.tile);
|
||||
this.allFx.push(pingFx);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user