PtlRoomJoin.ts 690 B

12345678910111213141516171819202122232425
  1. import { BaseRequest, BaseResponse } from "../../../CookingScript/Logic/Room/base";
  2. import { PlayerState } from "../../game/state/PlayerState";
  3. import { RoomState } from "../../game/state/RoomState";
  4. /** 加入房间 */
  5. export interface ReqRoomJoin extends BaseRequest {
  6. playerId: string,
  7. /** 房间编号 */
  8. roomId: string,
  9. mapData?: string,
  10. sn?: number
  11. }
  12. export interface ResRoomJoin extends BaseResponse {
  13. /** 加入房间后,自己的 ID */
  14. playerId: string,
  15. /** 状态同步:一次性同步当前状态 */
  16. players: Array<PlayerState>,
  17. mapData: string,
  18. /**动作数 */
  19. sn: number,
  20. startTime?: number
  21. }
  22. // export const conf = {}