Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
N
Neos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
love_飞影
Neos
Commits
15e4a1e4
Commit
15e4a1e4
authored
Apr 09, 2023
by
timel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor: import api
parent
7d1c3137
Changes
97
Hide whitespace changes
Inline
Side-by-side
Showing
97 changed files
with
120 additions
and
120 deletions
+120
-120
src/middleware/sqlite.ts
src/middleware/sqlite.ts
+1
-1
src/reducers/duel/cemeretySlice.ts
src/reducers/duel/cemeretySlice.ts
+1
-1
src/reducers/duel/commonSlice.ts
src/reducers/duel/commonSlice.ts
+1
-1
src/reducers/duel/deckSlice.ts
src/reducers/duel/deckSlice.ts
+1
-1
src/reducers/duel/exclusionSlice.ts
src/reducers/duel/exclusionSlice.ts
+1
-1
src/reducers/duel/extraDeckSlice.ts
src/reducers/duel/extraDeckSlice.ts
+1
-1
src/reducers/duel/generic.ts
src/reducers/duel/generic.ts
+3
-3
src/reducers/duel/handsSlice.ts
src/reducers/duel/handsSlice.ts
+1
-1
src/reducers/duel/hintSlice.ts
src/reducers/duel/hintSlice.ts
+3
-3
src/reducers/duel/initInfoSlice.ts
src/reducers/duel/initInfoSlice.ts
+1
-1
src/reducers/duel/magicSlice.ts
src/reducers/duel/magicSlice.ts
+1
-1
src/reducers/duel/mod.ts
src/reducers/duel/mod.ts
+1
-1
src/reducers/duel/modal/cardListModalSlice.ts
src/reducers/duel/modal/cardListModalSlice.ts
+1
-1
src/reducers/duel/modal/cardModalSlice.ts
src/reducers/duel/modal/cardModalSlice.ts
+1
-1
src/reducers/duel/modal/checkCardModalSlice.ts
src/reducers/duel/modal/checkCardModalSlice.ts
+2
-2
src/reducers/duel/modal/checkCardModalV2Slice.ts
src/reducers/duel/modal/checkCardModalV2Slice.ts
+2
-2
src/reducers/duel/modal/checkCardModalV3Slice.ts
src/reducers/duel/modal/checkCardModalV3Slice.ts
+2
-2
src/reducers/duel/modal/checkCounterModalSlice.ts
src/reducers/duel/modal/checkCounterModalSlice.ts
+1
-1
src/reducers/duel/modal/mod.ts
src/reducers/duel/modal/mod.ts
+2
-2
src/reducers/duel/modal/optionModalSlice.ts
src/reducers/duel/modal/optionModalSlice.ts
+1
-1
src/reducers/duel/modal/positionModalSlice.ts
src/reducers/duel/modal/positionModalSlice.ts
+1
-1
src/reducers/duel/modal/sortCardModalSlice.ts
src/reducers/duel/modal/sortCardModalSlice.ts
+2
-2
src/reducers/duel/modal/yesNoModalSlice.ts
src/reducers/duel/modal/yesNoModalSlice.ts
+3
-3
src/reducers/duel/monstersSlice.ts
src/reducers/duel/monstersSlice.ts
+2
-2
src/reducers/duel/util.ts
src/reducers/duel/util.ts
+1
-1
src/service/duel/attack.ts
src/service/duel/attack.ts
+1
-1
src/service/duel/attackDisable.ts
src/service/duel/attackDisable.ts
+1
-1
src/service/duel/chaining.ts
src/service/duel/chaining.ts
+1
-1
src/service/duel/draw.ts
src/service/duel/draw.ts
+1
-1
src/service/duel/flipSummoned.ts
src/service/duel/flipSummoned.ts
+1
-1
src/service/duel/flipSummoning.ts
src/service/duel/flipSummoning.ts
+1
-1
src/service/duel/gameMsg.ts
src/service/duel/gameMsg.ts
+1
-1
src/service/duel/hint.ts
src/service/duel/hint.ts
+1
-1
src/service/duel/move.ts
src/service/duel/move.ts
+1
-1
src/service/duel/newPhase.ts
src/service/duel/newPhase.ts
+1
-1
src/service/duel/newTurn.ts
src/service/duel/newTurn.ts
+1
-1
src/service/duel/posChange.ts
src/service/duel/posChange.ts
+1
-1
src/service/duel/reloadField.ts
src/service/duel/reloadField.ts
+1
-1
src/service/duel/selectBattleCmd.ts
src/service/duel/selectBattleCmd.ts
+1
-1
src/service/duel/selectCard.ts
src/service/duel/selectCard.ts
+1
-1
src/service/duel/selectChain.ts
src/service/duel/selectChain.ts
+2
-2
src/service/duel/selectCounter.ts
src/service/duel/selectCounter.ts
+1
-1
src/service/duel/selectEffectYn.ts
src/service/duel/selectEffectYn.ts
+2
-2
src/service/duel/selectIdleCmd.ts
src/service/duel/selectIdleCmd.ts
+1
-1
src/service/duel/selectOption.ts
src/service/duel/selectOption.ts
+1
-1
src/service/duel/selectPlace.ts
src/service/duel/selectPlace.ts
+1
-1
src/service/duel/selectPosition.ts
src/service/duel/selectPosition.ts
+1
-1
src/service/duel/selectSum.ts
src/service/duel/selectSum.ts
+1
-1
src/service/duel/selectTribute.ts
src/service/duel/selectTribute.ts
+1
-1
src/service/duel/selectUnselectCard.ts
src/service/duel/selectUnselectCard.ts
+1
-1
src/service/duel/selectYesNo.ts
src/service/duel/selectYesNo.ts
+1
-1
src/service/duel/set.ts
src/service/duel/set.ts
+1
-1
src/service/duel/shuffleHand.ts
src/service/duel/shuffleHand.ts
+1
-1
src/service/duel/sortCard.ts
src/service/duel/sortCard.ts
+1
-1
src/service/duel/spSummoned.ts
src/service/duel/spSummoned.ts
+1
-1
src/service/duel/spSummoning.ts
src/service/duel/spSummoning.ts
+1
-1
src/service/duel/start.ts
src/service/duel/start.ts
+1
-1
src/service/duel/summoned.ts
src/service/duel/summoned.ts
+1
-1
src/service/duel/summoning.ts
src/service/duel/summoning.ts
+1
-1
src/service/duel/swap.ts
src/service/duel/swap.ts
+1
-1
src/service/duel/timeLimit.ts
src/service/duel/timeLimit.ts
+2
-2
src/service/duel/unimplemented.ts
src/service/duel/unimplemented.ts
+1
-1
src/service/duel/updateCounter.ts
src/service/duel/updateCounter.ts
+1
-1
src/service/duel/updateData.ts
src/service/duel/updateData.ts
+1
-1
src/service/duel/updateHp.ts
src/service/duel/updateHp.ts
+1
-1
src/service/duel/util.ts
src/service/duel/util.ts
+1
-1
src/service/duel/wait.ts
src/service/duel/wait.ts
+1
-1
src/service/duel/win.ts
src/service/duel/win.ts
+1
-1
src/service/mora/deckCount.ts
src/service/mora/deckCount.ts
+1
-1
src/service/mora/selectHand.ts
src/service/mora/selectHand.ts
+1
-1
src/service/mora/selectTp.ts
src/service/mora/selectTp.ts
+1
-1
src/service/onSocketMessage.ts
src/service/onSocketMessage.ts
+2
-2
src/service/onSocketOpen.ts
src/service/onSocketOpen.ts
+1
-1
src/service/room/chat.ts
src/service/room/chat.ts
+1
-1
src/service/room/duelStart.ts
src/service/room/duelStart.ts
+1
-1
src/service/room/hsPlayerChange.ts
src/service/room/hsPlayerChange.ts
+1
-1
src/service/room/hsPlayerEnter.ts
src/service/room/hsPlayerEnter.ts
+1
-1
src/service/room/hsWatchChange.ts
src/service/room/hsWatchChange.ts
+1
-1
src/service/room/joinGame.ts
src/service/room/joinGame.ts
+1
-1
src/service/room/typeChange.ts
src/service/room/typeChange.ts
+1
-1
src/ui/Duel/alert.tsx
src/ui/Duel/alert.tsx
+1
-1
src/ui/Duel/cardListModal.tsx
src/ui/Duel/cardListModal.tsx
+1
-1
src/ui/Duel/cardModal.tsx
src/ui/Duel/cardModal.tsx
+2
-2
src/ui/Duel/checkCardModal.tsx
src/ui/Duel/checkCardModal.tsx
+1
-1
src/ui/Duel/checkCardModalV2.tsx
src/ui/Duel/checkCardModalV2.tsx
+1
-1
src/ui/Duel/checkCardModalV3.tsx
src/ui/Duel/checkCardModalV3.tsx
+1
-1
src/ui/Duel/checkCounterModal.tsx
src/ui/Duel/checkCounterModal.tsx
+2
-2
src/ui/Duel/fixedSlot.tsx
src/ui/Duel/fixedSlot.tsx
+2
-2
src/ui/Duel/hintNotification.tsx
src/ui/Duel/hintNotification.tsx
+1
-1
src/ui/Duel/optionModal.tsx
src/ui/Duel/optionModal.tsx
+1
-1
src/ui/Duel/phase.tsx
src/ui/Duel/phase.tsx
+1
-1
src/ui/Duel/positionModal.tsx
src/ui/Duel/positionModal.tsx
+2
-2
src/ui/Duel/sendBox.tsx
src/ui/Duel/sendBox.tsx
+1
-1
src/ui/Duel/sortCardModal.tsx
src/ui/Duel/sortCardModal.tsx
+2
-2
src/ui/Duel/yesNoModal.tsx
src/ui/Duel/yesNoModal.tsx
+1
-1
src/ui/Mora.tsx
src/ui/Mora.tsx
+1
-1
src/ui/WaitRoom.tsx
src/ui/WaitRoom.tsx
+3
-3
No files found.
src/middleware/sqlite.ts
View file @
15e4a1e4
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
* */
* */
import
initSqlJs
,
{
Database
}
from
"
sql.js
"
;
import
initSqlJs
,
{
Database
}
from
"
sql.js
"
;
import
{
CardMeta
,
CardData
,
CardText
}
from
"
..
/api/cards
"
;
import
{
CardMeta
,
CardData
,
CardText
}
from
"
@
/api/cards
"
;
import
NeosConfig
from
"
../../neos.config.json
"
;
import
NeosConfig
from
"
../../neos.config.json
"
;
export
enum
sqliteCmd
{
export
enum
sqliteCmd
{
...
...
src/reducers/duel/cemeretySlice.ts
View file @
15e4a1e4
...
@@ -6,7 +6,7 @@ import {
...
@@ -6,7 +6,7 @@ import {
}
from
"
@reduxjs/toolkit
"
;
}
from
"
@reduxjs/toolkit
"
;
import
{
DuelState
}
from
"
./mod
"
;
import
{
DuelState
}
from
"
./mod
"
;
import
{
RootState
}
from
"
@/store
"
;
import
{
RootState
}
from
"
@/store
"
;
import
{
ygopro
}
from
"
../..
/api/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@
/api/ocgcore/idl/ocgcore
"
;
import
{
import
{
createAsyncMetaThunk
,
createAsyncMetaThunk
,
DuelFieldState
,
DuelFieldState
,
...
...
src/reducers/duel/commonSlice.ts
View file @
15e4a1e4
import
{
ygopro
}
from
"
../..
/api/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@
/api/ocgcore/idl/ocgcore
"
;
import
{
import
{
clearIdleInteractivities
,
clearIdleInteractivities
,
clearPlaceInteractivities
,
clearPlaceInteractivities
,
...
...
src/reducers/duel/deckSlice.ts
View file @
15e4a1e4
...
@@ -2,7 +2,7 @@ import { judgeSelf } from "./util";
...
@@ -2,7 +2,7 @@ import { judgeSelf } from "./util";
import
{
PayloadAction
,
CaseReducer
}
from
"
@reduxjs/toolkit
"
;
import
{
PayloadAction
,
CaseReducer
}
from
"
@reduxjs/toolkit
"
;
import
{
DuelState
}
from
"
./mod
"
;
import
{
DuelState
}
from
"
./mod
"
;
import
{
RootState
}
from
"
@/store
"
;
import
{
RootState
}
from
"
@/store
"
;
import
{
ygopro
}
from
"
../..
/api/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@
/api/ocgcore/idl/ocgcore
"
;
import
{
DuelFieldState
,
CardState
}
from
"
./generic
"
;
import
{
DuelFieldState
,
CardState
}
from
"
./generic
"
;
export
interface
DeckState
extends
DuelFieldState
{}
export
interface
DeckState
extends
DuelFieldState
{}
...
...
src/reducers/duel/exclusionSlice.ts
View file @
15e4a1e4
...
@@ -6,7 +6,7 @@ import {
...
@@ -6,7 +6,7 @@ import {
}
from
"
@reduxjs/toolkit
"
;
}
from
"
@reduxjs/toolkit
"
;
import
{
DuelState
}
from
"
./mod
"
;
import
{
DuelState
}
from
"
./mod
"
;
import
{
RootState
}
from
"
@/store
"
;
import
{
RootState
}
from
"
@/store
"
;
import
{
ygopro
}
from
"
../..
/api/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@
/api/ocgcore/idl/ocgcore
"
;
import
{
import
{
createAsyncMetaThunk
,
createAsyncMetaThunk
,
DuelFieldState
,
DuelFieldState
,
...
...
src/reducers/duel/extraDeckSlice.ts
View file @
15e4a1e4
import
{
ActionReducerMapBuilder
}
from
"
@reduxjs/toolkit
"
;
import
{
ActionReducerMapBuilder
}
from
"
@reduxjs/toolkit
"
;
import
{
ygopro
}
from
"
../..
/api/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@
/api/ocgcore/idl/ocgcore
"
;
import
{
RootState
}
from
"
@/store
"
;
import
{
RootState
}
from
"
@/store
"
;
import
{
import
{
createAsyncMetaThunk
,
createAsyncMetaThunk
,
...
...
src/reducers/duel/generic.ts
View file @
15e4a1e4
...
@@ -4,9 +4,9 @@ import {
...
@@ -4,9 +4,9 @@ import {
createAsyncThunk
,
createAsyncThunk
,
PayloadAction
,
PayloadAction
,
}
from
"
@reduxjs/toolkit
"
;
}
from
"
@reduxjs/toolkit
"
;
import
{
CardMeta
}
from
"
../..
/api/cards
"
;
import
{
CardMeta
}
from
"
@
/api/cards
"
;
import
{
ygopro
}
from
"
../..
/api/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@
/api/ocgcore/idl/ocgcore
"
;
import
{
fetchCard
}
from
"
../..
/api/cards
"
;
import
{
fetchCard
}
from
"
@
/api/cards
"
;
import
{
DuelState
}
from
"
./mod
"
;
import
{
DuelState
}
from
"
./mod
"
;
import
ReloadFieldAction
=
ygopro
.
StocGameMessage
.
MsgReloadField
.
ZoneAction
;
import
ReloadFieldAction
=
ygopro
.
StocGameMessage
.
MsgReloadField
.
ZoneAction
;
type
UpdateDataAction
=
ReturnType
<
type
UpdateDataAction
=
ReturnType
<
...
...
src/reducers/duel/handsSlice.ts
View file @
15e4a1e4
...
@@ -16,7 +16,7 @@ import {
...
@@ -16,7 +16,7 @@ import {
createAsyncRepeatedMetaThunk
,
createAsyncRepeatedMetaThunk
,
updateCardMeta
,
updateCardMeta
,
}
from
"
./generic
"
;
}
from
"
./generic
"
;
import
{
ygopro
}
from
"
../..
/api/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@
/api/ocgcore/idl/ocgcore
"
;
export
interface
HandState
extends
DuelFieldState
{}
export
interface
HandState
extends
DuelFieldState
{}
...
...
src/reducers/duel/hintSlice.ts
View file @
15e4a1e4
import
{
createAsyncThunk
,
ActionReducerMapBuilder
}
from
"
@reduxjs/toolkit
"
;
import
{
createAsyncThunk
,
ActionReducerMapBuilder
}
from
"
@reduxjs/toolkit
"
;
import
{
DuelState
}
from
"
./mod
"
;
import
{
DuelState
}
from
"
./mod
"
;
import
{
RootState
}
from
"
@/store
"
;
import
{
RootState
}
from
"
@/store
"
;
import
{
DESCRIPTION_LIMIT
,
fetchStrings
,
getStrings
}
from
"
../..
/api/strings
"
;
import
{
DESCRIPTION_LIMIT
,
fetchStrings
,
getStrings
}
from
"
@
/api/strings
"
;
import
{
findCardByLocation
}
from
"
./util
"
;
import
{
findCardByLocation
}
from
"
./util
"
;
import
{
fetchCard
}
from
"
../..
/api/cards
"
;
import
{
fetchCard
}
from
"
@
/api/cards
"
;
import
{
DuelReducer
}
from
"
./generic
"
;
import
{
DuelReducer
}
from
"
./generic
"
;
import
{
ygopro
}
from
"
../..
/api/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@
/api/ocgcore/idl/ocgcore
"
;
export
interface
HintState
{
export
interface
HintState
{
code
:
number
;
code
:
number
;
...
...
src/reducers/duel/initInfoSlice.ts
View file @
15e4a1e4
import
{
PayloadAction
,
CaseReducer
}
from
"
@reduxjs/toolkit
"
;
import
{
PayloadAction
,
CaseReducer
}
from
"
@reduxjs/toolkit
"
;
import
{
ygopro
}
from
"
../..
/api/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@
/api/ocgcore/idl/ocgcore
"
;
import
{
RootState
}
from
"
@/store
"
;
import
{
RootState
}
from
"
@/store
"
;
import
{
DuelState
}
from
"
./mod
"
;
import
{
DuelState
}
from
"
./mod
"
;
import
{
judgeSelf
}
from
"
./util
"
;
import
{
judgeSelf
}
from
"
./util
"
;
...
...
src/reducers/duel/magicSlice.ts
View file @
15e4a1e4
...
@@ -5,7 +5,7 @@ import {
...
@@ -5,7 +5,7 @@ import {
ActionReducerMapBuilder
,
ActionReducerMapBuilder
,
}
from
"
@reduxjs/toolkit
"
;
}
from
"
@reduxjs/toolkit
"
;
import
{
DuelState
}
from
"
./mod
"
;
import
{
DuelState
}
from
"
./mod
"
;
import
{
ygopro
}
from
"
../..
/api/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@
/api/ocgcore/idl/ocgcore
"
;
import
{
RootState
}
from
"
@/store
"
;
import
{
RootState
}
from
"
@/store
"
;
import
{
import
{
createAsyncMetaThunk
,
createAsyncMetaThunk
,
...
...
src/reducers/duel/mod.ts
View file @
15e4a1e4
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
*
*
* */
* */
import
{
ygopro
}
from
"
../..
/api/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@
/api/ocgcore/idl/ocgcore
"
;
import
{
createSlice
,
PayloadAction
}
from
"
@reduxjs/toolkit
"
;
import
{
createSlice
,
PayloadAction
}
from
"
@reduxjs/toolkit
"
;
import
{
InitInfo
,
infoInitImpl
,
updateHpImpl
}
from
"
./initInfoSlice
"
;
import
{
InitInfo
,
infoInitImpl
,
updateHpImpl
}
from
"
./initInfoSlice
"
;
import
{
TimeLimit
,
updateTimeLimitImpl
}
from
"
./timeLimit
"
;
import
{
TimeLimit
,
updateTimeLimitImpl
}
from
"
./timeLimit
"
;
...
...
src/reducers/duel/modal/cardListModalSlice.ts
View file @
15e4a1e4
import
{
PayloadAction
,
CaseReducer
}
from
"
@reduxjs/toolkit
"
;
import
{
PayloadAction
,
CaseReducer
}
from
"
@reduxjs/toolkit
"
;
import
{
DuelState
}
from
"
../mod
"
;
import
{
DuelState
}
from
"
../mod
"
;
import
{
RootState
}
from
"
@/store
"
;
import
{
RootState
}
from
"
@/store
"
;
import
{
CardMeta
}
from
"
../../..
/api/cards
"
;
import
{
CardMeta
}
from
"
@
/api/cards
"
;
// 更新卡牌列表弹窗打开状态
// 更新卡牌列表弹窗打开状态
export
const
setCardListModalIsOpenImpl
:
CaseReducer
<
export
const
setCardListModalIsOpenImpl
:
CaseReducer
<
...
...
src/reducers/duel/modal/cardModalSlice.ts
View file @
15e4a1e4
import
{
PayloadAction
,
CaseReducer
}
from
"
@reduxjs/toolkit
"
;
import
{
PayloadAction
,
CaseReducer
}
from
"
@reduxjs/toolkit
"
;
import
{
DuelState
}
from
"
../mod
"
;
import
{
DuelState
}
from
"
../mod
"
;
import
{
RootState
}
from
"
@/store
"
;
import
{
RootState
}
from
"
@/store
"
;
import
{
CardMeta
}
from
"
../../..
/api/cards
"
;
import
{
CardMeta
}
from
"
@
/api/cards
"
;
// 更新卡牌弹窗打开状态
// 更新卡牌弹窗打开状态
export
const
setCardModalIsOpenImpl
:
CaseReducer
<
export
const
setCardModalIsOpenImpl
:
CaseReducer
<
...
...
src/reducers/duel/modal/checkCardModalSlice.ts
View file @
15e4a1e4
...
@@ -7,8 +7,8 @@ import {
...
@@ -7,8 +7,8 @@ import {
import
{
RootState
}
from
"
@/store
"
;
import
{
RootState
}
from
"
@/store
"
;
import
{
DuelState
}
from
"
../mod
"
;
import
{
DuelState
}
from
"
../mod
"
;
import
{
cmpCardLocation
,
findCardByLocation
,
judgeSelf
}
from
"
../util
"
;
import
{
cmpCardLocation
,
findCardByLocation
,
judgeSelf
}
from
"
../util
"
;
import
{
fetchCard
,
getCardStr
}
from
"
../../..
/api/cards
"
;
import
{
fetchCard
,
getCardStr
}
from
"
@
/api/cards
"
;
import
{
ygopro
}
from
"
../../..
/api/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@
/api/ocgcore/idl/ocgcore
"
;
// 更新卡牌选择弹窗打开状态
// 更新卡牌选择弹窗打开状态
export
const
setCheckCardModalIsOpenImpl
:
CaseReducer
<
export
const
setCheckCardModalIsOpenImpl
:
CaseReducer
<
...
...
src/reducers/duel/modal/checkCardModalV2Slice.ts
View file @
15e4a1e4
...
@@ -5,9 +5,9 @@ import {
...
@@ -5,9 +5,9 @@ import {
CaseReducer
,
CaseReducer
,
createAsyncThunk
,
createAsyncThunk
,
}
from
"
@reduxjs/toolkit
"
;
}
from
"
@reduxjs/toolkit
"
;
import
{
fetchCard
}
from
"
../../..
/api/cards
"
;
import
{
fetchCard
}
from
"
@
/api/cards
"
;
import
{
RootState
}
from
"
@/store
"
;
import
{
RootState
}
from
"
@/store
"
;
import
{
ygopro
}
from
"
../../..
/api/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@
/api/ocgcore/idl/ocgcore
"
;
import
{
findCardByLocation
}
from
"
../util
"
;
import
{
findCardByLocation
}
from
"
../util
"
;
// 更新打开状态
// 更新打开状态
...
...
src/reducers/duel/modal/checkCardModalV3Slice.ts
View file @
15e4a1e4
...
@@ -5,9 +5,9 @@ import {
...
@@ -5,9 +5,9 @@ import {
CaseReducer
,
CaseReducer
,
createAsyncThunk
,
createAsyncThunk
,
}
from
"
@reduxjs/toolkit
"
;
}
from
"
@reduxjs/toolkit
"
;
import
{
fetchCard
}
from
"
../../..
/api/cards
"
;
import
{
fetchCard
}
from
"
@
/api/cards
"
;
import
{
RootState
}
from
"
@/store
"
;
import
{
RootState
}
from
"
@/store
"
;
import
{
ygopro
}
from
"
../../..
/api/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@
/api/ocgcore/idl/ocgcore
"
;
import
{
findCardByLocation
}
from
"
../util
"
;
import
{
findCardByLocation
}
from
"
../util
"
;
// 更新打开状态
// 更新打开状态
...
...
src/reducers/duel/modal/checkCounterModalSlice.ts
View file @
15e4a1e4
...
@@ -3,7 +3,7 @@ import { PayloadAction, CaseReducer } from "@reduxjs/toolkit";
...
@@ -3,7 +3,7 @@ import { PayloadAction, CaseReducer } from "@reduxjs/toolkit";
import
{
RootState
}
from
"
@/store
"
;
import
{
RootState
}
from
"
@/store
"
;
import
{
DuelState
}
from
"
../mod
"
;
import
{
DuelState
}
from
"
../mod
"
;
import
{
findCardByLocation
}
from
"
../util
"
;
import
{
findCardByLocation
}
from
"
../util
"
;
import
{
ygopro
}
from
"
../../..
/api/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@
/api/ocgcore/idl/ocgcore
"
;
type
SelectCounter
=
ReturnType
<
type
SelectCounter
=
ReturnType
<
typeof
ygopro
.
StocGameMessage
.
MsgSelectCounter
.
prototype
.
toObject
typeof
ygopro
.
StocGameMessage
.
MsgSelectCounter
.
prototype
.
toObject
>
;
>
;
...
...
src/reducers/duel/modal/mod.ts
View file @
15e4a1e4
import
{
CardMeta
}
from
"
../../..
/api/cards
"
;
import
{
CardMeta
}
from
"
@
/api/cards
"
;
import
{
ygopro
}
from
"
../../..
/api/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@
/api/ocgcore/idl/ocgcore
"
;
type
CardLocation
=
ReturnType
<
typeof
ygopro
.
CardLocation
.
prototype
.
toObject
>
;
type
CardLocation
=
ReturnType
<
typeof
ygopro
.
CardLocation
.
prototype
.
toObject
>
;
export
interface
ModalState
{
export
interface
ModalState
{
...
...
src/reducers/duel/modal/optionModalSlice.ts
View file @
15e4a1e4
...
@@ -5,7 +5,7 @@ import {
...
@@ -5,7 +5,7 @@ import {
ActionReducerMapBuilder
,
ActionReducerMapBuilder
,
}
from
"
@reduxjs/toolkit
"
;
}
from
"
@reduxjs/toolkit
"
;
import
{
DuelState
}
from
"
../mod
"
;
import
{
DuelState
}
from
"
../mod
"
;
import
{
fetchCard
,
getCardStr
}
from
"
../../..
/api/cards
"
;
import
{
fetchCard
,
getCardStr
}
from
"
@
/api/cards
"
;
import
{
RootState
}
from
"
@/store
"
;
import
{
RootState
}
from
"
@/store
"
;
export
const
setOptionModalIsOpenImpl
:
CaseReducer
<
export
const
setOptionModalIsOpenImpl
:
CaseReducer
<
...
...
src/reducers/duel/modal/positionModalSlice.ts
View file @
15e4a1e4
import
{
PayloadAction
,
CaseReducer
}
from
"
@reduxjs/toolkit
"
;
import
{
PayloadAction
,
CaseReducer
}
from
"
@reduxjs/toolkit
"
;
import
{
RootState
}
from
"
@/store
"
;
import
{
RootState
}
from
"
@/store
"
;
import
{
DuelState
}
from
"
../mod
"
;
import
{
DuelState
}
from
"
../mod
"
;
import
{
ygopro
}
from
"
../../..
/api/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@
/api/ocgcore/idl/ocgcore
"
;
export
const
setPositionModalIsOpenImpl
:
CaseReducer
<
export
const
setPositionModalIsOpenImpl
:
CaseReducer
<
DuelState
,
DuelState
,
...
...
src/reducers/duel/modal/sortCardModalSlice.ts
View file @
15e4a1e4
...
@@ -3,8 +3,8 @@ import {
...
@@ -3,8 +3,8 @@ import {
CaseReducer
,
CaseReducer
,
createAsyncThunk
,
createAsyncThunk
,
}
from
"
@reduxjs/toolkit
"
;
}
from
"
@reduxjs/toolkit
"
;
import
{
fetchCard
}
from
"
../../..
/api/cards
"
;
import
{
fetchCard
}
from
"
@
/api/cards
"
;
import
{
ygopro
}
from
"
../../..
/api/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@
/api/ocgcore/idl/ocgcore
"
;
import
{
RootState
}
from
"
@/store
"
;
import
{
RootState
}
from
"
@/store
"
;
import
{
DuelReducer
}
from
"
../generic
"
;
import
{
DuelReducer
}
from
"
../generic
"
;
import
{
DuelState
}
from
"
../mod
"
;
import
{
DuelState
}
from
"
../mod
"
;
...
...
src/reducers/duel/modal/yesNoModalSlice.ts
View file @
15e4a1e4
...
@@ -4,9 +4,9 @@ import {
...
@@ -4,9 +4,9 @@ import {
createAsyncThunk
,
createAsyncThunk
,
ActionReducerMapBuilder
,
ActionReducerMapBuilder
,
}
from
"
@reduxjs/toolkit
"
;
}
from
"
@reduxjs/toolkit
"
;
import
{
CardMeta
,
fetchCard
}
from
"
../../..
/api/cards
"
;
import
{
CardMeta
,
fetchCard
}
from
"
@
/api/cards
"
;
import
{
ygopro
}
from
"
../../..
/api/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@
/api/ocgcore/idl/ocgcore
"
;
import
{
fetchStrings
,
getStrings
}
from
"
../../..
/api/strings
"
;
import
{
fetchStrings
,
getStrings
}
from
"
@
/api/strings
"
;
import
{
RootState
}
from
"
@/store
"
;
import
{
RootState
}
from
"
@/store
"
;
import
{
DuelState
}
from
"
../mod
"
;
import
{
DuelState
}
from
"
../mod
"
;
...
...
src/reducers/duel/monstersSlice.ts
View file @
15e4a1e4
...
@@ -6,7 +6,7 @@ import {
...
@@ -6,7 +6,7 @@ import {
createAsyncThunk
,
createAsyncThunk
,
}
from
"
@reduxjs/toolkit
"
;
}
from
"
@reduxjs/toolkit
"
;
import
{
DuelState
}
from
"
./mod
"
;
import
{
DuelState
}
from
"
./mod
"
;
import
{
ygopro
}
from
"
../..
/api/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@
/api/ocgcore/idl/ocgcore
"
;
import
{
RootState
}
from
"
@/store
"
;
import
{
RootState
}
from
"
@/store
"
;
import
{
import
{
DuelFieldState
,
DuelFieldState
,
...
@@ -21,7 +21,7 @@ import {
...
@@ -21,7 +21,7 @@ import {
setPosition
,
setPosition
,
removeOverlay
,
removeOverlay
,
}
from
"
./generic
"
;
}
from
"
./generic
"
;
import
{
fetchCard
}
from
"
../..
/api/cards
"
;
import
{
fetchCard
}
from
"
@
/api/cards
"
;
type
MsgUpdateCounter
=
ReturnType
<
type
MsgUpdateCounter
=
ReturnType
<
typeof
ygopro
.
StocGameMessage
.
MsgUpdateCounter
.
prototype
.
toObject
typeof
ygopro
.
StocGameMessage
.
MsgUpdateCounter
.
prototype
.
toObject
>
;
>
;
...
...
src/reducers/duel/util.ts
View file @
15e4a1e4
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
import
{
DuelState
}
from
"
./mod
"
;
import
{
DuelState
}
from
"
./mod
"
;
import
{
Draft
}
from
"
@reduxjs/toolkit
"
;
import
{
Draft
}
from
"
@reduxjs/toolkit
"
;
import
{
ygopro
}
from
"
../..
/api/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@
/api/ocgcore/idl/ocgcore
"
;
import
{
CardState
}
from
"
./generic
"
;
import
{
CardState
}
from
"
./generic
"
;
type
Location
=
type
Location
=
...
...
src/service/duel/attack.ts
View file @
15e4a1e4
import
{
ygopro
}
from
"
../..
/api/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@
/api/ocgcore/idl/ocgcore
"
;
import
{
fetchEsHintMeta
}
from
"
../../reducers/duel/hintSlice
"
;
import
{
fetchEsHintMeta
}
from
"
../../reducers/duel/hintSlice
"
;
import
{
AppDispatch
}
from
"
@/store
"
;
import
{
AppDispatch
}
from
"
@/store
"
;
...
...
src/service/duel/attackDisable.ts
View file @
15e4a1e4
import
{
ygopro
}
from
"
../..
/api/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@
/api/ocgcore/idl/ocgcore
"
;
import
{
fetchEsHintMeta
}
from
"
../../reducers/duel/hintSlice
"
;
import
{
fetchEsHintMeta
}
from
"
../../reducers/duel/hintSlice
"
;
import
{
AppDispatch
}
from
"
@/store
"
;
import
{
AppDispatch
}
from
"
@/store
"
;
...
...
src/service/duel/chaining.ts
View file @
15e4a1e4
import
{
ygopro
}
from
"
../..
/api/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@
/api/ocgcore/idl/ocgcore
"
;
import
{
fetchEsHintMeta
}
from
"
../../reducers/duel/hintSlice
"
;
import
{
fetchEsHintMeta
}
from
"
../../reducers/duel/hintSlice
"
;
import
{
AppDispatch
}
from
"
@/store
"
;
import
{
AppDispatch
}
from
"
@/store
"
;
...
...
src/service/duel/draw.ts
View file @
15e4a1e4
import
{
ygopro
}
from
"
../..
/api/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@
/api/ocgcore/idl/ocgcore
"
;
import
{
AppDispatch
}
from
"
@/store
"
;
import
{
AppDispatch
}
from
"
@/store
"
;
import
{
fetchHandsMeta
}
from
"
../../reducers/duel/handsSlice
"
;
import
{
fetchHandsMeta
}
from
"
../../reducers/duel/handsSlice
"
;
import
{
fetchEsHintMeta
}
from
"
../../reducers/duel/hintSlice
"
;
import
{
fetchEsHintMeta
}
from
"
../../reducers/duel/hintSlice
"
;
...
...
src/service/duel/flipSummoned.ts
View file @
15e4a1e4
import
{
ygopro
}
from
"
../..
/api/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@
/api/ocgcore/idl/ocgcore
"
;
import
{
fetchEsHintMeta
}
from
"
../../reducers/duel/hintSlice
"
;
import
{
fetchEsHintMeta
}
from
"
../../reducers/duel/hintSlice
"
;
import
{
AppDispatch
}
from
"
@/store
"
;
import
{
AppDispatch
}
from
"
@/store
"
;
...
...
src/service/duel/flipSummoning.ts
View file @
15e4a1e4
import
{
ygopro
}
from
"
../..
/api/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@
/api/ocgcore/idl/ocgcore
"
;
import
{
fetchEsHintMeta
}
from
"
../../reducers/duel/hintSlice
"
;
import
{
fetchEsHintMeta
}
from
"
../../reducers/duel/hintSlice
"
;
import
{
AppDispatch
}
from
"
@/store
"
;
import
{
AppDispatch
}
from
"
@/store
"
;
...
...
src/service/duel/gameMsg.ts
View file @
15e4a1e4
import
{
ygopro
}
from
"
../..
/api/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@
/api/ocgcore/idl/ocgcore
"
;
import
{
store
}
from
"
@/store
"
;
import
{
store
}
from
"
@/store
"
;
import
onMsgStart
from
"
./start
"
;
import
onMsgStart
from
"
./start
"
;
import
onMsgDraw
from
"
./draw
"
;
import
onMsgDraw
from
"
./draw
"
;
...
...
src/service/duel/hint.ts
View file @
15e4a1e4
import
{
ygopro
}
from
"
../..
/api/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@
/api/ocgcore/idl/ocgcore
"
;
import
{
AppDispatch
}
from
"
@/store
"
;
import
{
AppDispatch
}
from
"
@/store
"
;
import
{
import
{
fetchCommonHintMeta
,
fetchCommonHintMeta
,
...
...
src/service/duel/move.ts
View file @
15e4a1e4
import
{
ygopro
}
from
"
../..
/api/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@
/api/ocgcore/idl/ocgcore
"
;
import
MsgMove
=
ygopro
.
StocGameMessage
.
MsgMove
;
import
MsgMove
=
ygopro
.
StocGameMessage
.
MsgMove
;
import
{
AppDispatch
}
from
"
@/store
"
;
import
{
AppDispatch
}
from
"
@/store
"
;
import
{
import
{
...
...
src/service/duel/newPhase.ts
View file @
15e4a1e4
import
{
ygopro
}
from
"
../..
/api/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@
/api/ocgcore/idl/ocgcore
"
;
import
{
AppDispatch
}
from
"
@/store
"
;
import
{
AppDispatch
}
from
"
@/store
"
;
import
{
updatePhase
}
from
"
../../reducers/duel/mod
"
;
import
{
updatePhase
}
from
"
../../reducers/duel/mod
"
;
...
...
src/service/duel/newTurn.ts
View file @
15e4a1e4
import
{
ygopro
}
from
"
../..
/api/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@
/api/ocgcore/idl/ocgcore
"
;
import
{
AppDispatch
}
from
"
@/store
"
;
import
{
AppDispatch
}
from
"
@/store
"
;
import
{
updateTurn
}
from
"
../../reducers/duel/mod
"
;
import
{
updateTurn
}
from
"
../../reducers/duel/mod
"
;
...
...
src/service/duel/posChange.ts
View file @
15e4a1e4
import
{
ygopro
}
from
"
../..
/api/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@
/api/ocgcore/idl/ocgcore
"
;
import
{
fetchEsHintMeta
}
from
"
../../reducers/duel/hintSlice
"
;
import
{
fetchEsHintMeta
}
from
"
../../reducers/duel/hintSlice
"
;
import
{
setMagicPosition
,
setMonsterPosition
}
from
"
../../reducers/duel/mod
"
;
import
{
setMagicPosition
,
setMonsterPosition
}
from
"
../../reducers/duel/mod
"
;
import
{
AppDispatch
}
from
"
@/store
"
;
import
{
AppDispatch
}
from
"
@/store
"
;
...
...
src/service/duel/reloadField.ts
View file @
15e4a1e4
import
{
ygopro
}
from
"
../..
/api/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@
/api/ocgcore/idl/ocgcore
"
;
import
{
reloadField
}
from
"
../../reducers/duel/mod
"
;
import
{
reloadField
}
from
"
../../reducers/duel/mod
"
;
import
{
AppDispatch
}
from
"
@/store
"
;
import
{
AppDispatch
}
from
"
@/store
"
;
import
MsgReloadField
=
ygopro
.
StocGameMessage
.
MsgReloadField
;
import
MsgReloadField
=
ygopro
.
StocGameMessage
.
MsgReloadField
;
...
...
src/service/duel/selectBattleCmd.ts
View file @
15e4a1e4
import
{
ActionCreatorWithPayload
}
from
"
@reduxjs/toolkit
"
;
import
{
ActionCreatorWithPayload
}
from
"
@reduxjs/toolkit
"
;
import
{
ygopro
}
from
"
../..
/api/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@
/api/ocgcore/idl/ocgcore
"
;
import
{
Interactivity
,
InteractType
}
from
"
../../reducers/duel/generic
"
;
import
{
Interactivity
,
InteractType
}
from
"
../../reducers/duel/generic
"
;
import
{
import
{
addHandsIdleInteractivity
,
addHandsIdleInteractivity
,
...
...
src/service/duel/selectCard.ts
View file @
15e4a1e4
import
{
ygopro
}
from
"
../..
/api/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@
/api/ocgcore/idl/ocgcore
"
;
import
{
AppDispatch
}
from
"
@/store
"
;
import
{
AppDispatch
}
from
"
@/store
"
;
import
{
import
{
setCheckCardModalIsOpen
,
setCheckCardModalIsOpen
,
...
...
src/service/duel/selectChain.ts
View file @
15e4a1e4
import
{
ygopro
}
from
"
../..
/api/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@
/api/ocgcore/idl/ocgcore
"
;
import
{
sendSelectChainResponse
}
from
"
../..
/api/ocgcore/ocgHelper
"
;
import
{
sendSelectChainResponse
}
from
"
@
/api/ocgcore/ocgHelper
"
;
import
{
fetchSelectHintMeta
}
from
"
../../reducers/duel/hintSlice
"
;
import
{
fetchSelectHintMeta
}
from
"
../../reducers/duel/hintSlice
"
;
import
{
import
{
setCheckCardMOdalCancelAble
,
setCheckCardMOdalCancelAble
,
...
...
src/service/duel/selectCounter.ts
View file @
15e4a1e4
import
{
ygopro
}
from
"
../..
/api/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@
/api/ocgcore/idl/ocgcore
"
;
import
{
setCheckCounter
}
from
"
../../reducers/duel/mod
"
;
import
{
setCheckCounter
}
from
"
../../reducers/duel/mod
"
;
import
{
AppDispatch
}
from
"
@/store
"
;
import
{
AppDispatch
}
from
"
@/store
"
;
import
MsgSelectCounter
=
ygopro
.
StocGameMessage
.
MsgSelectCounter
;
import
MsgSelectCounter
=
ygopro
.
StocGameMessage
.
MsgSelectCounter
;
...
...
src/service/duel/selectEffectYn.ts
View file @
15e4a1e4
import
{
CardMeta
}
from
"
../..
/api/cards
"
;
import
{
CardMeta
}
from
"
@
/api/cards
"
;
import
{
ygopro
}
from
"
../..
/api/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@
/api/ocgcore/idl/ocgcore
"
;
import
{
setYesNoModalIsOpen
}
from
"
../../reducers/duel/mod
"
;
import
{
setYesNoModalIsOpen
}
from
"
../../reducers/duel/mod
"
;
import
{
fetchYesNoMeta
}
from
"
../../reducers/duel/modal/mod
"
;
import
{
fetchYesNoMeta
}
from
"
../../reducers/duel/modal/mod
"
;
import
{
AppDispatch
}
from
"
@/store
"
;
import
{
AppDispatch
}
from
"
@/store
"
;
...
...
src/service/duel/selectIdleCmd.ts
View file @
15e4a1e4
import
{
ygopro
}
from
"
../..
/api/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@
/api/ocgcore/idl/ocgcore
"
;
import
{
AppDispatch
}
from
"
@/store
"
;
import
{
AppDispatch
}
from
"
@/store
"
;
import
{
Interactivity
,
InteractType
}
from
"
../../reducers/duel/generic
"
;
import
{
Interactivity
,
InteractType
}
from
"
../../reducers/duel/generic
"
;
import
{
import
{
...
...
src/service/duel/selectOption.ts
View file @
15e4a1e4
import
{
ygopro
}
from
"
../..
/api/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@
/api/ocgcore/idl/ocgcore
"
;
import
{
setOptionModalIsOpen
}
from
"
../../reducers/duel/mod
"
;
import
{
setOptionModalIsOpen
}
from
"
../../reducers/duel/mod
"
;
import
{
fetchOptionMeta
}
from
"
../../reducers/duel/modal/mod
"
;
import
{
fetchOptionMeta
}
from
"
../../reducers/duel/modal/mod
"
;
import
{
AppDispatch
}
from
"
@/store
"
;
import
{
AppDispatch
}
from
"
@/store
"
;
...
...
src/service/duel/selectPlace.ts
View file @
15e4a1e4
import
{
ygopro
}
from
"
../..
/api/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@
/api/ocgcore/idl/ocgcore
"
;
import
{
AppDispatch
}
from
"
@/store
"
;
import
{
AppDispatch
}
from
"
@/store
"
;
import
MsgSelectPlace
=
ygopro
.
StocGameMessage
.
MsgSelectPlace
;
import
MsgSelectPlace
=
ygopro
.
StocGameMessage
.
MsgSelectPlace
;
import
{
import
{
...
...
src/service/duel/selectPosition.ts
View file @
15e4a1e4
import
{
ygopro
}
from
"
../..
/api/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@
/api/ocgcore/idl/ocgcore
"
;
import
{
import
{
setPositionModalIsOpen
,
setPositionModalIsOpen
,
setPositionModalPositions
,
setPositionModalPositions
,
...
...
src/service/duel/selectSum.ts
View file @
15e4a1e4
import
{
ygopro
}
from
"
../..
/api/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@
/api/ocgcore/idl/ocgcore
"
;
import
{
import
{
setCheckCardModalV3AllLevel
,
setCheckCardModalV3AllLevel
,
setCheckCardModalV3IsOpen
,
setCheckCardModalV3IsOpen
,
...
...
src/service/duel/selectTribute.ts
View file @
15e4a1e4
import
{
ygopro
}
from
"
../..
/api/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@
/api/ocgcore/idl/ocgcore
"
;
import
{
import
{
setCheckCardModalV3AllLevel
,
setCheckCardModalV3AllLevel
,
setCheckCardModalV3IsOpen
,
setCheckCardModalV3IsOpen
,
...
...
src/service/duel/selectUnselectCard.ts
View file @
15e4a1e4
import
{
ygopro
}
from
"
../..
/api/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@
/api/ocgcore/idl/ocgcore
"
;
import
{
import
{
setCheckCardModalV2CancelAble
,
setCheckCardModalV2CancelAble
,
setCheckCardModalV2FinishAble
,
setCheckCardModalV2FinishAble
,
...
...
src/service/duel/selectYesNo.ts
View file @
15e4a1e4
import
{
ygopro
}
from
"
../..
/api/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@
/api/ocgcore/idl/ocgcore
"
;
import
{
setYesNoModalIsOpen
}
from
"
../../reducers/duel/mod
"
;
import
{
setYesNoModalIsOpen
}
from
"
../../reducers/duel/mod
"
;
import
{
fetchYesNoMetaWithEffecDesc
}
from
"
../../reducers/duel/modal/yesNoModalSlice
"
;
import
{
fetchYesNoMetaWithEffecDesc
}
from
"
../../reducers/duel/modal/yesNoModalSlice
"
;
import
{
AppDispatch
}
from
"
@/store
"
;
import
{
AppDispatch
}
from
"
@/store
"
;
...
...
src/service/duel/set.ts
View file @
15e4a1e4
import
{
ygopro
}
from
"
../..
/api/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@
/api/ocgcore/idl/ocgcore
"
;
import
{
fetchEsHintMeta
}
from
"
../../reducers/duel/hintSlice
"
;
import
{
fetchEsHintMeta
}
from
"
../../reducers/duel/hintSlice
"
;
import
{
AppDispatch
}
from
"
@/store
"
;
import
{
AppDispatch
}
from
"
@/store
"
;
...
...
src/service/duel/shuffleHand.ts
View file @
15e4a1e4
import
{
ygopro
}
from
"
../..
/api/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@
/api/ocgcore/idl/ocgcore
"
;
import
{
updateHandsMeta
}
from
"
../../reducers/duel/handsSlice
"
;
import
{
updateHandsMeta
}
from
"
../../reducers/duel/handsSlice
"
;
import
{
AppDispatch
}
from
"
@/store
"
;
import
{
AppDispatch
}
from
"
@/store
"
;
import
MsgShuffleHand
=
ygopro
.
StocGameMessage
.
MsgShuffleHand
;
import
MsgShuffleHand
=
ygopro
.
StocGameMessage
.
MsgShuffleHand
;
...
...
src/service/duel/sortCard.ts
View file @
15e4a1e4
import
{
ygopro
}
from
"
../..
/api/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@
/api/ocgcore/idl/ocgcore
"
;
import
{
setSortCardModalIsOpen
}
from
"
../../reducers/duel/mod
"
;
import
{
setSortCardModalIsOpen
}
from
"
../../reducers/duel/mod
"
;
import
{
fetchSortCardMeta
}
from
"
../../reducers/duel/modal/sortCardModalSlice
"
;
import
{
fetchSortCardMeta
}
from
"
../../reducers/duel/modal/sortCardModalSlice
"
;
import
{
AppDispatch
}
from
"
@/store
"
;
import
{
AppDispatch
}
from
"
@/store
"
;
...
...
src/service/duel/spSummoned.ts
View file @
15e4a1e4
import
{
ygopro
}
from
"
../..
/api/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@
/api/ocgcore/idl/ocgcore
"
;
import
{
fetchEsHintMeta
}
from
"
../../reducers/duel/hintSlice
"
;
import
{
fetchEsHintMeta
}
from
"
../../reducers/duel/hintSlice
"
;
import
{
AppDispatch
}
from
"
@/store
"
;
import
{
AppDispatch
}
from
"
@/store
"
;
...
...
src/service/duel/spSummoning.ts
View file @
15e4a1e4
import
{
ygopro
}
from
"
../..
/api/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@
/api/ocgcore/idl/ocgcore
"
;
import
{
fetchEsHintMeta
}
from
"
../../reducers/duel/hintSlice
"
;
import
{
fetchEsHintMeta
}
from
"
../../reducers/duel/hintSlice
"
;
import
{
AppDispatch
}
from
"
@/store
"
;
import
{
AppDispatch
}
from
"
@/store
"
;
...
...
src/service/duel/start.ts
View file @
15e4a1e4
import
{
ygopro
}
from
"
../..
/api/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@
/api/ocgcore/idl/ocgcore
"
;
import
{
AppDispatch
}
from
"
@/store
"
;
import
{
AppDispatch
}
from
"
@/store
"
;
import
{
import
{
infoInit
,
infoInit
,
...
...
src/service/duel/summoned.ts
View file @
15e4a1e4
import
{
ygopro
}
from
"
../..
/api/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@
/api/ocgcore/idl/ocgcore
"
;
import
{
fetchEsHintMeta
}
from
"
../../reducers/duel/hintSlice
"
;
import
{
fetchEsHintMeta
}
from
"
../../reducers/duel/hintSlice
"
;
import
{
AppDispatch
}
from
"
@/store
"
;
import
{
AppDispatch
}
from
"
@/store
"
;
...
...
src/service/duel/summoning.ts
View file @
15e4a1e4
import
{
ygopro
}
from
"
../..
/api/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@
/api/ocgcore/idl/ocgcore
"
;
import
{
fetchEsHintMeta
}
from
"
../../reducers/duel/hintSlice
"
;
import
{
fetchEsHintMeta
}
from
"
../../reducers/duel/hintSlice
"
;
import
{
AppDispatch
}
from
"
@/store
"
;
import
{
AppDispatch
}
from
"
@/store
"
;
...
...
src/service/duel/swap.ts
View file @
15e4a1e4
import
{
ygopro
}
from
"
../..
/api/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@
/api/ocgcore/idl/ocgcore
"
;
import
{
fetchEsHintMeta
}
from
"
../../reducers/duel/hintSlice
"
;
import
{
fetchEsHintMeta
}
from
"
../../reducers/duel/hintSlice
"
;
import
{
AppDispatch
}
from
"
@/store
"
;
import
{
AppDispatch
}
from
"
@/store
"
;
...
...
src/service/duel/timeLimit.ts
View file @
15e4a1e4
import
{
ygopro
}
from
"
../..
/api/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@
/api/ocgcore/idl/ocgcore
"
;
import
{
store
}
from
"
@/store
"
;
import
{
store
}
from
"
@/store
"
;
import
{
updateTimeLimit
}
from
"
../../reducers/duel/mod
"
;
import
{
updateTimeLimit
}
from
"
../../reducers/duel/mod
"
;
import
{
sendTimeConfirm
}
from
"
../..
/api/ocgcore/ocgHelper
"
;
import
{
sendTimeConfirm
}
from
"
@
/api/ocgcore/ocgHelper
"
;
export
default
function
handleTimeLimit
(
timeLimit
:
ygopro
.
StocTimeLimit
)
{
export
default
function
handleTimeLimit
(
timeLimit
:
ygopro
.
StocTimeLimit
)
{
const
dispatch
=
store
.
dispatch
;
const
dispatch
=
store
.
dispatch
;
...
...
src/service/duel/unimplemented.ts
View file @
15e4a1e4
import
{
ygopro
}
from
"
../..
/api/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@
/api/ocgcore/idl/ocgcore
"
;
import
{
setUnimplemented
}
from
"
../../reducers/duel/mod
"
;
import
{
setUnimplemented
}
from
"
../../reducers/duel/mod
"
;
import
{
AppDispatch
}
from
"
@/store
"
;
import
{
AppDispatch
}
from
"
@/store
"
;
import
NeosConfig
from
"
../../../neos.config.json
"
;
import
NeosConfig
from
"
../../../neos.config.json
"
;
...
...
src/service/duel/updateCounter.ts
View file @
15e4a1e4
import
{
ygopro
}
from
"
../..
/api/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@
/api/ocgcore/idl/ocgcore
"
;
import
{
updateMonsterCounters
}
from
"
../../reducers/duel/mod
"
;
import
{
updateMonsterCounters
}
from
"
../../reducers/duel/mod
"
;
import
{
AppDispatch
}
from
"
@/store
"
;
import
{
AppDispatch
}
from
"
@/store
"
;
import
MsgUpdateCounter
=
ygopro
.
StocGameMessage
.
MsgUpdateCounter
;
import
MsgUpdateCounter
=
ygopro
.
StocGameMessage
.
MsgUpdateCounter
;
...
...
src/service/duel/updateData.ts
View file @
15e4a1e4
import
{
ygopro
}
from
"
../..
/api/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@
/api/ocgcore/idl/ocgcore
"
;
import
{
updateFieldData
}
from
"
../../reducers/duel/mod
"
;
import
{
updateFieldData
}
from
"
../../reducers/duel/mod
"
;
import
{
AppDispatch
}
from
"
@/store
"
;
import
{
AppDispatch
}
from
"
@/store
"
;
import
MsgUpdateData
=
ygopro
.
StocGameMessage
.
MsgUpdateData
;
import
MsgUpdateData
=
ygopro
.
StocGameMessage
.
MsgUpdateData
;
...
...
src/service/duel/updateHp.ts
View file @
15e4a1e4
import
{
ygopro
}
from
"
../..
/api/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@
/api/ocgcore/idl/ocgcore
"
;
import
{
fetchEsHintMeta
}
from
"
../../reducers/duel/hintSlice
"
;
import
{
fetchEsHintMeta
}
from
"
../../reducers/duel/hintSlice
"
;
import
{
updateHp
}
from
"
../../reducers/duel/mod
"
;
import
{
updateHp
}
from
"
../../reducers/duel/mod
"
;
import
{
AppDispatch
}
from
"
@/store
"
;
import
{
AppDispatch
}
from
"
@/store
"
;
...
...
src/service/duel/util.ts
View file @
15e4a1e4
import
{
ygopro
}
from
"
../..
/api/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@
/api/ocgcore/idl/ocgcore
"
;
export
function
CardZoneToChinese
(
zone
:
ygopro
.
CardZone
):
string
{
export
function
CardZoneToChinese
(
zone
:
ygopro
.
CardZone
):
string
{
switch
(
zone
)
{
switch
(
zone
)
{
...
...
src/service/duel/wait.ts
View file @
15e4a1e4
import
{
ygopro
}
from
"
../..
/api/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@
/api/ocgcore/idl/ocgcore
"
;
import
{
import
{
clearAllIdleInteractivities
,
clearAllIdleInteractivities
,
setWaiting
,
setWaiting
,
...
...
src/service/duel/win.ts
View file @
15e4a1e4
import
{
ygopro
}
from
"
../..
/api/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@
/api/ocgcore/idl/ocgcore
"
;
import
{
setResult
}
from
"
../../reducers/duel/mod
"
;
import
{
setResult
}
from
"
../../reducers/duel/mod
"
;
import
{
AppDispatch
}
from
"
@/store
"
;
import
{
AppDispatch
}
from
"
@/store
"
;
...
...
src/service/mora/deckCount.ts
View file @
15e4a1e4
import
{
ygopro
}
from
"
../..
/api/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@
/api/ocgcore/idl/ocgcore
"
;
import
{
store
}
from
"
@/store
"
;
import
{
store
}
from
"
@/store
"
;
import
{
player0DeckInfo
,
player1DeckInfo
}
from
"
../../reducers/playerSlice
"
;
import
{
player0DeckInfo
,
player1DeckInfo
}
from
"
../../reducers/playerSlice
"
;
...
...
src/service/mora/selectHand.ts
View file @
15e4a1e4
import
{
ygopro
}
from
"
../..
/api/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@
/api/ocgcore/idl/ocgcore
"
;
import
{
store
}
from
"
@/store
"
;
import
{
store
}
from
"
@/store
"
;
import
{
selectHandAble
}
from
"
../../reducers/moraSlice
"
;
import
{
selectHandAble
}
from
"
../../reducers/moraSlice
"
;
...
...
src/service/mora/selectTp.ts
View file @
15e4a1e4
import
{
ygopro
}
from
"
../..
/api/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@
/api/ocgcore/idl/ocgcore
"
;
import
{
store
}
from
"
@/store
"
;
import
{
store
}
from
"
@/store
"
;
import
{
selectTpAble
}
from
"
../../reducers/moraSlice
"
;
import
{
selectTpAble
}
from
"
../../reducers/moraSlice
"
;
...
...
src/service/onSocketMessage.ts
View file @
15e4a1e4
...
@@ -8,8 +8,8 @@ import handleHsPlayerEnter from "./room/hsPlayerEnter";
...
@@ -8,8 +8,8 @@ import handleHsPlayerEnter from "./room/hsPlayerEnter";
import
handleJoinGame
from
"
./room/joinGame
"
;
import
handleJoinGame
from
"
./room/joinGame
"
;
import
handleChat
from
"
./room/chat
"
;
import
handleChat
from
"
./room/chat
"
;
import
handleHsWatchChange
from
"
./room/hsWatchChange
"
;
import
handleHsWatchChange
from
"
./room/hsWatchChange
"
;
import
{
YgoProPacket
}
from
"
..
/api/ocgcore/ocgAdapter/packet
"
;
import
{
YgoProPacket
}
from
"
@
/api/ocgcore/ocgAdapter/packet
"
;
import
{
adaptStoc
}
from
"
..
/api/ocgcore/ocgAdapter/adapter
"
;
import
{
adaptStoc
}
from
"
@
/api/ocgcore/ocgAdapter/adapter
"
;
import
handleSelectHand
from
"
./mora/selectHand
"
;
import
handleSelectHand
from
"
./mora/selectHand
"
;
import
handleSelectTp
from
"
./mora/selectTp
"
;
import
handleSelectTp
from
"
./mora/selectTp
"
;
import
handleDeckCount
from
"
./mora/deckCount
"
;
import
handleDeckCount
from
"
./mora/deckCount
"
;
...
...
src/service/onSocketOpen.ts
View file @
15e4a1e4
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* 长连接建立事件订阅处理逻辑
* 长连接建立事件订阅处理逻辑
*
*
* */
* */
import
{
sendJoinGame
,
sendPlayerInfo
}
from
"
..
/api/ocgcore/ocgHelper
"
;
import
{
sendJoinGame
,
sendPlayerInfo
}
from
"
@
/api/ocgcore/ocgHelper
"
;
import
NeosConfig
from
"
../../neos.config.json
"
;
import
NeosConfig
from
"
../../neos.config.json
"
;
/*
/*
...
...
src/service/room/chat.ts
View file @
15e4a1e4
import
{
ygopro
}
from
"
../..
/api/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@
/api/ocgcore/idl/ocgcore
"
;
import
{
postChat
}
from
"
../../reducers/chatSlice
"
;
import
{
postChat
}
from
"
../../reducers/chatSlice
"
;
import
{
store
}
from
"
@/store
"
;
import
{
store
}
from
"
@/store
"
;
...
...
src/service/room/duelStart.ts
View file @
15e4a1e4
import
{
ygopro
}
from
"
../..
/api/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@
/api/ocgcore/idl/ocgcore
"
;
import
{
duelStart
}
from
"
../../reducers/moraSlice
"
;
import
{
duelStart
}
from
"
../../reducers/moraSlice
"
;
import
{
store
}
from
"
@/store
"
;
import
{
store
}
from
"
@/store
"
;
...
...
src/service/room/hsPlayerChange.ts
View file @
15e4a1e4
import
{
ygopro
}
from
"
../..
/api/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@
/api/ocgcore/idl/ocgcore
"
;
import
{
store
}
from
"
@/store
"
;
import
{
store
}
from
"
@/store
"
;
import
{
import
{
player0Update
,
player0Update
,
...
...
src/service/room/hsPlayerEnter.ts
View file @
15e4a1e4
import
{
ygopro
}
from
"
../..
/api/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@
/api/ocgcore/idl/ocgcore
"
;
import
{
store
}
from
"
@/store
"
;
import
{
store
}
from
"
@/store
"
;
import
{
player0Enter
,
player1Enter
}
from
"
../../reducers/playerSlice
"
;
import
{
player0Enter
,
player1Enter
}
from
"
../../reducers/playerSlice
"
;
...
...
src/service/room/hsWatchChange.ts
View file @
15e4a1e4
import
{
ygopro
}
from
"
../..
/api/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@
/api/ocgcore/idl/ocgcore
"
;
import
{
observerChange
}
from
"
../../reducers/playerSlice
"
;
import
{
observerChange
}
from
"
../../reducers/playerSlice
"
;
import
{
store
}
from
"
@/store
"
;
import
{
store
}
from
"
@/store
"
;
...
...
src/service/room/joinGame.ts
View file @
15e4a1e4
import
{
ygopro
}
from
"
../..
/api/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@
/api/ocgcore/idl/ocgcore
"
;
import
{
store
}
from
"
@/store
"
;
import
{
store
}
from
"
@/store
"
;
import
{
setJoined
}
from
"
../../reducers/joinSlice
"
;
import
{
setJoined
}
from
"
../../reducers/joinSlice
"
;
...
...
src/service/room/typeChange.ts
View file @
15e4a1e4
import
{
ygopro
}
from
"
../..
/api/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@
/api/ocgcore/idl/ocgcore
"
;
import
{
import
{
player0Update
,
player0Update
,
player1Update
,
player1Update
,
...
...
src/ui/Duel/alert.tsx
View file @
15e4a1e4
import
React
from
"
react
"
;
import
React
from
"
react
"
;
import
{
useNavigate
}
from
"
react-router-dom
"
;
import
{
useNavigate
}
from
"
react-router-dom
"
;
import
{
sendSurrender
}
from
"
../..
/api/ocgcore/ocgHelper
"
;
import
{
sendSurrender
}
from
"
@
/api/ocgcore/ocgHelper
"
;
import
{
useAppSelector
}
from
"
@/hook
"
;
import
{
useAppSelector
}
from
"
@/hook
"
;
import
{
selectUnimplemented
}
from
"
../../reducers/duel/mod
"
;
import
{
selectUnimplemented
}
from
"
../../reducers/duel/mod
"
;
import
{
Alert
}
from
"
antd
"
;
import
{
Alert
}
from
"
antd
"
;
...
...
src/ui/Duel/cardListModal.tsx
View file @
15e4a1e4
...
@@ -10,7 +10,7 @@ import {
...
@@ -10,7 +10,7 @@ import {
setCardListModalIsOpen
,
setCardListModalIsOpen
,
}
from
"
../../reducers/duel/mod
"
;
}
from
"
../../reducers/duel/mod
"
;
import
{
Drawer
,
List
,
Button
}
from
"
antd
"
;
import
{
Drawer
,
List
,
Button
}
from
"
antd
"
;
import
{
sendSelectIdleCmdResponse
}
from
"
../..
/api/ocgcore/ocgHelper
"
;
import
{
sendSelectIdleCmdResponse
}
from
"
@
/api/ocgcore/ocgHelper
"
;
import
NeosConfig
from
"
../../../neos.config.json
"
;
import
NeosConfig
from
"
../../../neos.config.json
"
;
const
CARD_WIDTH
=
100
;
const
CARD_WIDTH
=
100
;
...
...
src/ui/Duel/cardModal.tsx
View file @
15e4a1e4
...
@@ -12,7 +12,7 @@ import {
...
@@ -12,7 +12,7 @@ import {
clearAllIdleInteractivities
,
clearAllIdleInteractivities
,
}
from
"
../../reducers/duel/mod
"
;
}
from
"
../../reducers/duel/mod
"
;
import
{
Modal
,
Card
,
Button
,
Row
,
Col
}
from
"
antd
"
;
import
{
Modal
,
Card
,
Button
,
Row
,
Col
}
from
"
antd
"
;
import
{
sendSelectIdleCmdResponse
}
from
"
../..
/api/ocgcore/ocgHelper
"
;
import
{
sendSelectIdleCmdResponse
}
from
"
@
/api/ocgcore/ocgHelper
"
;
import
Icon
,
{
StarOutlined
}
from
"
@ant-design/icons
"
;
import
Icon
,
{
StarOutlined
}
from
"
@ant-design/icons
"
;
import
NeosConfig
from
"
../../../neos.config.json
"
;
import
NeosConfig
from
"
../../../neos.config.json
"
;
import
{
ReactComponent
as
BattleSvg
}
from
"
../../../neos-assets/battle-axe.svg
"
;
import
{
ReactComponent
as
BattleSvg
}
from
"
../../../neos-assets/battle-axe.svg
"
;
...
@@ -23,7 +23,7 @@ import {
...
@@ -23,7 +23,7 @@ import {
Attribute2StringCodeMap
,
Attribute2StringCodeMap
,
Race2StringCodeMap
,
Race2StringCodeMap
,
}
from
"
../../common
"
;
}
from
"
../../common
"
;
import
{
fetchStrings
}
from
"
../..
/api/strings
"
;
import
{
fetchStrings
}
from
"
@
/api/strings
"
;
const
{
Meta
}
=
Card
;
const
{
Meta
}
=
Card
;
const
CARD_WIDTH
=
240
;
const
CARD_WIDTH
=
240
;
...
...
src/ui/Duel/checkCardModal.tsx
View file @
15e4a1e4
...
@@ -18,7 +18,7 @@ import { CheckCard, CheckCardProps } from "@ant-design/pro-components";
...
@@ -18,7 +18,7 @@ import { CheckCard, CheckCardProps } from "@ant-design/pro-components";
import
{
import
{
sendSelectCardResponse
,
sendSelectCardResponse
,
sendSelectChainResponse
,
sendSelectChainResponse
,
}
from
"
../..
/api/ocgcore/ocgHelper
"
;
}
from
"
@
/api/ocgcore/ocgHelper
"
;
import
{
ThunderboltOutlined
}
from
"
@ant-design/icons
"
;
import
{
ThunderboltOutlined
}
from
"
@ant-design/icons
"
;
import
NeosConfig
from
"
../../../neos.config.json
"
;
import
NeosConfig
from
"
../../../neos.config.json
"
;
import
DragModal
from
"
./dragModal
"
;
import
DragModal
from
"
./dragModal
"
;
...
...
src/ui/Duel/checkCardModalV2.tsx
View file @
15e4a1e4
...
@@ -12,7 +12,7 @@ import {
...
@@ -12,7 +12,7 @@ import {
selectCheckCardModalV2SelectAbleOptions
,
selectCheckCardModalV2SelectAbleOptions
,
selectCheckCardModalV2SelectedOptions
,
selectCheckCardModalV2SelectedOptions
,
}
from
"
../../reducers/duel/modal/checkCardModalV2Slice
"
;
}
from
"
../../reducers/duel/modal/checkCardModalV2Slice
"
;
import
{
sendSelectUnselectCardResponse
}
from
"
../..
/api/ocgcore/ocgHelper
"
;
import
{
sendSelectUnselectCardResponse
}
from
"
@
/api/ocgcore/ocgHelper
"
;
import
{
import
{
resetCheckCardModalV2
,
resetCheckCardModalV2
,
setCheckCardModalV2IsOpen
,
setCheckCardModalV2IsOpen
,
...
...
src/ui/Duel/checkCardModalV3.tsx
View file @
15e4a1e4
...
@@ -3,7 +3,7 @@ import { useAppSelector } from "@/hook";
...
@@ -3,7 +3,7 @@ import { useAppSelector } from "@/hook";
import
{
store
}
from
"
@/store
"
;
import
{
store
}
from
"
@/store
"
;
import
{
Button
,
Card
,
Row
,
Col
}
from
"
antd
"
;
import
{
Button
,
Card
,
Row
,
Col
}
from
"
antd
"
;
import
{
CheckCard
}
from
"
@ant-design/pro-components
"
;
import
{
CheckCard
}
from
"
@ant-design/pro-components
"
;
import
{
sendSelectCardResponse
}
from
"
../..
/api/ocgcore/ocgHelper
"
;
import
{
sendSelectCardResponse
}
from
"
@
/api/ocgcore/ocgHelper
"
;
import
{
import
{
resetCheckCardModalV3
,
resetCheckCardModalV3
,
setCheckCardModalV3IsOpen
,
setCheckCardModalV3IsOpen
,
...
...
src/ui/Duel/checkCounterModal.tsx
View file @
15e4a1e4
import
{
Button
,
Row
,
Col
,
Card
,
InputNumber
}
from
"
antd
"
;
import
{
Button
,
Row
,
Col
,
Card
,
InputNumber
}
from
"
antd
"
;
import
React
,
{
useState
}
from
"
react
"
;
import
React
,
{
useState
}
from
"
react
"
;
import
{
sendSelectCounterResponse
}
from
"
../..
/api/ocgcore/ocgHelper
"
;
import
{
sendSelectCounterResponse
}
from
"
@
/api/ocgcore/ocgHelper
"
;
import
{
fetchStrings
}
from
"
../..
/api/strings
"
;
import
{
fetchStrings
}
from
"
@
/api/strings
"
;
import
{
useAppSelector
}
from
"
@/hook
"
;
import
{
useAppSelector
}
from
"
@/hook
"
;
import
{
clearCheckCounter
}
from
"
../../reducers/duel/mod
"
;
import
{
clearCheckCounter
}
from
"
../../reducers/duel/mod
"
;
import
{
selectCheckCounterModal
}
from
"
../../reducers/duel/modal/checkCounterModalSlice
"
;
import
{
selectCheckCounterModal
}
from
"
../../reducers/duel/modal/checkCounterModalSlice
"
;
...
...
src/ui/Duel/fixedSlot.tsx
View file @
15e4a1e4
...
@@ -3,8 +3,8 @@ import { store } from "@/store";
...
@@ -3,8 +3,8 @@ import { store } from "@/store";
import
{
CardState
}
from
"
../../reducers/duel/generic
"
;
import
{
CardState
}
from
"
../../reducers/duel/generic
"
;
import
{
useRef
}
from
"
react
"
;
import
{
useRef
}
from
"
react
"
;
import
{
useClick
}
from
"
./hook
"
;
import
{
useClick
}
from
"
./hook
"
;
import
{
sendSelectPlaceResponse
}
from
"
../..
/api/ocgcore/ocgHelper
"
;
import
{
sendSelectPlaceResponse
}
from
"
@
/api/ocgcore/ocgHelper
"
;
import
{
ygopro
}
from
"
../..
/api/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@
/api/ocgcore/idl/ocgcore
"
;
import
{
import
{
setCardListModalInfo
,
setCardListModalInfo
,
setCardListModalIsOpen
,
setCardListModalIsOpen
,
...
...
src/ui/Duel/hintNotification.tsx
View file @
15e4a1e4
...
@@ -5,7 +5,7 @@ import { selectCurrentPhase } from "../../reducers/duel/phaseSlice";
...
@@ -5,7 +5,7 @@ import { selectCurrentPhase } from "../../reducers/duel/phaseSlice";
import
{
notification
}
from
"
antd
"
;
import
{
notification
}
from
"
antd
"
;
import
{
selectDuelResult
,
selectWaiting
}
from
"
../../reducers/duel/mod
"
;
import
{
selectDuelResult
,
selectWaiting
}
from
"
../../reducers/duel/mod
"
;
import
{
useNavigate
}
from
"
react-router-dom
"
;
import
{
useNavigate
}
from
"
react-router-dom
"
;
import
{
ygopro
}
from
"
../..
/api/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@
/api/ocgcore/idl/ocgcore
"
;
import
MsgWin
=
ygopro
.
StocGameMessage
.
MsgWin
;
import
MsgWin
=
ygopro
.
StocGameMessage
.
MsgWin
;
import
NeosConfig
from
"
../../../neos.config.json
"
;
import
NeosConfig
from
"
../../../neos.config.json
"
;
...
...
src/ui/Duel/optionModal.tsx
View file @
15e4a1e4
...
@@ -7,7 +7,7 @@ import {
...
@@ -7,7 +7,7 @@ import {
selectOptionModalIsOpen
,
selectOptionModalIsOpen
,
selectOptionModalOptions
,
selectOptionModalOptions
,
}
from
"
../../reducers/duel/modal/mod
"
;
}
from
"
../../reducers/duel/modal/mod
"
;
import
{
sendSelectOptionResponse
}
from
"
../..
/api/ocgcore/ocgHelper
"
;
import
{
sendSelectOptionResponse
}
from
"
@
/api/ocgcore/ocgHelper
"
;
import
{
import
{
resetOptionModal
,
resetOptionModal
,
setOptionModalIsOpen
,
setOptionModalIsOpen
,
...
...
src/ui/Duel/phase.tsx
View file @
15e4a1e4
...
@@ -11,7 +11,7 @@ import {
...
@@ -11,7 +11,7 @@ import {
sendSelectBattleCmdResponse
,
sendSelectBattleCmdResponse
,
sendSelectIdleCmdResponse
,
sendSelectIdleCmdResponse
,
sendSurrender
,
sendSurrender
,
}
from
"
../..
/api/ocgcore/ocgHelper
"
;
}
from
"
@
/api/ocgcore/ocgHelper
"
;
import
{
import
{
clearAllIdleInteractivities
,
clearAllIdleInteractivities
,
setEnableBp
,
setEnableBp
,
...
...
src/ui/Duel/positionModal.tsx
View file @
15e4a1e4
...
@@ -2,12 +2,12 @@ import React, { useState } from "react";
...
@@ -2,12 +2,12 @@ import React, { useState } from "react";
import
{
useAppSelector
}
from
"
@/hook
"
;
import
{
useAppSelector
}
from
"
@/hook
"
;
import
{
store
}
from
"
@/store
"
;
import
{
store
}
from
"
@/store
"
;
import
{
Button
}
from
"
antd
"
;
import
{
Button
}
from
"
antd
"
;
import
{
sendSelectPositionResponse
}
from
"
../..
/api/ocgcore/ocgHelper
"
;
import
{
sendSelectPositionResponse
}
from
"
@
/api/ocgcore/ocgHelper
"
;
import
{
import
{
selectPositionModalIsOpen
,
selectPositionModalIsOpen
,
selectPositionModalPositions
,
selectPositionModalPositions
,
}
from
"
../../reducers/duel/modal/mod
"
;
}
from
"
../../reducers/duel/modal/mod
"
;
import
{
ygopro
}
from
"
../..
/api/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@
/api/ocgcore/idl/ocgcore
"
;
import
{
import
{
resetPositionModal
,
resetPositionModal
,
setPositionModalIsOpen
,
setPositionModalIsOpen
,
...
...
src/ui/Duel/sendBox.tsx
View file @
15e4a1e4
import
React
,
{
useState
}
from
"
react
"
;
import
React
,
{
useState
}
from
"
react
"
;
import
{
Input
,
Button
,
Row
,
Col
}
from
"
antd
"
;
import
{
Input
,
Button
,
Row
,
Col
}
from
"
antd
"
;
import
{
SendOutlined
}
from
"
@ant-design/icons
"
;
import
{
SendOutlined
}
from
"
@ant-design/icons
"
;
import
{
sendChat
}
from
"
../..
/api/ocgcore/ocgHelper
"
;
import
{
sendChat
}
from
"
@
/api/ocgcore/ocgHelper
"
;
const
SendBox
=
()
=>
{
const
SendBox
=
()
=>
{
const
[
content
,
setContent
]
=
useState
(
""
);
const
[
content
,
setContent
]
=
useState
(
""
);
...
...
src/ui/Duel/sortCardModal.tsx
View file @
15e4a1e4
...
@@ -18,11 +18,11 @@ import {
...
@@ -18,11 +18,11 @@ import {
import
{
CSS
}
from
"
@dnd-kit/utilities
"
;
import
{
CSS
}
from
"
@dnd-kit/utilities
"
;
import
{
useAppSelector
}
from
"
@/hook
"
;
import
{
useAppSelector
}
from
"
@/hook
"
;
import
{
selectSortCardModal
}
from
"
../../reducers/duel/modal/sortCardModalSlice
"
;
import
{
selectSortCardModal
}
from
"
../../reducers/duel/modal/sortCardModalSlice
"
;
import
{
sendSortCardResponse
}
from
"
../..
/api/ocgcore/ocgHelper
"
;
import
{
sendSortCardResponse
}
from
"
@
/api/ocgcore/ocgHelper
"
;
import
{
store
}
from
"
@/store
"
;
import
{
store
}
from
"
@/store
"
;
import
{
resetSortCardModal
}
from
"
../../reducers/duel/mod
"
;
import
{
resetSortCardModal
}
from
"
../../reducers/duel/mod
"
;
import
{
Modal
,
Button
,
Card
}
from
"
antd
"
;
import
{
Modal
,
Button
,
Card
}
from
"
antd
"
;
import
{
CardMeta
}
from
"
../..
/api/cards
"
;
import
{
CardMeta
}
from
"
@
/api/cards
"
;
import
NeosConfig
from
"
../../../neos.config.json
"
;
import
NeosConfig
from
"
../../../neos.config.json
"
;
const
SortCardModal
=
()
=>
{
const
SortCardModal
=
()
=>
{
...
...
src/ui/Duel/yesNoModal.tsx
View file @
15e4a1e4
...
@@ -2,7 +2,7 @@ import React from "react";
...
@@ -2,7 +2,7 @@ import React from "react";
import
{
useAppSelector
}
from
"
@/hook
"
;
import
{
useAppSelector
}
from
"
@/hook
"
;
import
{
store
}
from
"
@/store
"
;
import
{
store
}
from
"
@/store
"
;
import
{
Button
}
from
"
antd
"
;
import
{
Button
}
from
"
antd
"
;
import
{
sendSelectEffectYnResponse
}
from
"
../..
/api/ocgcore/ocgHelper
"
;
import
{
sendSelectEffectYnResponse
}
from
"
@
/api/ocgcore/ocgHelper
"
;
import
{
import
{
selectYesNoModalIsOpen
,
selectYesNoModalIsOpen
,
selectYesNOModalMsg
,
selectYesNOModalMsg
,
...
...
src/ui/Mora.tsx
View file @
15e4a1e4
import
React
from
"
react
"
;
import
React
from
"
react
"
;
import
{
sendHandResult
,
sendTpResult
}
from
"
..
/api/ocgcore/ocgHelper
"
;
import
{
sendHandResult
,
sendTpResult
}
from
"
@
/api/ocgcore/ocgHelper
"
;
import
{
useAppSelector
}
from
"
@/hook
"
;
import
{
useAppSelector
}
from
"
@/hook
"
;
import
{
useConfig
}
from
"
../config
"
;
import
{
useConfig
}
from
"
../config
"
;
import
{
import
{
...
...
src/ui/WaitRoom.tsx
View file @
15e4a1e4
...
@@ -23,12 +23,12 @@ import { useAppSelector } from "@/hook";
...
@@ -23,12 +23,12 @@ import { useAppSelector } from "@/hook";
import
{
useConfig
}
from
"
../config
"
;
import
{
useConfig
}
from
"
../config
"
;
import
{
selectJoined
}
from
"
../reducers/joinSlice
"
;
import
{
selectJoined
}
from
"
../reducers/joinSlice
"
;
import
{
selectChat
}
from
"
../reducers/chatSlice
"
;
import
{
selectChat
}
from
"
../reducers/chatSlice
"
;
import
{
fetchDeck
,
type
IDeck
,
DeckManager
}
from
"
..
/api/deck
"
;
import
{
fetchDeck
,
type
IDeck
,
DeckManager
}
from
"
@
/api/deck
"
;
import
{
import
{
sendUpdateDeck
,
sendUpdateDeck
,
sendHsReady
,
sendHsReady
,
sendHsStart
,
sendHsStart
,
}
from
"
..
/api/ocgcore/ocgHelper
"
;
}
from
"
@
/api/ocgcore/ocgHelper
"
;
import
{
import
{
UserOutlined
,
UserOutlined
,
CheckCircleFilled
,
CheckCircleFilled
,
...
@@ -46,7 +46,7 @@ import NeosConfig from "../../neos.config.json";
...
@@ -46,7 +46,7 @@ import NeosConfig from "../../neos.config.json";
import
YGOProDeck
from
"
ygopro-deck-encode
"
;
import
YGOProDeck
from
"
ygopro-deck-encode
"
;
// @ts-ignore
// @ts-ignore
import
rustInit
from
"
rust-src
"
;
import
rustInit
from
"
rust-src
"
;
import
{
initStrings
}
from
"
..
/api/strings
"
;
import
{
initStrings
}
from
"
@
/api/strings
"
;
const
READY_STATE
=
"
ready
"
;
const
READY_STATE
=
"
ready
"
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment