mirror of
https://github.com/exogen/t2-mapper.git
synced 2026-04-24 05:45:48 +00:00
cleanup input handling, fix server move packets
This commit is contained in:
parent
409df9fcaa
commit
e9125951e4
84 changed files with 2085 additions and 1808 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue