2022-12-03 20:06:57 +08:00
|
|
|
import { IPlayer, IRoom } from "./Model"
|
2022-12-03 21:28:38 +08:00
|
|
|
import { IClientInput, IState } from "./State"
|
2022-12-03 20:06:57 +08:00
|
|
|
|
|
|
|
export interface IMsgPlayerList {
|
|
|
|
list: Array<IPlayer>
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface IMsgRoomList {
|
|
|
|
list: Array<IRoom>
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface IMsgRoom {
|
|
|
|
room: IRoom
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface IMsgGameStart {
|
|
|
|
state: IState
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
export interface IMsgGameStart {
|
|
|
|
state: IState
|
2022-12-03 21:28:38 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
export interface IMsgClientSync {
|
|
|
|
input: IClientInput
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface IMsgServerSync {
|
|
|
|
inputs: Array<IClientInput>
|
2022-12-03 20:06:57 +08:00
|
|
|
}
|