Commit 9d367625 authored by Chunchi Che's avatar Chunchi Che Committed by WANG HE

rerange api

parent 26d71988
import { ygopro } from "./idl/ocgcore";
import socketMiddleWare, { socketCmd } from "../middleware/socket";
import { IDeck } from "./Card";
import socketMiddleWare, { socketCmd } from "../../middleware/socket";
import { IDeck } from "../Card";
export function sendUpdateDeck(deck: IDeck) {
const updateDeck = new ygopro.YgoCtosMsg({
......
import { ygopro } from "../api/idl/ocgcore";
import { ygopro } from "../api/ocgcore/idl/ocgcore";
import handleSocketOpen from "../service/onSocketOpen";
import handleSocketMessage from "../service/onSocketMessage";
......
import { ygopro } from "../api/idl/ocgcore";
import { ygopro } from "../api/ocgcore/idl/ocgcore";
import handleHsPlayerChange from "./room/hsPlayerChange";
import handleTypeChange from "./room/typeChange";
import handleHsPlayerEnter from "./room/hsPlayerEnter";
......
import { sendJoinGame, sendPlayerInfo } from "../api/helper";
import { sendJoinGame, sendPlayerInfo } from "../api/ocgcore/ocgHelper";
export default function handleSocketOpen(
ws: WebSocket | null,
......
import { ygopro } from "../../api/idl/ocgcore";
import { ygopro } from "../../api/ocgcore/idl/ocgcore";
import { postChat } from "../../reducers/chatSlice";
import { store } from "../../store";
......
import { ygopro } from "../../api/idl/ocgcore";
import { ygopro } from "../../api/ocgcore/idl/ocgcore";
import { store } from "../../store";
import {
player0Update,
......
import { ygopro } from "../../api/idl/ocgcore";
import { ygopro } from "../../api/ocgcore/idl/ocgcore";
import { store } from "../../store";
import { player0Enter, player1Enter } from "../../reducers/playerSlice";
......
import { ygopro } from "../../api/idl/ocgcore";
import { ygopro } from "../../api/ocgcore/idl/ocgcore";
import { observerChange } from "../../reducers/playerSlice";
import { store } from "../../store";
......
import { ygopro } from "../../api/idl/ocgcore";
import { ygopro } from "../../api/ocgcore/idl/ocgcore";
import { store } from "../../store";
import { setJoined } from "../../reducers/joinSlice";
......
import { ygopro } from "../../api/idl/ocgcore";
import { ygopro } from "../../api/ocgcore/idl/ocgcore";
import {
player0Update,
player1Update,
......
import React, { useEffect, useState } from "react";
import { useParams } from "react-router-dom";
import { ygopro } from "../api/idl/ocgcore";
import { fetchDeck, IDeck } from "../api/Card";
import { fetchDeck } from "../api/Card";
import "../css/WaitRoom.css";
import { useAppSelector } from "../hook";
import { selectJoined } from "../reducers/joinSlice";
......@@ -12,7 +11,11 @@ import {
selectPlayer1,
selectObserverCount,
} from "../reducers/playerSlice";
import { sendUpdateDeck, sendHsReady, sendHsStart } from "../api/helper";
import {
sendUpdateDeck,
sendHsReady,
sendHsStart,
} from "../api/ocgcore/ocgHelper";
import socketMiddleWare, { socketCmd } from "../middleware/socket";
const READY_STATE = "ready";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment