mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-04 16:56:05 +00:00
log cell clicked
This commit is contained in:
@@ -145,6 +145,7 @@ export class ClientGame {
|
||||
if (!this.gs.isOnMap(cell)) {
|
||||
return
|
||||
}
|
||||
console.log(`clicked cell ${cell}`)
|
||||
const tile = this.gs.tile(cell)
|
||||
if (tile.isLand() && !tile.hasOwner() && this.gs.inSpawnPhase()) {
|
||||
this.eventBus.emit(new SendSpawnIntentEvent(cell))
|
||||
|
||||
Reference in New Issue
Block a user