cleanup input handling, fix server move packets

This commit is contained in:
Brian Beck 2026-03-13 11:08:11 -07:00
parent 409df9fcaa
commit e9125951e4
84 changed files with 2085 additions and 1808 deletions

View file

@ -45,7 +45,7 @@ export interface LiveConnectionStore extends LiveConnectionState {
listServers(): void;
joinServer(address: string, warriorName?: string): void;
disconnectServer(): void;
sendMove(move: ClientMove): void;
sendMoves(moves: ClientMove[], moveStartIndex: number): void;
sendCommand(command: string, ...args: string[]): void;
}
@ -254,8 +254,8 @@ export const liveConnectionStore = createStore<LiveConnectionStore>(
});
},
sendMove(move) {
get()._relay?.sendMove(move);
sendMoves(moves, moveStartIndex) {
get()._relay?.sendMoves(moves, moveStartIndex);
},
sendCommand(command, ...args) {