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
|
|
|
}
|
|
|
|
|
2022-12-04 22:10:30 +08:00
|
|
|
export type IMsgClientSync = IClientInput
|
2022-12-03 21:28:38 +08:00
|
|
|
|
2022-12-04 22:10:30 +08:00
|
|
|
export type IMsgServerSync = Array<IClientInput>
|