diff --git a/client/src/network/SocketClient.ts b/client/src/network/SocketClient.ts index c4627a6..3f3c997 100644 --- a/client/src/network/SocketClient.ts +++ b/client/src/network/SocketClient.ts @@ -45,6 +45,10 @@ export class SocketClient { this.socket.emit('player-input', input); } + spawnNpc(x: number, y: number): void { + this.socket.emit('spawn-npc', { x, y }); + } + disconnect(): void { this.socket.disconnect(); }