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
BBeretta
Neos
Commits
ace36bee
Commit
ace36bee
authored
Apr 09, 2023
by
timel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor: import store
parent
323f8952
Changes
95
Show whitespace changes
Inline
Side-by-side
Showing
95 changed files
with
95 additions
and
95 deletions
+95
-95
src/hook/useApp.ts
src/hook/useApp.ts
+1
-1
src/reducers/chatSlice.ts
src/reducers/chatSlice.ts
+1
-1
src/reducers/duel/cemeretySlice.ts
src/reducers/duel/cemeretySlice.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/handsSlice.ts
src/reducers/duel/handsSlice.ts
+1
-1
src/reducers/duel/hintSlice.ts
src/reducers/duel/hintSlice.ts
+1
-1
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
+1
-1
src/reducers/duel/modal/checkCardModalV2Slice.ts
src/reducers/duel/modal/checkCardModalV2Slice.ts
+1
-1
src/reducers/duel/modal/checkCardModalV3Slice.ts
src/reducers/duel/modal/checkCardModalV3Slice.ts
+1
-1
src/reducers/duel/modal/checkCounterModalSlice.ts
src/reducers/duel/modal/checkCounterModalSlice.ts
+1
-1
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
+1
-1
src/reducers/duel/modal/yesNoModalSlice.ts
src/reducers/duel/modal/yesNoModalSlice.ts
+1
-1
src/reducers/duel/monstersSlice.ts
src/reducers/duel/monstersSlice.ts
+1
-1
src/reducers/duel/phaseSlice.ts
src/reducers/duel/phaseSlice.ts
+1
-1
src/reducers/duel/turnSlice.ts
src/reducers/duel/turnSlice.ts
+1
-1
src/reducers/joinSlice.ts
src/reducers/joinSlice.ts
+1
-1
src/reducers/moraSlice.ts
src/reducers/moraSlice.ts
+1
-1
src/reducers/playerSlice.ts
src/reducers/playerSlice.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
+1
-1
src/service/duel/selectCounter.ts
src/service/duel/selectCounter.ts
+1
-1
src/service/duel/selectEffectYn.ts
src/service/duel/selectEffectYn.ts
+1
-1
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
+1
-1
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/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/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/cardListModal.tsx
src/ui/Duel/cardListModal.tsx
+1
-1
src/ui/Duel/cardModal.tsx
src/ui/Duel/cardModal.tsx
+1
-1
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
+1
-1
src/ui/Duel/fixedSlot.tsx
src/ui/Duel/fixedSlot.tsx
+1
-1
src/ui/Duel/hands.tsx
src/ui/Duel/hands.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
+1
-1
src/ui/Duel/singleSlot.tsx
src/ui/Duel/singleSlot.tsx
+1
-1
src/ui/Duel/sortCardModal.tsx
src/ui/Duel/sortCardModal.tsx
+1
-1
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
+1
-1
No files found.
src/hook/useApp.ts
View file @
ace36bee
import
{
TypedUseSelectorHook
,
useDispatch
,
useSelector
}
from
"
react-redux
"
;
import
type
{
RootState
,
AppDispatch
}
from
"
..
/store
"
;
import
type
{
RootState
,
AppDispatch
}
from
"
@
/store
"
;
// Use throughout your app instead of plain `useDispatch` and `useSelector`
export
const
useAppDispatch
:
()
=>
AppDispatch
=
useDispatch
;
...
...
src/reducers/chatSlice.ts
View file @
ace36bee
...
...
@@ -3,7 +3,7 @@
*
* */
import
{
createSlice
,
PayloadAction
}
from
"
@reduxjs/toolkit
"
;
import
{
RootState
}
from
"
..
/store
"
;
import
{
RootState
}
from
"
@
/store
"
;
export
interface
chatState
{
message
:
string
;
...
...
src/reducers/duel/cemeretySlice.ts
View file @
ace36bee
...
...
@@ -5,7 +5,7 @@ import {
ActionReducerMapBuilder
,
}
from
"
@reduxjs/toolkit
"
;
import
{
DuelState
}
from
"
./mod
"
;
import
{
RootState
}
from
"
../..
/store
"
;
import
{
RootState
}
from
"
@
/store
"
;
import
{
ygopro
}
from
"
../../api/ocgcore/idl/ocgcore
"
;
import
{
createAsyncMetaThunk
,
...
...
src/reducers/duel/deckSlice.ts
View file @
ace36bee
import
{
judgeSelf
}
from
"
./util
"
;
import
{
PayloadAction
,
CaseReducer
}
from
"
@reduxjs/toolkit
"
;
import
{
DuelState
}
from
"
./mod
"
;
import
{
RootState
}
from
"
../..
/store
"
;
import
{
RootState
}
from
"
@
/store
"
;
import
{
ygopro
}
from
"
../../api/ocgcore/idl/ocgcore
"
;
import
{
DuelFieldState
,
CardState
}
from
"
./generic
"
;
...
...
src/reducers/duel/exclusionSlice.ts
View file @
ace36bee
...
...
@@ -5,7 +5,7 @@ import {
ActionReducerMapBuilder
,
}
from
"
@reduxjs/toolkit
"
;
import
{
DuelState
}
from
"
./mod
"
;
import
{
RootState
}
from
"
../..
/store
"
;
import
{
RootState
}
from
"
@
/store
"
;
import
{
ygopro
}
from
"
../../api/ocgcore/idl/ocgcore
"
;
import
{
createAsyncMetaThunk
,
...
...
src/reducers/duel/extraDeckSlice.ts
View file @
ace36bee
import
{
ActionReducerMapBuilder
}
from
"
@reduxjs/toolkit
"
;
import
{
ygopro
}
from
"
../../api/ocgcore/idl/ocgcore
"
;
import
{
RootState
}
from
"
../..
/store
"
;
import
{
RootState
}
from
"
@
/store
"
;
import
{
createAsyncMetaThunk
,
createAsyncRepeatedMetaThunk
,
...
...
src/reducers/duel/handsSlice.ts
View file @
ace36bee
...
...
@@ -4,7 +4,7 @@ import {
PayloadAction
,
}
from
"
@reduxjs/toolkit
"
;
import
{
DuelState
}
from
"
./mod
"
;
import
{
RootState
}
from
"
../..
/store
"
;
import
{
RootState
}
from
"
@
/store
"
;
import
{
judgeSelf
}
from
"
./util
"
;
import
{
Interactivity
,
...
...
src/reducers/duel/hintSlice.ts
View file @
ace36bee
import
{
createAsyncThunk
,
ActionReducerMapBuilder
}
from
"
@reduxjs/toolkit
"
;
import
{
DuelState
}
from
"
./mod
"
;
import
{
RootState
}
from
"
../..
/store
"
;
import
{
RootState
}
from
"
@
/store
"
;
import
{
DESCRIPTION_LIMIT
,
fetchStrings
,
getStrings
}
from
"
../../api/strings
"
;
import
{
findCardByLocation
}
from
"
./util
"
;
import
{
fetchCard
}
from
"
../../api/cards
"
;
...
...
src/reducers/duel/initInfoSlice.ts
View file @
ace36bee
import
{
PayloadAction
,
CaseReducer
}
from
"
@reduxjs/toolkit
"
;
import
{
ygopro
}
from
"
../../api/ocgcore/idl/ocgcore
"
;
import
{
RootState
}
from
"
../..
/store
"
;
import
{
RootState
}
from
"
@
/store
"
;
import
{
DuelState
}
from
"
./mod
"
;
import
{
judgeSelf
}
from
"
./util
"
;
import
MsgUpdateHp
=
ygopro
.
StocGameMessage
.
MsgUpdateHp
;
...
...
src/reducers/duel/magicSlice.ts
View file @
ace36bee
...
...
@@ -6,7 +6,7 @@ import {
}
from
"
@reduxjs/toolkit
"
;
import
{
DuelState
}
from
"
./mod
"
;
import
{
ygopro
}
from
"
../../api/ocgcore/idl/ocgcore
"
;
import
{
RootState
}
from
"
../..
/store
"
;
import
{
RootState
}
from
"
@
/store
"
;
import
{
createAsyncMetaThunk
,
DuelFieldState
,
...
...
src/reducers/duel/mod.ts
View file @
ace36bee
...
...
@@ -22,7 +22,7 @@ import {
setEnableM2Impl
,
setEnableEpImpl
,
}
from
"
./phaseSlice
"
;
import
{
RootState
}
from
"
../..
/store
"
;
import
{
RootState
}
from
"
@
/store
"
;
import
{
HintState
,
hintCase
,
initHintImpl
}
from
"
./hintSlice
"
;
import
{
ModalState
,
...
...
src/reducers/duel/modal/cardListModalSlice.ts
View file @
ace36bee
import
{
PayloadAction
,
CaseReducer
}
from
"
@reduxjs/toolkit
"
;
import
{
DuelState
}
from
"
../mod
"
;
import
{
RootState
}
from
"
../../..
/store
"
;
import
{
RootState
}
from
"
@
/store
"
;
import
{
CardMeta
}
from
"
../../../api/cards
"
;
// 更新卡牌列表弹窗打开状态
...
...
src/reducers/duel/modal/cardModalSlice.ts
View file @
ace36bee
import
{
PayloadAction
,
CaseReducer
}
from
"
@reduxjs/toolkit
"
;
import
{
DuelState
}
from
"
../mod
"
;
import
{
RootState
}
from
"
../../..
/store
"
;
import
{
RootState
}
from
"
@
/store
"
;
import
{
CardMeta
}
from
"
../../../api/cards
"
;
// 更新卡牌弹窗打开状态
...
...
src/reducers/duel/modal/checkCardModalSlice.ts
View file @
ace36bee
...
...
@@ -4,7 +4,7 @@ import {
createAsyncThunk
,
ActionReducerMapBuilder
,
}
from
"
@reduxjs/toolkit
"
;
import
{
RootState
}
from
"
../../..
/store
"
;
import
{
RootState
}
from
"
@
/store
"
;
import
{
DuelState
}
from
"
../mod
"
;
import
{
cmpCardLocation
,
findCardByLocation
,
judgeSelf
}
from
"
../util
"
;
import
{
fetchCard
,
getCardStr
}
from
"
../../../api/cards
"
;
...
...
src/reducers/duel/modal/checkCardModalV2Slice.ts
View file @
ace36bee
...
...
@@ -6,7 +6,7 @@ import {
createAsyncThunk
,
}
from
"
@reduxjs/toolkit
"
;
import
{
fetchCard
}
from
"
../../../api/cards
"
;
import
{
RootState
}
from
"
../../..
/store
"
;
import
{
RootState
}
from
"
@
/store
"
;
import
{
ygopro
}
from
"
../../../api/ocgcore/idl/ocgcore
"
;
import
{
findCardByLocation
}
from
"
../util
"
;
...
...
src/reducers/duel/modal/checkCardModalV3Slice.ts
View file @
ace36bee
...
...
@@ -6,7 +6,7 @@ import {
createAsyncThunk
,
}
from
"
@reduxjs/toolkit
"
;
import
{
fetchCard
}
from
"
../../../api/cards
"
;
import
{
RootState
}
from
"
../../..
/store
"
;
import
{
RootState
}
from
"
@
/store
"
;
import
{
ygopro
}
from
"
../../../api/ocgcore/idl/ocgcore
"
;
import
{
findCardByLocation
}
from
"
../util
"
;
...
...
src/reducers/duel/modal/checkCounterModalSlice.ts
View file @
ace36bee
// 后续对于`MSG_SELECT_XXX`的处理UI都尽量用`Babylon.js`实现而不会通过`Antd`的`Modal`实现,因此这里不追求工程质量,暂时简单实现下。
import
{
PayloadAction
,
CaseReducer
}
from
"
@reduxjs/toolkit
"
;
import
{
RootState
}
from
"
../../..
/store
"
;
import
{
RootState
}
from
"
@
/store
"
;
import
{
DuelState
}
from
"
../mod
"
;
import
{
findCardByLocation
}
from
"
../util
"
;
import
{
ygopro
}
from
"
../../../api/ocgcore/idl/ocgcore
"
;
...
...
src/reducers/duel/modal/optionModalSlice.ts
View file @
ace36bee
...
...
@@ -6,7 +6,7 @@ import {
}
from
"
@reduxjs/toolkit
"
;
import
{
DuelState
}
from
"
../mod
"
;
import
{
fetchCard
,
getCardStr
}
from
"
../../../api/cards
"
;
import
{
RootState
}
from
"
../../..
/store
"
;
import
{
RootState
}
from
"
@
/store
"
;
export
const
setOptionModalIsOpenImpl
:
CaseReducer
<
DuelState
,
...
...
src/reducers/duel/modal/positionModalSlice.ts
View file @
ace36bee
import
{
PayloadAction
,
CaseReducer
}
from
"
@reduxjs/toolkit
"
;
import
{
RootState
}
from
"
../../..
/store
"
;
import
{
RootState
}
from
"
@
/store
"
;
import
{
DuelState
}
from
"
../mod
"
;
import
{
ygopro
}
from
"
../../../api/ocgcore/idl/ocgcore
"
;
...
...
src/reducers/duel/modal/sortCardModalSlice.ts
View file @
ace36bee
...
...
@@ -5,7 +5,7 @@ import {
}
from
"
@reduxjs/toolkit
"
;
import
{
fetchCard
}
from
"
../../../api/cards
"
;
import
{
ygopro
}
from
"
../../../api/ocgcore/idl/ocgcore
"
;
import
{
RootState
}
from
"
../../..
/store
"
;
import
{
RootState
}
from
"
@
/store
"
;
import
{
DuelReducer
}
from
"
../generic
"
;
import
{
DuelState
}
from
"
../mod
"
;
type
SortCard
=
ReturnType
<
...
...
src/reducers/duel/modal/yesNoModalSlice.ts
View file @
ace36bee
...
...
@@ -7,7 +7,7 @@ import {
import
{
CardMeta
,
fetchCard
}
from
"
../../../api/cards
"
;
import
{
ygopro
}
from
"
../../../api/ocgcore/idl/ocgcore
"
;
import
{
fetchStrings
,
getStrings
}
from
"
../../../api/strings
"
;
import
{
RootState
}
from
"
../../..
/store
"
;
import
{
RootState
}
from
"
@
/store
"
;
import
{
DuelState
}
from
"
../mod
"
;
// 更新YesNo弹窗是否打开状态
...
...
src/reducers/duel/monstersSlice.ts
View file @
ace36bee
...
...
@@ -7,7 +7,7 @@ import {
}
from
"
@reduxjs/toolkit
"
;
import
{
DuelState
}
from
"
./mod
"
;
import
{
ygopro
}
from
"
../../api/ocgcore/idl/ocgcore
"
;
import
{
RootState
}
from
"
../..
/store
"
;
import
{
RootState
}
from
"
@
/store
"
;
import
{
DuelFieldState
,
Interactivity
,
...
...
src/reducers/duel/phaseSlice.ts
View file @
ace36bee
import
{
PayloadAction
,
CaseReducer
}
from
"
@reduxjs/toolkit
"
;
import
{
RootState
}
from
"
../..
/store
"
;
import
{
RootState
}
from
"
@
/store
"
;
import
{
DuelState
}
from
"
./mod
"
;
export
interface
PhaseState
{
...
...
src/reducers/duel/turnSlice.ts
View file @
ace36bee
import
{
PayloadAction
,
CaseReducer
}
from
"
@reduxjs/toolkit
"
;
import
{
RootState
}
from
"
../..
/store
"
;
import
{
RootState
}
from
"
@
/store
"
;
import
{
DuelState
}
from
"
./mod
"
;
import
{
judgeSelf
}
from
"
./util
"
;
...
...
src/reducers/joinSlice.ts
View file @
ace36bee
...
...
@@ -3,7 +3,7 @@
*
* */
import
{
createSlice
}
from
"
@reduxjs/toolkit
"
;
import
{
RootState
}
from
"
..
/store
"
;
import
{
RootState
}
from
"
@
/store
"
;
export
interface
JoinState
{
value
:
boolean
;
...
...
src/reducers/moraSlice.ts
View file @
ace36bee
...
...
@@ -3,7 +3,7 @@
*
* */
import
{
createSlice
}
from
"
@reduxjs/toolkit
"
;
import
{
RootState
}
from
"
..
/store
"
;
import
{
RootState
}
from
"
@
/store
"
;
export
interface
moraState
{
duelStart
:
boolean
;
...
...
src/reducers/playerSlice.ts
View file @
ace36bee
...
...
@@ -3,7 +3,7 @@
*
* */
import
{
createSlice
,
PayloadAction
}
from
"
@reduxjs/toolkit
"
;
import
{
RootState
}
from
"
..
/store
"
;
import
{
RootState
}
from
"
@
/store
"
;
export
interface
Player
{
name
?:
string
;
...
...
src/service/duel/attack.ts
View file @
ace36bee
import
{
ygopro
}
from
"
../../api/ocgcore/idl/ocgcore
"
;
import
{
fetchEsHintMeta
}
from
"
../../reducers/duel/hintSlice
"
;
import
{
AppDispatch
}
from
"
../..
/store
"
;
import
{
AppDispatch
}
from
"
@
/store
"
;
export
default
(
attack
:
ygopro
.
StocGameMessage
.
MsgAttack
,
...
...
src/service/duel/attackDisable.ts
View file @
ace36bee
import
{
ygopro
}
from
"
../../api/ocgcore/idl/ocgcore
"
;
import
{
fetchEsHintMeta
}
from
"
../../reducers/duel/hintSlice
"
;
import
{
AppDispatch
}
from
"
../..
/store
"
;
import
{
AppDispatch
}
from
"
@
/store
"
;
export
default
(
_
:
ygopro
.
StocGameMessage
.
MsgAttackDisabled
,
...
...
src/service/duel/chaining.ts
View file @
ace36bee
import
{
ygopro
}
from
"
../../api/ocgcore/idl/ocgcore
"
;
import
{
fetchEsHintMeta
}
from
"
../../reducers/duel/hintSlice
"
;
import
{
AppDispatch
}
from
"
../..
/store
"
;
import
{
AppDispatch
}
from
"
@
/store
"
;
export
default
(
chaining
:
ygopro
.
StocGameMessage
.
MsgChaining
,
...
...
src/service/duel/draw.ts
View file @
ace36bee
import
{
ygopro
}
from
"
../../api/ocgcore/idl/ocgcore
"
;
import
{
AppDispatch
}
from
"
../..
/store
"
;
import
{
AppDispatch
}
from
"
@
/store
"
;
import
{
fetchHandsMeta
}
from
"
../../reducers/duel/handsSlice
"
;
import
{
fetchEsHintMeta
}
from
"
../../reducers/duel/hintSlice
"
;
...
...
src/service/duel/flipSummoned.ts
View file @
ace36bee
import
{
ygopro
}
from
"
../../api/ocgcore/idl/ocgcore
"
;
import
{
fetchEsHintMeta
}
from
"
../../reducers/duel/hintSlice
"
;
import
{
AppDispatch
}
from
"
../..
/store
"
;
import
{
AppDispatch
}
from
"
@
/store
"
;
export
default
(
_
:
ygopro
.
StocGameMessage
.
MsgFlipSummoned
,
...
...
src/service/duel/flipSummoning.ts
View file @
ace36bee
import
{
ygopro
}
from
"
../../api/ocgcore/idl/ocgcore
"
;
import
{
fetchEsHintMeta
}
from
"
../../reducers/duel/hintSlice
"
;
import
{
AppDispatch
}
from
"
../..
/store
"
;
import
{
AppDispatch
}
from
"
@
/store
"
;
export
default
(
flipSummoning
:
ygopro
.
StocGameMessage
.
MsgFlipSummoning
,
...
...
src/service/duel/gameMsg.ts
View file @
ace36bee
import
{
ygopro
}
from
"
../../api/ocgcore/idl/ocgcore
"
;
import
{
store
}
from
"
../..
/store
"
;
import
{
store
}
from
"
@
/store
"
;
import
onMsgStart
from
"
./start
"
;
import
onMsgDraw
from
"
./draw
"
;
import
onMsgNewTurn
from
"
./newTurn
"
;
...
...
src/service/duel/hint.ts
View file @
ace36bee
import
{
ygopro
}
from
"
../../api/ocgcore/idl/ocgcore
"
;
import
{
AppDispatch
}
from
"
../..
/store
"
;
import
{
AppDispatch
}
from
"
@
/store
"
;
import
{
fetchCommonHintMeta
,
fetchEsHintMeta
,
...
...
src/service/duel/move.ts
View file @
ace36bee
import
{
ygopro
}
from
"
../../api/ocgcore/idl/ocgcore
"
;
import
MsgMove
=
ygopro
.
StocGameMessage
.
MsgMove
;
import
{
AppDispatch
}
from
"
../..
/store
"
;
import
{
AppDispatch
}
from
"
@
/store
"
;
import
{
fetchMonsterMeta
,
fetchOverlayMeta
,
...
...
src/service/duel/newPhase.ts
View file @
ace36bee
import
{
ygopro
}
from
"
../../api/ocgcore/idl/ocgcore
"
;
import
{
AppDispatch
}
from
"
../..
/store
"
;
import
{
AppDispatch
}
from
"
@
/store
"
;
import
{
updatePhase
}
from
"
../../reducers/duel/mod
"
;
export
default
(
...
...
src/service/duel/newTurn.ts
View file @
ace36bee
import
{
ygopro
}
from
"
../../api/ocgcore/idl/ocgcore
"
;
import
{
AppDispatch
}
from
"
../..
/store
"
;
import
{
AppDispatch
}
from
"
@
/store
"
;
import
{
updateTurn
}
from
"
../../reducers/duel/mod
"
;
export
default
(
...
...
src/service/duel/posChange.ts
View file @
ace36bee
import
{
ygopro
}
from
"
../../api/ocgcore/idl/ocgcore
"
;
import
{
fetchEsHintMeta
}
from
"
../../reducers/duel/hintSlice
"
;
import
{
setMagicPosition
,
setMonsterPosition
}
from
"
../../reducers/duel/mod
"
;
import
{
AppDispatch
}
from
"
../..
/store
"
;
import
{
AppDispatch
}
from
"
@
/store
"
;
import
MsgPosChange
=
ygopro
.
StocGameMessage
.
MsgPosChange
;
export
default
(
posChange
:
MsgPosChange
,
dispatch
:
AppDispatch
)
=>
{
...
...
src/service/duel/reloadField.ts
View file @
ace36bee
import
{
ygopro
}
from
"
../../api/ocgcore/idl/ocgcore
"
;
import
{
reloadField
}
from
"
../../reducers/duel/mod
"
;
import
{
AppDispatch
}
from
"
../..
/store
"
;
import
{
AppDispatch
}
from
"
@
/store
"
;
import
MsgReloadField
=
ygopro
.
StocGameMessage
.
MsgReloadField
;
export
default
(
field
:
MsgReloadField
,
dispatch
:
AppDispatch
)
=>
{
...
...
src/service/duel/selectBattleCmd.ts
View file @
ace36bee
...
...
@@ -9,7 +9,7 @@ import {
setEnableEp
,
setEnableM2
,
}
from
"
../../reducers/duel/mod
"
;
import
{
AppDispatch
}
from
"
../..
/store
"
;
import
{
AppDispatch
}
from
"
@
/store
"
;
import
MsgSelectBattleCmd
=
ygopro
.
StocGameMessage
.
MsgSelectBattleCmd
;
export
default
(
selectBattleCmd
:
MsgSelectBattleCmd
,
dispatch
:
AppDispatch
)
=>
{
...
...
src/service/duel/selectCard.ts
View file @
ace36bee
import
{
ygopro
}
from
"
../../api/ocgcore/idl/ocgcore
"
;
import
{
AppDispatch
}
from
"
../..
/store
"
;
import
{
AppDispatch
}
from
"
@
/store
"
;
import
{
setCheckCardModalIsOpen
,
setCheckCardModalMinMax
,
...
...
src/service/duel/selectChain.ts
View file @
ace36bee
...
...
@@ -9,7 +9,7 @@ import {
setCheckCardModalOnSubmit
,
}
from
"
../../reducers/duel/mod
"
;
import
{
fetchCheckCardMeta
}
from
"
../../reducers/duel/modal/mod
"
;
import
{
AppDispatch
}
from
"
../..
/store
"
;
import
{
AppDispatch
}
from
"
@
/store
"
;
import
{
CardZoneToChinese
}
from
"
./util
"
;
import
MsgSelectChain
=
ygopro
.
StocGameMessage
.
MsgSelectChain
;
...
...
src/service/duel/selectCounter.ts
View file @
ace36bee
import
{
ygopro
}
from
"
../../api/ocgcore/idl/ocgcore
"
;
import
{
setCheckCounter
}
from
"
../../reducers/duel/mod
"
;
import
{
AppDispatch
}
from
"
../..
/store
"
;
import
{
AppDispatch
}
from
"
@
/store
"
;
import
MsgSelectCounter
=
ygopro
.
StocGameMessage
.
MsgSelectCounter
;
export
default
(
selectCounter
:
MsgSelectCounter
,
dispatch
:
AppDispatch
)
=>
{
...
...
src/service/duel/selectEffectYn.ts
View file @
ace36bee
...
...
@@ -2,7 +2,7 @@ import { CardMeta } from "../../api/cards";
import
{
ygopro
}
from
"
../../api/ocgcore/idl/ocgcore
"
;
import
{
setYesNoModalIsOpen
}
from
"
../../reducers/duel/mod
"
;
import
{
fetchYesNoMeta
}
from
"
../../reducers/duel/modal/mod
"
;
import
{
AppDispatch
}
from
"
../..
/store
"
;
import
{
AppDispatch
}
from
"
@
/store
"
;
import
{
CardZoneToChinese
}
from
"
./util
"
;
import
MsgSelectEffectYn
=
ygopro
.
StocGameMessage
.
MsgSelectEffectYn
;
...
...
src/service/duel/selectIdleCmd.ts
View file @
ace36bee
import
{
ygopro
}
from
"
../../api/ocgcore/idl/ocgcore
"
;
import
{
AppDispatch
}
from
"
../..
/store
"
;
import
{
AppDispatch
}
from
"
@
/store
"
;
import
{
Interactivity
,
InteractType
}
from
"
../../reducers/duel/generic
"
;
import
{
addHandsIdleInteractivity
,
...
...
src/service/duel/selectOption.ts
View file @
ace36bee
import
{
ygopro
}
from
"
../../api/ocgcore/idl/ocgcore
"
;
import
{
setOptionModalIsOpen
}
from
"
../../reducers/duel/mod
"
;
import
{
fetchOptionMeta
}
from
"
../../reducers/duel/modal/mod
"
;
import
{
AppDispatch
}
from
"
../..
/store
"
;
import
{
AppDispatch
}
from
"
@
/store
"
;
import
MsgSelectOption
=
ygopro
.
StocGameMessage
.
MsgSelectOption
;
export
default
(
selectOption
:
MsgSelectOption
,
dispatch
:
AppDispatch
)
=>
{
...
...
src/service/duel/selectPlace.ts
View file @
ace36bee
import
{
ygopro
}
from
"
../../api/ocgcore/idl/ocgcore
"
;
import
{
AppDispatch
}
from
"
../..
/store
"
;
import
{
AppDispatch
}
from
"
@
/store
"
;
import
MsgSelectPlace
=
ygopro
.
StocGameMessage
.
MsgSelectPlace
;
import
{
addMonsterPlaceInteractivities
,
...
...
src/service/duel/selectPosition.ts
View file @
ace36bee
...
...
@@ -3,7 +3,7 @@ import {
setPositionModalIsOpen
,
setPositionModalPositions
,
}
from
"
../../reducers/duel/mod
"
;
import
{
AppDispatch
}
from
"
../..
/store
"
;
import
{
AppDispatch
}
from
"
@
/store
"
;
import
MsgSelectPosition
=
ygopro
.
StocGameMessage
.
MsgSelectPosition
;
export
default
(
selectPosition
:
MsgSelectPosition
,
dispatch
:
AppDispatch
)
=>
{
...
...
src/service/duel/selectSum.ts
View file @
ace36bee
...
...
@@ -6,7 +6,7 @@ import {
setCheckCardModalV3OverFlow
,
}
from
"
../../reducers/duel/mod
"
;
import
{
fetchCheckCardMetasV3
}
from
"
../../reducers/duel/modal/checkCardModalV3Slice
"
;
import
{
AppDispatch
}
from
"
../..
/store
"
;
import
{
AppDispatch
}
from
"
@
/store
"
;
import
MsgSelectSum
=
ygopro
.
StocGameMessage
.
MsgSelectSum
;
export
default
(
selectSum
:
MsgSelectSum
,
dispatch
:
AppDispatch
)
=>
{
...
...
src/service/duel/selectTribute.ts
View file @
ace36bee
...
...
@@ -6,7 +6,7 @@ import {
setCheckCardModalV3OverFlow
,
}
from
"
../../reducers/duel/mod
"
;
import
{
fetchCheckCardMetasV3
}
from
"
../../reducers/duel/modal/checkCardModalV3Slice
"
;
import
{
AppDispatch
}
from
"
../..
/store
"
;
import
{
AppDispatch
}
from
"
@
/store
"
;
import
MsgSelectTribute
=
ygopro
.
StocGameMessage
.
MsgSelectTribute
;
export
default
(
selectTribute
:
MsgSelectTribute
,
dispatch
:
AppDispatch
)
=>
{
...
...
src/service/duel/selectUnselectCard.ts
View file @
ace36bee
...
...
@@ -7,7 +7,7 @@ import {
setCheckCardModalV2ResponseAble
,
}
from
"
../../reducers/duel/mod
"
;
import
{
fetchCheckCardMetasV2
}
from
"
../../reducers/duel/modal/checkCardModalV2Slice
"
;
import
{
AppDispatch
}
from
"
../..
/store
"
;
import
{
AppDispatch
}
from
"
@
/store
"
;
import
MsgSelectUnselectCard
=
ygopro
.
StocGameMessage
.
MsgSelectUnselectCard
;
export
default
(
...
...
src/service/duel/selectYesNo.ts
View file @
ace36bee
import
{
ygopro
}
from
"
../../api/ocgcore/idl/ocgcore
"
;
import
{
setYesNoModalIsOpen
}
from
"
../../reducers/duel/mod
"
;
import
{
fetchYesNoMetaWithEffecDesc
}
from
"
../../reducers/duel/modal/yesNoModalSlice
"
;
import
{
AppDispatch
}
from
"
../..
/store
"
;
import
{
AppDispatch
}
from
"
@
/store
"
;
import
MsgSelectYesNo
=
ygopro
.
StocGameMessage
.
MsgSelectYesNo
;
export
default
(
selectYesNo
:
MsgSelectYesNo
,
dispatch
:
AppDispatch
)
=>
{
...
...
src/service/duel/set.ts
View file @
ace36bee
import
{
ygopro
}
from
"
../../api/ocgcore/idl/ocgcore
"
;
import
{
fetchEsHintMeta
}
from
"
../../reducers/duel/hintSlice
"
;
import
{
AppDispatch
}
from
"
../..
/store
"
;
import
{
AppDispatch
}
from
"
@
/store
"
;
export
default
(
_set
:
ygopro
.
StocGameMessage
.
MsgSet
,
dispatch
:
AppDispatch
)
=>
{
dispatch
(
fetchEsHintMeta
({
originMsg
:
1601
}));
...
...
src/service/duel/shuffleHand.ts
View file @
ace36bee
import
{
ygopro
}
from
"
../../api/ocgcore/idl/ocgcore
"
;
import
{
updateHandsMeta
}
from
"
../../reducers/duel/handsSlice
"
;
import
{
AppDispatch
}
from
"
../..
/store
"
;
import
{
AppDispatch
}
from
"
@
/store
"
;
import
MsgShuffleHand
=
ygopro
.
StocGameMessage
.
MsgShuffleHand
;
export
default
(
shuffleHand
:
MsgShuffleHand
,
dispatch
:
AppDispatch
)
=>
{
...
...
src/service/duel/sortCard.ts
View file @
ace36bee
import
{
ygopro
}
from
"
../../api/ocgcore/idl/ocgcore
"
;
import
{
setSortCardModalIsOpen
}
from
"
../../reducers/duel/mod
"
;
import
{
fetchSortCardMeta
}
from
"
../../reducers/duel/modal/sortCardModalSlice
"
;
import
{
AppDispatch
}
from
"
../..
/store
"
;
import
{
AppDispatch
}
from
"
@
/store
"
;
import
MsgSortCard
=
ygopro
.
StocGameMessage
.
MsgSortCard
;
export
default
(
sortCard
:
MsgSortCard
,
dispatch
:
AppDispatch
)
=>
{
...
...
src/service/duel/spSummoned.ts
View file @
ace36bee
import
{
ygopro
}
from
"
../../api/ocgcore/idl/ocgcore
"
;
import
{
fetchEsHintMeta
}
from
"
../../reducers/duel/hintSlice
"
;
import
{
AppDispatch
}
from
"
../..
/store
"
;
import
{
AppDispatch
}
from
"
@
/store
"
;
export
default
(
_
:
ygopro
.
StocGameMessage
.
MsgSpSummoned
,
...
...
src/service/duel/spSummoning.ts
View file @
ace36bee
import
{
ygopro
}
from
"
../../api/ocgcore/idl/ocgcore
"
;
import
{
fetchEsHintMeta
}
from
"
../../reducers/duel/hintSlice
"
;
import
{
AppDispatch
}
from
"
../..
/store
"
;
import
{
AppDispatch
}
from
"
@
/store
"
;
export
default
(
spSummoning
:
ygopro
.
StocGameMessage
.
MsgSpSummoning
,
...
...
src/service/duel/start.ts
View file @
ace36bee
import
{
ygopro
}
from
"
../../api/ocgcore/idl/ocgcore
"
;
import
{
AppDispatch
}
from
"
../..
/store
"
;
import
{
AppDispatch
}
from
"
@
/store
"
;
import
{
infoInit
,
setSelfType
,
...
...
src/service/duel/summoned.ts
View file @
ace36bee
import
{
ygopro
}
from
"
../../api/ocgcore/idl/ocgcore
"
;
import
{
fetchEsHintMeta
}
from
"
../../reducers/duel/hintSlice
"
;
import
{
AppDispatch
}
from
"
../..
/store
"
;
import
{
AppDispatch
}
from
"
@
/store
"
;
export
default
(
_
:
ygopro
.
StocGameMessage
.
MsgSummoned
,
...
...
src/service/duel/summoning.ts
View file @
ace36bee
import
{
ygopro
}
from
"
../../api/ocgcore/idl/ocgcore
"
;
import
{
fetchEsHintMeta
}
from
"
../../reducers/duel/hintSlice
"
;
import
{
AppDispatch
}
from
"
../..
/store
"
;
import
{
AppDispatch
}
from
"
@
/store
"
;
export
default
(
summoning
:
ygopro
.
StocGameMessage
.
MsgSummoning
,
...
...
src/service/duel/swap.ts
View file @
ace36bee
import
{
ygopro
}
from
"
../../api/ocgcore/idl/ocgcore
"
;
import
{
fetchEsHintMeta
}
from
"
../../reducers/duel/hintSlice
"
;
import
{
AppDispatch
}
from
"
../..
/store
"
;
import
{
AppDispatch
}
from
"
@
/store
"
;
export
default
(
_swap
:
ygopro
.
StocGameMessage
.
MsgSwap
,
...
...
src/service/duel/timeLimit.ts
View file @
ace36bee
import
{
ygopro
}
from
"
../../api/ocgcore/idl/ocgcore
"
;
import
{
store
}
from
"
../..
/store
"
;
import
{
store
}
from
"
@
/store
"
;
import
{
updateTimeLimit
}
from
"
../../reducers/duel/mod
"
;
import
{
sendTimeConfirm
}
from
"
../../api/ocgcore/ocgHelper
"
;
...
...
src/service/duel/unimplemented.ts
View file @
ace36bee
import
{
ygopro
}
from
"
../../api/ocgcore/idl/ocgcore
"
;
import
{
setUnimplemented
}
from
"
../../reducers/duel/mod
"
;
import
{
AppDispatch
}
from
"
../..
/store
"
;
import
{
AppDispatch
}
from
"
@
/store
"
;
import
NeosConfig
from
"
../../../neos.config.json
"
;
export
default
(
...
...
src/service/duel/updateCounter.ts
View file @
ace36bee
import
{
ygopro
}
from
"
../../api/ocgcore/idl/ocgcore
"
;
import
{
updateMonsterCounters
}
from
"
../../reducers/duel/mod
"
;
import
{
AppDispatch
}
from
"
../..
/store
"
;
import
{
AppDispatch
}
from
"
@
/store
"
;
import
MsgUpdateCounter
=
ygopro
.
StocGameMessage
.
MsgUpdateCounter
;
export
default
(
updateCounter
:
MsgUpdateCounter
,
dispatch
:
AppDispatch
)
=>
{
...
...
src/service/duel/updateData.ts
View file @
ace36bee
import
{
ygopro
}
from
"
../../api/ocgcore/idl/ocgcore
"
;
import
{
updateFieldData
}
from
"
../../reducers/duel/mod
"
;
import
{
AppDispatch
}
from
"
../..
/store
"
;
import
{
AppDispatch
}
from
"
@
/store
"
;
import
MsgUpdateData
=
ygopro
.
StocGameMessage
.
MsgUpdateData
;
export
default
(
updateData
:
MsgUpdateData
,
dispatch
:
AppDispatch
)
=>
{
...
...
src/service/duel/updateHp.ts
View file @
ace36bee
import
{
ygopro
}
from
"
../../api/ocgcore/idl/ocgcore
"
;
import
{
fetchEsHintMeta
}
from
"
../../reducers/duel/hintSlice
"
;
import
{
updateHp
}
from
"
../../reducers/duel/mod
"
;
import
{
AppDispatch
}
from
"
../..
/store
"
;
import
{
AppDispatch
}
from
"
@
/store
"
;
import
MsgUpdateHp
=
ygopro
.
StocGameMessage
.
MsgUpdateHp
;
export
default
(
msgUpdateHp
:
MsgUpdateHp
,
dispatch
:
AppDispatch
)
=>
{
...
...
src/service/duel/wait.ts
View file @
ace36bee
...
...
@@ -3,7 +3,7 @@ import {
clearAllIdleInteractivities
,
setWaiting
,
}
from
"
../../reducers/duel/mod
"
;
import
{
AppDispatch
}
from
"
../..
/store
"
;
import
{
AppDispatch
}
from
"
@
/store
"
;
export
default
(
_wait
:
ygopro
.
StocGameMessage
.
MsgWait
,
...
...
src/service/duel/win.ts
View file @
ace36bee
import
{
ygopro
}
from
"
../../api/ocgcore/idl/ocgcore
"
;
import
{
setResult
}
from
"
../../reducers/duel/mod
"
;
import
{
AppDispatch
}
from
"
../..
/store
"
;
import
{
AppDispatch
}
from
"
@
/store
"
;
export
default
(
win
:
ygopro
.
StocGameMessage
.
MsgWin
,
dispatch
:
AppDispatch
)
=>
{
dispatch
(
setResult
(
win
.
type_
));
...
...
src/service/mora/deckCount.ts
View file @
ace36bee
import
{
ygopro
}
from
"
../../api/ocgcore/idl/ocgcore
"
;
import
{
store
}
from
"
../..
/store
"
;
import
{
store
}
from
"
@
/store
"
;
import
{
player0DeckInfo
,
player1DeckInfo
}
from
"
../../reducers/playerSlice
"
;
// FIXME: player0 不一定是当前玩家
...
...
src/service/mora/selectHand.ts
View file @
ace36bee
import
{
ygopro
}
from
"
../../api/ocgcore/idl/ocgcore
"
;
import
{
store
}
from
"
../..
/store
"
;
import
{
store
}
from
"
@
/store
"
;
import
{
selectHandAble
}
from
"
../../reducers/moraSlice
"
;
export
default
function
handleSelectHand
(
_
:
ygopro
.
YgoStocMsg
)
{
...
...
src/service/mora/selectTp.ts
View file @
ace36bee
import
{
ygopro
}
from
"
../../api/ocgcore/idl/ocgcore
"
;
import
{
store
}
from
"
../..
/store
"
;
import
{
store
}
from
"
@
/store
"
;
import
{
selectTpAble
}
from
"
../../reducers/moraSlice
"
;
export
default
function
handleSelectTp
(
_
:
ygopro
.
YgoStocMsg
)
{
...
...
src/service/room/chat.ts
View file @
ace36bee
import
{
ygopro
}
from
"
../../api/ocgcore/idl/ocgcore
"
;
import
{
postChat
}
from
"
../../reducers/chatSlice
"
;
import
{
store
}
from
"
../..
/store
"
;
import
{
store
}
from
"
@
/store
"
;
export
default
function
handleChat
(
pb
:
ygopro
.
YgoStocMsg
)
{
const
dispatch
=
store
.
dispatch
;
...
...
src/service/room/duelStart.ts
View file @
ace36bee
import
{
ygopro
}
from
"
../../api/ocgcore/idl/ocgcore
"
;
import
{
duelStart
}
from
"
../../reducers/moraSlice
"
;
import
{
store
}
from
"
../..
/store
"
;
import
{
store
}
from
"
@
/store
"
;
export
default
function
handleDuelStart
(
_pb
:
ygopro
.
YgoStocMsg
)
{
const
dispatch
=
store
.
dispatch
;
...
...
src/service/room/hsPlayerChange.ts
View file @
ace36bee
import
{
ygopro
}
from
"
../../api/ocgcore/idl/ocgcore
"
;
import
{
store
}
from
"
../..
/store
"
;
import
{
store
}
from
"
@
/store
"
;
import
{
player0Update
,
player1Update
,
...
...
src/service/room/hsPlayerEnter.ts
View file @
ace36bee
import
{
ygopro
}
from
"
../../api/ocgcore/idl/ocgcore
"
;
import
{
store
}
from
"
../..
/store
"
;
import
{
store
}
from
"
@
/store
"
;
import
{
player0Enter
,
player1Enter
}
from
"
../../reducers/playerSlice
"
;
export
default
function
handleHsPlayerEnter
(
pb
:
ygopro
.
YgoStocMsg
)
{
...
...
src/service/room/hsWatchChange.ts
View file @
ace36bee
import
{
ygopro
}
from
"
../../api/ocgcore/idl/ocgcore
"
;
import
{
observerChange
}
from
"
../../reducers/playerSlice
"
;
import
{
store
}
from
"
../..
/store
"
;
import
{
store
}
from
"
@
/store
"
;
export
default
function
handleHsWatchChange
(
pb
:
ygopro
.
YgoStocMsg
)
{
const
dispatch
=
store
.
dispatch
;
...
...
src/service/room/joinGame.ts
View file @
ace36bee
import
{
ygopro
}
from
"
../../api/ocgcore/idl/ocgcore
"
;
import
{
store
}
from
"
../..
/store
"
;
import
{
store
}
from
"
@
/store
"
;
import
{
setJoined
}
from
"
../../reducers/joinSlice
"
;
export
default
function
handleJoinGame
(
pb
:
ygopro
.
YgoStocMsg
)
{
...
...
src/service/room/typeChange.ts
View file @
ace36bee
...
...
@@ -5,7 +5,7 @@ import {
hostChange
,
updateIsHost
,
}
from
"
../../reducers/playerSlice
"
;
import
{
store
}
from
"
../..
/store
"
;
import
{
store
}
from
"
@
/store
"
;
const
NO_READY_STATE
=
"
not ready
"
;
...
...
src/ui/Duel/cardListModal.tsx
View file @
ace36bee
import
React
from
"
react
"
;
import
{
useAppSelector
}
from
"
../../hook
"
;
import
{
store
}
from
"
../..
/store
"
;
import
{
store
}
from
"
@
/store
"
;
import
{
selectCardListModalIsOpen
,
selectCardListModalInfo
,
...
...
src/ui/Duel/cardModal.tsx
View file @
ace36bee
import
React
from
"
react
"
;
import
{
useAppSelector
}
from
"
../../hook
"
;
import
{
store
}
from
"
../..
/store
"
;
import
{
store
}
from
"
@
/store
"
;
import
{
selectCardModalIsOpen
,
selectCardModalInteractivies
,
...
...
src/ui/Duel/checkCardModal.tsx
View file @
ace36bee
import
React
,
{
useState
}
from
"
react
"
;
import
{
useAppSelector
}
from
"
../../hook
"
;
import
{
store
}
from
"
../..
/store
"
;
import
{
store
}
from
"
@
/store
"
;
import
{
selectCheckCardModalCacnelResponse
,
selectCheckCardModalCancelAble
,
...
...
src/ui/Duel/checkCardModalV2.tsx
View file @
ace36bee
import
React
from
"
react
"
;
import
{
useAppSelector
}
from
"
../../hook
"
;
import
{
store
}
from
"
../..
/store
"
;
import
{
store
}
from
"
@
/store
"
;
import
{
Button
,
Card
,
Row
,
Col
}
from
"
antd
"
;
import
{
CheckCard
}
from
"
@ant-design/pro-components
"
;
import
{
...
...
src/ui/Duel/checkCardModalV3.tsx
View file @
ace36bee
import
React
,
{
useState
}
from
"
react
"
;
import
{
useAppSelector
}
from
"
../../hook
"
;
import
{
store
}
from
"
../..
/store
"
;
import
{
store
}
from
"
@
/store
"
;
import
{
Button
,
Card
,
Row
,
Col
}
from
"
antd
"
;
import
{
CheckCard
}
from
"
@ant-design/pro-components
"
;
import
{
sendSelectCardResponse
}
from
"
../../api/ocgcore/ocgHelper
"
;
...
...
src/ui/Duel/checkCounterModal.tsx
View file @
ace36bee
...
...
@@ -5,7 +5,7 @@ import { fetchStrings } from "../../api/strings";
import
{
useAppSelector
}
from
"
../../hook
"
;
import
{
clearCheckCounter
}
from
"
../../reducers/duel/mod
"
;
import
{
selectCheckCounterModal
}
from
"
../../reducers/duel/modal/checkCounterModalSlice
"
;
import
{
store
}
from
"
../..
/store
"
;
import
{
store
}
from
"
@
/store
"
;
import
DragModal
from
"
./dragModal
"
;
import
NeosConfig
from
"
../../../neos.config.json
"
;
...
...
src/ui/Duel/fixedSlot.tsx
View file @
ace36bee
import
*
as
BABYLON
from
"
@babylonjs/core
"
;
import
{
store
}
from
"
../..
/store
"
;
import
{
store
}
from
"
@
/store
"
;
import
{
CardState
}
from
"
../../reducers/duel/generic
"
;
import
{
useRef
}
from
"
react
"
;
import
{
useClick
}
from
"
./hook
"
;
...
...
src/ui/Duel/hands.tsx
View file @
ace36bee
...
...
@@ -7,7 +7,7 @@ import {
setCardModalMeta
,
setCardModalInteractivies
,
}
from
"
../../reducers/duel/mod
"
;
import
{
store
}
from
"
../..
/store
"
;
import
{
store
}
from
"
@
/store
"
;
import
{
useHover
}
from
"
react-babylonjs
"
;
import
{
useClick
}
from
"
./hook
"
;
import
{
useState
,
useRef
,
useEffect
}
from
"
react
"
;
...
...
src/ui/Duel/optionModal.tsx
View file @
ace36bee
import
React
,
{
useState
}
from
"
react
"
;
import
{
useAppSelector
}
from
"
../../hook
"
;
import
{
store
}
from
"
../..
/store
"
;
import
{
store
}
from
"
@
/store
"
;
import
{
Button
}
from
"
antd
"
;
import
{
CheckCard
}
from
"
@ant-design/pro-components
"
;
import
{
...
...
src/ui/Duel/phase.tsx
View file @
ace36bee
import
React
,
{
useState
}
from
"
react
"
;
import
{
store
}
from
"
../..
/store
"
;
import
{
store
}
from
"
@
/store
"
;
import
{
useAppSelector
}
from
"
../../hook
"
;
import
{
selectCurrentPhase
,
...
...
src/ui/Duel/positionModal.tsx
View file @
ace36bee
import
React
,
{
useState
}
from
"
react
"
;
import
{
useAppSelector
}
from
"
../../hook
"
;
import
{
store
}
from
"
../..
/store
"
;
import
{
store
}
from
"
@
/store
"
;
import
{
Button
}
from
"
antd
"
;
import
{
sendSelectPositionResponse
}
from
"
../../api/ocgcore/ocgHelper
"
;
import
{
...
...
src/ui/Duel/singleSlot.tsx
View file @
ace36bee
import
*
as
BABYLON
from
"
@babylonjs/core
"
;
import
{
CardState
}
from
"
../../reducers/duel/generic
"
;
import
{
store
}
from
"
../..
/store
"
;
import
{
store
}
from
"
@
/store
"
;
import
{
useClick
}
from
"
./hook
"
;
import
{
useRef
}
from
"
react
"
;
import
{
...
...
src/ui/Duel/sortCardModal.tsx
View file @
ace36bee
...
...
@@ -19,7 +19,7 @@ import { CSS } from "@dnd-kit/utilities";
import
{
useAppSelector
}
from
"
../../hook
"
;
import
{
selectSortCardModal
}
from
"
../../reducers/duel/modal/sortCardModalSlice
"
;
import
{
sendSortCardResponse
}
from
"
../../api/ocgcore/ocgHelper
"
;
import
{
store
}
from
"
../..
/store
"
;
import
{
store
}
from
"
@
/store
"
;
import
{
resetSortCardModal
}
from
"
../../reducers/duel/mod
"
;
import
{
Modal
,
Button
,
Card
}
from
"
antd
"
;
import
{
CardMeta
}
from
"
../../api/cards
"
;
...
...
src/ui/Duel/yesNoModal.tsx
View file @
ace36bee
import
React
from
"
react
"
;
import
{
useAppSelector
}
from
"
../../hook
"
;
import
{
store
}
from
"
../..
/store
"
;
import
{
store
}
from
"
@
/store
"
;
import
{
Button
}
from
"
antd
"
;
import
{
sendSelectEffectYnResponse
}
from
"
../../api/ocgcore/ocgHelper
"
;
import
{
...
...
src/ui/Mora.tsx
View file @
ace36bee
...
...
@@ -9,7 +9,7 @@ import {
unSelectTpAble
,
}
from
"
../reducers/moraSlice
"
;
import
{
selectDuelHsStart
}
from
"
../reducers/duel/mod
"
;
import
{
store
}
from
"
..
/store
"
;
import
{
store
}
from
"
@
/store
"
;
import
{
useEffect
}
from
"
react
"
;
import
{
useNavigate
,
useParams
}
from
"
react-router-dom
"
;
import
{
Button
,
Modal
}
from
"
antd
"
;
...
...
src/ui/WaitRoom.tsx
View file @
ace36bee
...
...
@@ -13,7 +13,7 @@ import { useNavigate } from "react-router-dom";
import
React
,
{
useState
,
useEffect
}
from
"
react
"
;
import
socketMiddleWare
,
{
socketCmd
}
from
"
../middleware/socket
"
;
import
sqliteMiddleWare
,
{
sqliteCmd
}
from
"
../middleware/sqlite
"
;
import
{
store
}
from
"
..
/store
"
;
import
{
store
}
from
"
@
/store
"
;
import
{
selectIsHost
,
selectPlayer0
,
...
...
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