feat: add spawnNpc method to SocketClient

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
root
2026-03-07 13:38:25 +00:00
parent 7e5f430204
commit 953f9e8591
+4
View File
@@ -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();
}