PtlDoMatch.ts 648 B

12345678910111213141516171819202122232425
  1. import { BaseConf, BaseRequest, BaseResponse } from "../../../CookingScript/Logic/Room/base";
  2. import { MatchPlayerState } from "../../game/state/PlayerState";
  3. /** 开始匹配请求信息 */
  4. export interface ReqDoMatch extends BaseRequest {
  5. version: number,
  6. player: MatchPlayerState,
  7. lastMatchId: string, // 上次对手id,没有发空字符串
  8. roomType: number,
  9. }
  10. /** 开始匹配响应信息 */
  11. export interface ResDoMatch extends BaseResponse {
  12. version: number,
  13. isRobot: number,
  14. players?: Array<MatchPlayerState>,
  15. roomId?: string,
  16. server?: string
  17. }
  18. export const conf: BaseConf = {
  19. needLogin: true
  20. }