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
6f35a67e
Commit
6f35a67e
authored
Apr 21, 2023
by
timel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
style: import ocgcore
parent
fef43d79
Changes
86
Hide whitespace changes
Inline
Side-by-side
Showing
86 changed files
with
134 additions
and
91 deletions
+134
-91
src/api/index.ts
src/api/index.ts
+5
-0
src/reducers/duel/banishedZoneSlice.ts
src/reducers/duel/banishedZoneSlice.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/extraDeckSlice.ts
src/reducers/duel/extraDeckSlice.ts
+1
-1
src/reducers/duel/generic.ts
src/reducers/duel/generic.ts
+1
-1
src/reducers/duel/graveyardSlice.ts
src/reducers/duel/graveyardSlice.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/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/mod.ts
src/reducers/duel/modal/mod.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/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
+3
-3
src/service/duel/flipSummoning.ts
src/service/duel/flipSummoning.ts
+3
-3
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
+18
-2
src/service/duel/selectEffectYn.ts
src/service/duel/selectEffectYn.ts
+17
-4
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/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/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/Message/HintNotification.tsx
src/ui/Duel/Message/HintNotification.tsx
+1
-1
src/ui/Duel/Message/PositionModal.tsx
src/ui/Duel/Message/PositionModal.tsx
+1
-1
src/ui/Duel/PlayMat/FixedSlot.tsx
src/ui/Duel/PlayMat/FixedSlot.tsx
+1
-1
src/valtioStores/matStore/methods/fetchCheckCardMeta.ts
src/valtioStores/matStore/methods/fetchCheckCardMeta.ts
+1
-1
src/valtioStores/matStore/methods/fetchHint.ts
src/valtioStores/matStore/methods/fetchHint.ts
+1
-1
src/valtioStores/matStore/methods/getCardByLocation.ts
src/valtioStores/matStore/methods/getCardByLocation.ts
+8
-0
src/valtioStores/matStore/methods/index.ts
src/valtioStores/matStore/methods/index.ts
+1
-0
src/valtioStores/matStore/store.ts
src/valtioStores/matStore/store.ts
+1
-1
src/valtioStores/matStore/types.ts
src/valtioStores/matStore/types.ts
+1
-1
src/valtioStores/messageStore/index.ts
src/valtioStores/messageStore/index.ts
+1
-1
tsconfig.json
tsconfig.json
+1
-1
No files found.
src/api/index.ts
0 → 100644
View file @
6f35a67e
export
*
from
"
./cards
"
;
export
*
from
"
./strings
"
;
export
*
from
"
./deck
"
;
export
*
from
"
./ocgcore/ocgHelper
"
;
export
*
from
"
./ocgcore/idl/ocgcore
"
;
src/reducers/duel/banishedZoneSlice.ts
View file @
6f35a67e
...
@@ -4,7 +4,7 @@ import {
...
@@ -4,7 +4,7 @@ import {
PayloadAction
,
PayloadAction
,
}
from
"
@reduxjs/toolkit
"
;
}
from
"
@reduxjs/toolkit
"
;
import
{
ygopro
}
from
"
@/api
/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@/api
"
;
import
{
RootState
}
from
"
@/store
"
;
import
{
RootState
}
from
"
@/store
"
;
import
{
import
{
...
...
src/reducers/duel/commonSlice.ts
View file @
6f35a67e
import
{
ygopro
}
from
"
@/api
/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@/api
"
;
import
{
import
{
clearIdleInteractivities
,
clearIdleInteractivities
,
...
...
src/reducers/duel/deckSlice.ts
View file @
6f35a67e
import
{
CaseReducer
,
PayloadAction
}
from
"
@reduxjs/toolkit
"
;
import
{
CaseReducer
,
PayloadAction
}
from
"
@reduxjs/toolkit
"
;
import
{
ygopro
}
from
"
@/api
/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@/api
"
;
import
{
RootState
}
from
"
@/store
"
;
import
{
RootState
}
from
"
@/store
"
;
import
{
CardState
,
DuelFieldState
}
from
"
./generic
"
;
import
{
CardState
,
DuelFieldState
}
from
"
./generic
"
;
...
...
src/reducers/duel/extraDeckSlice.ts
View file @
6f35a67e
import
{
ActionReducerMapBuilder
}
from
"
@reduxjs/toolkit
"
;
import
{
ActionReducerMapBuilder
}
from
"
@reduxjs/toolkit
"
;
import
{
ygopro
}
from
"
@/api
/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@/api
"
;
import
{
RootState
}
from
"
@/store
"
;
import
{
RootState
}
from
"
@/store
"
;
import
{
import
{
...
...
src/reducers/duel/generic.ts
View file @
6f35a67e
...
@@ -6,7 +6,7 @@ import {
...
@@ -6,7 +6,7 @@ import {
}
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
"
;
import
{
DuelState
}
from
"
./mod
"
;
import
{
DuelState
}
from
"
./mod
"
;
import
ReloadFieldAction
=
ygopro
.
StocGameMessage
.
MsgReloadField
.
ZoneAction
;
import
ReloadFieldAction
=
ygopro
.
StocGameMessage
.
MsgReloadField
.
ZoneAction
;
...
...
src/reducers/duel/graveyardSlice.ts
View file @
6f35a67e
...
@@ -4,7 +4,7 @@ import {
...
@@ -4,7 +4,7 @@ import {
PayloadAction
,
PayloadAction
,
}
from
"
@reduxjs/toolkit
"
;
}
from
"
@reduxjs/toolkit
"
;
import
{
ygopro
}
from
"
@/api
/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@/api
"
;
import
{
RootState
}
from
"
@/store
"
;
import
{
RootState
}
from
"
@/store
"
;
import
{
import
{
...
...
src/reducers/duel/handsSlice.ts
View file @
6f35a67e
...
@@ -4,7 +4,7 @@ import {
...
@@ -4,7 +4,7 @@ import {
PayloadAction
,
PayloadAction
,
}
from
"
@reduxjs/toolkit
"
;
}
from
"
@reduxjs/toolkit
"
;
import
{
ygopro
}
from
"
@/api
/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@/api
"
;
import
{
RootState
}
from
"
@/store
"
;
import
{
RootState
}
from
"
@/store
"
;
import
{
import
{
...
...
src/reducers/duel/hintSlice.ts
View file @
6f35a67e
import
{
ActionReducerMapBuilder
,
createAsyncThunk
}
from
"
@reduxjs/toolkit
"
;
import
{
ActionReducerMapBuilder
,
createAsyncThunk
}
from
"
@reduxjs/toolkit
"
;
import
{
fetchCard
}
from
"
@/api/cards
"
;
import
{
fetchCard
}
from
"
@/api/cards
"
;
import
{
ygopro
}
from
"
@/api
/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@/api
"
;
import
{
DESCRIPTION_LIMIT
,
fetchStrings
,
getStrings
}
from
"
@/api/strings
"
;
import
{
DESCRIPTION_LIMIT
,
fetchStrings
,
getStrings
}
from
"
@/api/strings
"
;
import
{
RootState
}
from
"
@/store
"
;
import
{
RootState
}
from
"
@/store
"
;
...
...
src/reducers/duel/initInfoSlice.ts
View file @
6f35a67e
import
{
CaseReducer
,
PayloadAction
}
from
"
@reduxjs/toolkit
"
;
import
{
CaseReducer
,
PayloadAction
}
from
"
@reduxjs/toolkit
"
;
import
{
ygopro
}
from
"
@/api
/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@/api
"
;
import
{
RootState
}
from
"
@/store
"
;
import
{
RootState
}
from
"
@/store
"
;
import
{
DuelState
}
from
"
./mod
"
;
import
{
DuelState
}
from
"
./mod
"
;
...
...
src/reducers/duel/magicSlice.ts
View file @
6f35a67e
...
@@ -4,7 +4,7 @@ import {
...
@@ -4,7 +4,7 @@ import {
PayloadAction
,
PayloadAction
,
}
from
"
@reduxjs/toolkit
"
;
}
from
"
@reduxjs/toolkit
"
;
import
{
ygopro
}
from
"
@/api
/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@/api
"
;
import
{
RootState
}
from
"
@/store
"
;
import
{
RootState
}
from
"
@/store
"
;
import
{
import
{
...
...
src/reducers/duel/mod.ts
View file @
6f35a67e
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
import
{
createSlice
,
PayloadAction
}
from
"
@reduxjs/toolkit
"
;
import
{
createSlice
,
PayloadAction
}
from
"
@reduxjs/toolkit
"
;
import
{
ygopro
}
from
"
@/api
/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@/api
"
;
import
{
RootState
}
from
"
@/store
"
;
import
{
RootState
}
from
"
@/store
"
;
import
{
import
{
...
...
src/reducers/duel/modal/checkCardModalSlice.ts
View file @
6f35a67e
...
@@ -6,7 +6,7 @@ import {
...
@@ -6,7 +6,7 @@ import {
}
from
"
@reduxjs/toolkit
"
;
}
from
"
@reduxjs/toolkit
"
;
import
{
fetchCard
,
getCardStr
}
from
"
@/api/cards
"
;
import
{
fetchCard
,
getCardStr
}
from
"
@/api/cards
"
;
import
{
ygopro
}
from
"
@/api
/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@/api
"
;
import
{
RootState
}
from
"
@/store
"
;
import
{
RootState
}
from
"
@/store
"
;
import
{
DuelState
}
from
"
../mod
"
;
import
{
DuelState
}
from
"
../mod
"
;
...
...
src/reducers/duel/modal/checkCardModalV2Slice.ts
View file @
6f35a67e
...
@@ -5,7 +5,7 @@ import {
...
@@ -5,7 +5,7 @@ import {
}
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
"
;
import
{
RootState
}
from
"
@/store
"
;
import
{
RootState
}
from
"
@/store
"
;
import
{
DuelReducer
}
from
"
../generic
"
;
import
{
DuelReducer
}
from
"
../generic
"
;
...
...
src/reducers/duel/modal/checkCardModalV3Slice.ts
View file @
6f35a67e
...
@@ -5,7 +5,7 @@ import {
...
@@ -5,7 +5,7 @@ import {
}
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
"
;
import
{
RootState
}
from
"
@/store
"
;
import
{
RootState
}
from
"
@/store
"
;
import
{
DuelReducer
}
from
"
../generic
"
;
import
{
DuelReducer
}
from
"
../generic
"
;
...
...
src/reducers/duel/modal/checkCounterModalSlice.ts
View file @
6f35a67e
// 后续对于`MSG_SELECT_XXX`的处理UI都尽量用`Babylon.js`实现而不会通过`Antd`的`Modal`实现,因此这里不追求工程质量,暂时简单实现下。
// 后续对于`MSG_SELECT_XXX`的处理UI都尽量用`Babylon.js`实现而不会通过`Antd`的`Modal`实现,因此这里不追求工程质量,暂时简单实现下。
import
{
CaseReducer
,
PayloadAction
}
from
"
@reduxjs/toolkit
"
;
import
{
CaseReducer
,
PayloadAction
}
from
"
@reduxjs/toolkit
"
;
import
{
ygopro
}
from
"
@/api
/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@/api
"
;
import
{
RootState
}
from
"
@/store
"
;
import
{
RootState
}
from
"
@/store
"
;
import
{
DuelState
}
from
"
../mod
"
;
import
{
DuelState
}
from
"
../mod
"
;
...
...
src/reducers/duel/modal/mod.ts
View file @
6f35a67e
import
{
CardMeta
}
from
"
@/api/cards
"
;
import
{
CardMeta
}
from
"
@/api/cards
"
;
import
{
ygopro
}
from
"
@/api
/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@/api
"
;
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/positionModalSlice.ts
View file @
6f35a67e
import
{
CaseReducer
,
PayloadAction
}
from
"
@reduxjs/toolkit
"
;
import
{
CaseReducer
,
PayloadAction
}
from
"
@reduxjs/toolkit
"
;
import
{
ygopro
}
from
"
@/api
/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@/api
"
;
import
{
RootState
}
from
"
@/store
"
;
import
{
RootState
}
from
"
@/store
"
;
import
{
DuelState
}
from
"
../mod
"
;
import
{
DuelState
}
from
"
../mod
"
;
...
...
src/reducers/duel/modal/sortCardModalSlice.ts
View file @
6f35a67e
...
@@ -5,7 +5,7 @@ import {
...
@@ -5,7 +5,7 @@ import {
}
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
"
;
import
{
RootState
}
from
"
@/store
"
;
import
{
RootState
}
from
"
@/store
"
;
import
{
DuelReducer
}
from
"
../generic
"
;
import
{
DuelReducer
}
from
"
../generic
"
;
...
...
src/reducers/duel/modal/yesNoModalSlice.ts
View file @
6f35a67e
...
@@ -6,7 +6,7 @@ import {
...
@@ -6,7 +6,7 @@ import {
}
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
"
;
import
{
fetchStrings
,
getStrings
}
from
"
@/api/strings
"
;
import
{
fetchStrings
,
getStrings
}
from
"
@/api/strings
"
;
import
{
RootState
}
from
"
@/store
"
;
import
{
RootState
}
from
"
@/store
"
;
...
...
src/reducers/duel/monstersSlice.ts
View file @
6f35a67e
...
@@ -6,7 +6,7 @@ import {
...
@@ -6,7 +6,7 @@ import {
}
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
"
;
import
{
RootState
}
from
"
@/store
"
;
import
{
RootState
}
from
"
@/store
"
;
import
{
import
{
...
...
src/reducers/duel/util.ts
View file @
6f35a67e
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
import
{
Draft
}
from
"
@reduxjs/toolkit
"
;
import
{
Draft
}
from
"
@reduxjs/toolkit
"
;
import
{
ygopro
}
from
"
@/api
/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@/api
"
;
import
{
CardState
}
from
"
./generic
"
;
import
{
CardState
}
from
"
./generic
"
;
import
{
DuelState
}
from
"
./mod
"
;
import
{
DuelState
}
from
"
./mod
"
;
...
...
src/service/duel/attack.ts
View file @
6f35a67e
import
{
ygopro
}
from
"
@/api
/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@/api
"
;
import
{
fetchEsHintMeta
}
from
"
@/reducers/duel/hintSlice
"
;
import
{
fetchEsHintMeta
}
from
"
@/reducers/duel/hintSlice
"
;
import
{
AppDispatch
}
from
"
@/store
"
;
import
{
AppDispatch
}
from
"
@/store
"
;
import
{
matStore
}
from
"
@/valtioStores
"
;
import
{
matStore
}
from
"
@/valtioStores
"
;
...
...
src/service/duel/attackDisable.ts
View file @
6f35a67e
import
{
ygopro
}
from
"
@/api
/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@/api
"
;
import
{
fetchEsHintMeta
}
from
"
@/reducers/duel/hintSlice
"
;
import
{
fetchEsHintMeta
}
from
"
@/reducers/duel/hintSlice
"
;
import
{
AppDispatch
}
from
"
@/store
"
;
import
{
AppDispatch
}
from
"
@/store
"
;
import
{
matStore
}
from
"
@/valtioStores
"
;
import
{
matStore
}
from
"
@/valtioStores
"
;
...
...
src/service/duel/chaining.ts
View file @
6f35a67e
import
{
ygopro
}
from
"
@/api
/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@/api
"
;
import
{
fetchEsHintMeta
}
from
"
@/reducers/duel/hintSlice
"
;
import
{
fetchEsHintMeta
}
from
"
@/reducers/duel/hintSlice
"
;
import
{
AppDispatch
}
from
"
@/store
"
;
import
{
AppDispatch
}
from
"
@/store
"
;
import
{
matStore
}
from
"
@/valtioStores
"
;
import
{
matStore
}
from
"
@/valtioStores
"
;
...
...
src/service/duel/draw.ts
View file @
6f35a67e
import
{
ygopro
}
from
"
@/api
/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@/api
"
;
import
{
fetchHandsMeta
}
from
"
@/reducers/duel/handsSlice
"
;
import
{
fetchHandsMeta
}
from
"
@/reducers/duel/handsSlice
"
;
import
{
fetchEsHintMeta
}
from
"
@/reducers/duel/hintSlice
"
;
import
{
fetchEsHintMeta
}
from
"
@/reducers/duel/hintSlice
"
;
import
{
AppDispatch
}
from
"
@/store
"
;
import
{
AppDispatch
}
from
"
@/store
"
;
...
...
src/service/duel/flipSummoned.ts
View file @
6f35a67e
import
{
ygopro
}
from
"
@/api
/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@/api
"
;
import
{
fetchEsHintMeta
}
from
"
@/reducers/duel/hintSlice
"
;
import
{
fetchEsHintMeta
}
from
"
@/reducers/duel/hintSlice
"
;
import
{
AppDispatch
}
from
"
@/store
"
;
import
{
AppDispatch
}
from
"
@/store
"
;
import
{
matStore
}
from
"
@/valtioStores
"
;
import
{
fetchEsHintMeta
as
FIXME_fetchEsHintMeta
}
from
"
@/valtioStores
"
;
export
default
(
export
default
(
_
:
ygopro
.
StocGameMessage
.
MsgFlipSummoned
,
_
:
ygopro
.
StocGameMessage
.
MsgFlipSummoned
,
dispatch
:
AppDispatch
dispatch
:
AppDispatch
)
=>
{
)
=>
{
dispatch
(
fetchEsHintMeta
({
originMsg
:
1608
}));
dispatch
(
fetchEsHintMeta
({
originMsg
:
1608
}));
matStore
.
hint
.
fetchEsHintMeta
({
originMsg
:
1608
});
FIXME_
fetchEsHintMeta
({
originMsg
:
1608
});
};
};
src/service/duel/flipSummoning.ts
View file @
6f35a67e
import
{
ygopro
}
from
"
@/api
/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@/api
"
;
import
{
fetchEsHintMeta
}
from
"
@/reducers/duel/hintSlice
"
;
import
{
fetchEsHintMeta
}
from
"
@/reducers/duel/hintSlice
"
;
import
{
AppDispatch
}
from
"
@/store
"
;
import
{
AppDispatch
}
from
"
@/store
"
;
import
{
matStore
}
from
"
@/valtioStores
"
;
import
{
fetchEsHintMeta
as
FIXME_fetchEsHintMeta
}
from
"
@/valtioStores
"
;
export
default
(
export
default
(
flipSummoning
:
ygopro
.
StocGameMessage
.
MsgFlipSummoning
,
flipSummoning
:
ygopro
.
StocGameMessage
.
MsgFlipSummoning
,
...
@@ -13,7 +13,7 @@ export default (
...
@@ -13,7 +13,7 @@ export default (
cardID
:
flipSummoning
.
code
,
cardID
:
flipSummoning
.
code
,
})
})
);
);
matStore
.
hint
.
fetchEsHintMeta
({
FIXME_
fetchEsHintMeta
({
originMsg
:
"
「[?]」反转召唤宣言时
"
,
originMsg
:
"
「[?]」反转召唤宣言时
"
,
cardID
:
flipSummoning
.
code
,
cardID
:
flipSummoning
.
code
,
});
});
...
...
src/service/duel/gameMsg.ts
View file @
6f35a67e
import
{
ygopro
}
from
"
@/api
/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@/api
"
;
import
{
setWaiting
}
from
"
@/reducers/duel/mod
"
;
import
{
setWaiting
}
from
"
@/reducers/duel/mod
"
;
import
{
store
}
from
"
@/store
"
;
import
{
store
}
from
"
@/store
"
;
import
{
matStore
}
from
"
@/valtioStores
"
;
import
{
matStore
}
from
"
@/valtioStores
"
;
...
...
src/service/duel/hint.ts
View file @
6f35a67e
import
{
ygopro
}
from
"
@/api
/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@/api
"
;
import
{
import
{
fetchCommonHintMeta
,
fetchCommonHintMeta
,
fetchEsHintMeta
,
fetchEsHintMeta
,
...
...
src/service/duel/move.ts
View file @
6f35a67e
import
{
ygopro
}
from
"
@/api
/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@/api
"
;
import
MsgMove
=
ygopro
.
StocGameMessage
.
MsgMove
;
import
MsgMove
=
ygopro
.
StocGameMessage
.
MsgMove
;
import
{
fetchBanishedZoneMeta
}
from
"
@/reducers/duel/banishedZoneSlice
"
;
import
{
fetchBanishedZoneMeta
}
from
"
@/reducers/duel/banishedZoneSlice
"
;
import
{
fetchExtraDeckMeta
}
from
"
@/reducers/duel/extraDeckSlice
"
;
import
{
fetchExtraDeckMeta
}
from
"
@/reducers/duel/extraDeckSlice
"
;
...
...
src/service/duel/newPhase.ts
View file @
6f35a67e
import
{
ygopro
}
from
"
@/api
/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@/api
"
;
import
{
updatePhase
}
from
"
@/reducers/duel/mod
"
;
import
{
updatePhase
}
from
"
@/reducers/duel/mod
"
;
import
{
AppDispatch
}
from
"
@/store
"
;
import
{
AppDispatch
}
from
"
@/store
"
;
import
{
matStore
,
type
PhaseName
}
from
"
@/valtioStores
"
;
import
{
matStore
,
type
PhaseName
}
from
"
@/valtioStores
"
;
...
...
src/service/duel/newTurn.ts
View file @
6f35a67e
import
{
ygopro
}
from
"
@/api
/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@/api
"
;
import
{
updateTurn
}
from
"
@/reducers/duel/mod
"
;
import
{
updateTurn
}
from
"
@/reducers/duel/mod
"
;
import
{
AppDispatch
}
from
"
@/store
"
;
import
{
AppDispatch
}
from
"
@/store
"
;
import
{
matStore
}
from
"
@/valtioStores
"
;
import
{
matStore
}
from
"
@/valtioStores
"
;
...
...
src/service/duel/posChange.ts
View file @
6f35a67e
import
{
ygopro
}
from
"
@/api
/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@/api
"
;
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 @
6f35a67e
import
{
ygopro
}
from
"
@/api
/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@/api
"
;
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 @
6f35a67e
import
{
ActionCreatorWithPayload
}
from
"
@reduxjs/toolkit
"
;
import
{
ActionCreatorWithPayload
}
from
"
@reduxjs/toolkit
"
;
import
{
ygopro
}
from
"
@/api
/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@/api
"
;
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 @
6f35a67e
import
{
ygopro
}
from
"
@/api
/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@/api
"
;
import
{
import
{
setCheckCardModalIsOpen
,
setCheckCardModalIsOpen
,
setCheckCardModalMinMax
,
setCheckCardModalMinMax
,
...
...
src/service/duel/selectChain.ts
View file @
6f35a67e
import
{
ygopro
}
from
"
@/api
/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@/api
"
;
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
{
...
...
src/service/duel/selectCounter.ts
View file @
6f35a67e
import
{
ygopro
}
from
"
@/api
/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@/api
"
;
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
{
messageStore
,
getCardByLocation
}
from
"
@/valtioStores
"
;
type
MsgSelectCounter
=
ygopro
.
StocGameMessage
.
MsgSelectCounter
;
export
default
(
selectCounter
:
MsgSelectCounter
,
dispatch
:
AppDispatch
)
=>
{
export
default
(
selectCounter
:
MsgSelectCounter
,
dispatch
:
AppDispatch
)
=>
{
dispatch
(
setCheckCounter
(
selectCounter
.
toObject
()));
dispatch
(
setCheckCounter
(
selectCounter
.
toObject
()));
messageStore
.
checkCounterModal
.
counterType
=
selectCounter
.
counter_type
;
messageStore
.
checkCounterModal
.
min
=
selectCounter
.
min
;
messageStore
.
checkCounterModal
.
options
=
selectCounter
.
options
!
.
map
(
({
location
,
code
,
counter_count
})
=>
{
const
id
=
getCardByLocation
(
location
)?.
occupant
?.
id
;
const
newCode
=
code
?
code
:
id
||
0
;
return
{
code
:
newCode
,
max
:
counter_count
!
,
};
}
);
messageStore
.
checkCounterModal
.
isOpen
=
true
;
};
};
src/service/duel/selectEffectYn.ts
View file @
6f35a67e
import
{
CardMeta
}
from
"
@/api/cards
"
;
import
{
CardMeta
,
fetchCard
}
from
"
@/api/cards
"
;
import
{
ygopro
}
from
"
@/api
/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@/api
"
;
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
"
;
import
{
CardZoneToChinese
}
from
"
./util
"
;
import
{
CardZoneToChinese
}
from
"
./util
"
;
import
MsgSelectEffectYn
=
ygopro
.
StocGameMessage
.
MsgSelectEffectYn
;
export
default
(
selectEffectYn
:
MsgSelectEffectYn
,
dispatch
:
AppDispatch
)
=>
{
import
{
messageStore
,
getCardByLocation
}
from
"
@/valtioStores
"
;
import
{
fetchStrings
}
from
"
@/api/strings
"
;
type
MsgSelectEffectYn
=
ygopro
.
StocGameMessage
.
MsgSelectEffectYn
;
// 这里改成了 async 不知道有没有影响
export
default
async
(
selectEffectYn
:
MsgSelectEffectYn
,
dispatch
:
AppDispatch
)
=>
{
const
player
=
selectEffectYn
.
player
;
const
player
=
selectEffectYn
.
player
;
const
code
=
selectEffectYn
.
code
;
const
code
=
selectEffectYn
.
code
;
const
location
=
selectEffectYn
.
location
;
const
location
=
selectEffectYn
.
location
;
...
@@ -39,5 +47,10 @@ export default (selectEffectYn: MsgSelectEffectYn, dispatch: AppDispatch) => {
...
@@ -39,5 +47,10 @@ export default (selectEffectYn: MsgSelectEffectYn, dispatch: AppDispatch) => {
textGenerator
,
textGenerator
,
})
})
);
);
// TODO: 国际化文案
dispatch
(
setYesNoModalIsOpen
(
true
));
dispatch
(
setYesNoModalIsOpen
(
true
));
const
desc
=
fetchStrings
(
"
!system
"
,
effect_description
);
const
meta
=
await
fetchCard
(
code
);
messageStore
.
yesNoModal
.
msg
=
textGenerator
(
desc
,
meta
,
location
);
};
};
src/service/duel/selectIdleCmd.ts
View file @
6f35a67e
import
{
ygopro
}
from
"
@/api
/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@/api
"
;
import
{
Interactivity
,
InteractType
}
from
"
@/reducers/duel/generic
"
;
import
{
Interactivity
,
InteractType
}
from
"
@/reducers/duel/generic
"
;
import
{
import
{
addBanishedZoneIdleInteractivities
,
addBanishedZoneIdleInteractivities
,
...
...
src/service/duel/selectOption.ts
View file @
6f35a67e
import
{
ygopro
}
from
"
@/api
/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@/api
"
;
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 @
6f35a67e
import
{
ygopro
}
from
"
@/api
/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@/api
"
;
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 @
6f35a67e
import
{
ygopro
}
from
"
@/api
/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@/api
"
;
import
{
import
{
setPositionModalIsOpen
,
setPositionModalIsOpen
,
setPositionModalPositions
,
setPositionModalPositions
,
...
...
src/service/duel/selectSum.ts
View file @
6f35a67e
import
{
ygopro
}
from
"
@/api
/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@/api
"
;
import
{
import
{
setCheckCardModalV3AllLevel
,
setCheckCardModalV3AllLevel
,
setCheckCardModalV3IsOpen
,
setCheckCardModalV3IsOpen
,
...
...
src/service/duel/selectTribute.ts
View file @
6f35a67e
import
{
ygopro
}
from
"
@/api
/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@/api
"
;
import
{
import
{
setCheckCardModalV3AllLevel
,
setCheckCardModalV3AllLevel
,
setCheckCardModalV3IsOpen
,
setCheckCardModalV3IsOpen
,
...
...
src/service/duel/selectUnselectCard.ts
View file @
6f35a67e
import
{
ygopro
}
from
"
@/api
/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@/api
"
;
import
{
import
{
setCheckCardModalV2CancelAble
,
setCheckCardModalV2CancelAble
,
setCheckCardModalV2FinishAble
,
setCheckCardModalV2FinishAble
,
...
...
src/service/duel/selectYesNo.ts
View file @
6f35a67e
import
{
ygopro
}
from
"
@/api
/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@/api
"
;
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 @
6f35a67e
import
{
ygopro
}
from
"
@/api
/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@/api
"
;
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 @
6f35a67e
import
{
ygopro
}
from
"
@/api
/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@/api
"
;
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 @
6f35a67e
import
{
ygopro
}
from
"
@/api
/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@/api
"
;
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 @
6f35a67e
import
{
ygopro
}
from
"
@/api
/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@/api
"
;
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 @
6f35a67e
import
{
ygopro
}
from
"
@/api
/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@/api
"
;
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 @
6f35a67e
import
{
ygopro
}
from
"
@/api
/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@/api
"
;
import
{
import
{
infoInit
,
infoInit
,
initBanishedZone
,
initBanishedZone
,
...
...
src/service/duel/summoned.ts
View file @
6f35a67e
import
{
ygopro
}
from
"
@/api
/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@/api
"
;
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 @
6f35a67e
import
{
ygopro
}
from
"
@/api
/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@/api
"
;
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 @
6f35a67e
import
{
ygopro
}
from
"
@/api
/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@/api
"
;
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 @
6f35a67e
import
{
ygopro
}
from
"
@/api
/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@/api
"
;
import
{
sendTimeConfirm
}
from
"
@/api/ocgcore/ocgHelper
"
;
import
{
sendTimeConfirm
}
from
"
@/api/ocgcore/ocgHelper
"
;
import
{
updateTimeLimit
}
from
"
@/reducers/duel/mod
"
;
import
{
updateTimeLimit
}
from
"
@/reducers/duel/mod
"
;
import
{
store
}
from
"
@/store
"
;
import
{
store
}
from
"
@/store
"
;
...
...
src/service/duel/unimplemented.ts
View file @
6f35a67e
import
{
ygopro
}
from
"
@/api
/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@/api
"
;
import
{
useConfig
}
from
"
@/config
"
;
import
{
useConfig
}
from
"
@/config
"
;
import
{
setUnimplemented
}
from
"
@/reducers/duel/mod
"
;
import
{
setUnimplemented
}
from
"
@/reducers/duel/mod
"
;
import
{
AppDispatch
}
from
"
@/store
"
;
import
{
AppDispatch
}
from
"
@/store
"
;
...
...
src/service/duel/updateCounter.ts
View file @
6f35a67e
import
{
ygopro
}
from
"
@/api
/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@/api
"
;
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 @
6f35a67e
import
{
ygopro
}
from
"
@/api
/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@/api
"
;
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 @
6f35a67e
import
{
ygopro
}
from
"
@/api
/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@/api
"
;
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 @
6f35a67e
import
{
ygopro
}
from
"
@/api
/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@/api
"
;
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 @
6f35a67e
import
{
ygopro
}
from
"
@/api
/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@/api
"
;
import
{
clearAllIdleInteractivities
,
setWaiting
}
from
"
@/reducers/duel/mod
"
;
import
{
clearAllIdleInteractivities
,
setWaiting
}
from
"
@/reducers/duel/mod
"
;
import
{
AppDispatch
}
from
"
@/store
"
;
import
{
AppDispatch
}
from
"
@/store
"
;
...
...
src/service/duel/win.ts
View file @
6f35a67e
import
{
ygopro
}
from
"
@/api
/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@/api
"
;
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 @
6f35a67e
import
{
ygopro
}
from
"
@/api
/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@/api
"
;
import
{
player0DeckInfo
,
player1DeckInfo
}
from
"
@/reducers/playerSlice
"
;
import
{
player0DeckInfo
,
player1DeckInfo
}
from
"
@/reducers/playerSlice
"
;
import
{
store
}
from
"
@/store
"
;
import
{
store
}
from
"
@/store
"
;
import
{
playerStore
}
from
"
@/valtioStores
"
;
import
{
playerStore
}
from
"
@/valtioStores
"
;
...
...
src/service/mora/selectHand.ts
View file @
6f35a67e
import
{
ygopro
}
from
"
@/api
/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@/api
"
;
import
{
selectHandAble
}
from
"
@/reducers/moraSlice
"
;
import
{
selectHandAble
}
from
"
@/reducers/moraSlice
"
;
import
{
store
}
from
"
@/store
"
;
import
{
store
}
from
"
@/store
"
;
import
{
moraStore
}
from
"
@/valtioStores
"
;
import
{
moraStore
}
from
"
@/valtioStores
"
;
...
...
src/service/mora/selectTp.ts
View file @
6f35a67e
import
{
ygopro
}
from
"
@/api
/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@/api
"
;
import
{
selectTpAble
}
from
"
@/reducers/moraSlice
"
;
import
{
selectTpAble
}
from
"
@/reducers/moraSlice
"
;
import
{
store
}
from
"
@/store
"
;
import
{
store
}
from
"
@/store
"
;
import
{
moraStore
}
from
"
@/valtioStores
"
;
import
{
moraStore
}
from
"
@/valtioStores
"
;
...
...
src/service/room/chat.ts
View file @
6f35a67e
import
{
ygopro
}
from
"
@/api
/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@/api
"
;
import
{
postChat
}
from
"
@/reducers/chatSlice
"
;
import
{
postChat
}
from
"
@/reducers/chatSlice
"
;
import
{
store
}
from
"
@/store
"
;
import
{
store
}
from
"
@/store
"
;
import
{
chatStore
}
from
"
@/valtioStores
"
;
import
{
chatStore
}
from
"
@/valtioStores
"
;
...
...
src/service/room/duelStart.ts
View file @
6f35a67e
import
{
ygopro
}
from
"
@/api
/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@/api
"
;
import
{
duelStart
}
from
"
@/reducers/moraSlice
"
;
import
{
duelStart
}
from
"
@/reducers/moraSlice
"
;
import
{
store
}
from
"
@/store
"
;
import
{
store
}
from
"
@/store
"
;
import
{
moraStore
}
from
"
@/valtioStores
"
;
import
{
moraStore
}
from
"
@/valtioStores
"
;
...
...
src/service/room/hsPlayerChange.ts
View file @
6f35a67e
import
{
ygopro
}
from
"
@/api
/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@/api
"
;
import
{
import
{
observerIncrement
,
observerIncrement
,
player0Leave
,
player0Leave
,
...
...
src/service/room/hsPlayerEnter.ts
View file @
6f35a67e
import
{
ygopro
}
from
"
@/api
/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@/api
"
;
import
{
player0Enter
,
player1Enter
}
from
"
@/reducers/playerSlice
"
;
import
{
player0Enter
,
player1Enter
}
from
"
@/reducers/playerSlice
"
;
import
{
store
}
from
"
@/store
"
;
import
{
store
}
from
"
@/store
"
;
import
{
playerStore
}
from
"
@/valtioStores
"
;
import
{
playerStore
}
from
"
@/valtioStores
"
;
...
...
src/service/room/hsWatchChange.ts
View file @
6f35a67e
import
{
ygopro
}
from
"
@/api
/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@/api
"
;
import
{
observerChange
}
from
"
@/reducers/playerSlice
"
;
import
{
observerChange
}
from
"
@/reducers/playerSlice
"
;
import
{
store
}
from
"
@/store
"
;
import
{
store
}
from
"
@/store
"
;
import
{
playerStore
}
from
"
@/valtioStores
"
;
import
{
playerStore
}
from
"
@/valtioStores
"
;
...
...
src/service/room/joinGame.ts
View file @
6f35a67e
import
{
ygopro
}
from
"
@/api
/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@/api
"
;
import
{
setJoined
}
from
"
@/reducers/joinSlice
"
;
import
{
setJoined
}
from
"
@/reducers/joinSlice
"
;
import
{
store
}
from
"
@/store
"
;
import
{
store
}
from
"
@/store
"
;
import
{
joinStore
}
from
"
@/valtioStores
"
;
import
{
joinStore
}
from
"
@/valtioStores
"
;
...
...
src/service/room/typeChange.ts
View file @
6f35a67e
import
{
ygopro
}
from
"
@/api
/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@/api
"
;
import
{
import
{
hostChange
,
hostChange
,
player0Update
,
player0Update
,
...
...
src/ui/Duel/Message/HintNotification.tsx
View file @
6f35a67e
...
@@ -2,7 +2,7 @@ import { notification } from "antd";
...
@@ -2,7 +2,7 @@ import { notification } from "antd";
import
React
,
{
useEffect
}
from
"
react
"
;
import
React
,
{
useEffect
}
from
"
react
"
;
import
{
useNavigate
}
from
"
react-router-dom
"
;
import
{
useNavigate
}
from
"
react-router-dom
"
;
import
{
ygopro
}
from
"
@/api
/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@/api
"
;
import
{
useAppSelector
}
from
"
@/hook
"
;
import
{
useAppSelector
}
from
"
@/hook
"
;
import
{
selectHint
}
from
"
@/reducers/duel/hintSlice
"
;
import
{
selectHint
}
from
"
@/reducers/duel/hintSlice
"
;
import
{
selectDuelResult
,
selectWaiting
}
from
"
@/reducers/duel/mod
"
;
import
{
selectDuelResult
,
selectWaiting
}
from
"
@/reducers/duel/mod
"
;
...
...
src/ui/Duel/Message/PositionModal.tsx
View file @
6f35a67e
...
@@ -2,7 +2,7 @@ import { CheckCard } from "@ant-design/pro-components";
...
@@ -2,7 +2,7 @@ import { CheckCard } from "@ant-design/pro-components";
import
{
Button
}
from
"
antd
"
;
import
{
Button
}
from
"
antd
"
;
import
React
,
{
useState
}
from
"
react
"
;
import
React
,
{
useState
}
from
"
react
"
;
import
{
ygopro
}
from
"
@/api
/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@/api
"
;
import
{
sendSelectPositionResponse
}
from
"
@/api/ocgcore/ocgHelper
"
;
import
{
sendSelectPositionResponse
}
from
"
@/api/ocgcore/ocgHelper
"
;
import
{
useAppSelector
}
from
"
@/hook
"
;
import
{
useAppSelector
}
from
"
@/hook
"
;
import
{
import
{
...
...
src/ui/Duel/PlayMat/FixedSlot.tsx
View file @
6f35a67e
...
@@ -2,7 +2,7 @@ import * as BABYLON from "@babylonjs/core";
...
@@ -2,7 +2,7 @@ import * as BABYLON from "@babylonjs/core";
import
{
ActionCreatorWithPayload
}
from
"
@reduxjs/toolkit
"
;
import
{
ActionCreatorWithPayload
}
from
"
@reduxjs/toolkit
"
;
import
{
useRef
}
from
"
react
"
;
import
{
useRef
}
from
"
react
"
;
import
{
ygopro
}
from
"
@/api
/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@/api
"
;
import
{
sendSelectPlaceResponse
}
from
"
@/api/ocgcore/ocgHelper
"
;
import
{
sendSelectPlaceResponse
}
from
"
@/api/ocgcore/ocgHelper
"
;
import
{
useConfig
}
from
"
@/config
"
;
import
{
useConfig
}
from
"
@/config
"
;
import
{
useClick
}
from
"
@/hook
"
;
import
{
useClick
}
from
"
@/hook
"
;
...
...
src/valtioStores/matStore/methods/fetchCheckCardMeta.ts
View file @
6f35a67e
import
{
ygopro
}
from
"
@/api
/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@/api
"
;
import
{
matStore
,
messageStore
}
from
"
@/valtioStores
"
;
import
{
matStore
,
messageStore
}
from
"
@/valtioStores
"
;
import
{
fetchCard
,
getCardStr
}
from
"
@/api/cards
"
;
import
{
fetchCard
,
getCardStr
}
from
"
@/api/cards
"
;
...
...
src/valtioStores/matStore/methods/fetchHint.ts
View file @
6f35a67e
import
{
matStore
}
from
"
@/valtioStores
"
;
import
{
matStore
}
from
"
@/valtioStores
"
;
import
{
fetchCard
}
from
"
@/api/cards
"
;
import
{
fetchCard
}
from
"
@/api/cards
"
;
import
{
DESCRIPTION_LIMIT
,
fetchStrings
,
getStrings
}
from
"
@/api/strings
"
;
import
{
DESCRIPTION_LIMIT
,
fetchStrings
,
getStrings
}
from
"
@/api/strings
"
;
import
type
{
ygopro
}
from
"
@/api
/ocgcore/idl/ocgcore
"
;
import
type
{
ygopro
}
from
"
@/api
"
;
const
{
hint
}
=
matStore
;
const
{
hint
}
=
matStore
;
...
...
src/valtioStores/matStore/methods/getCardByLocation.ts
0 → 100644
View file @
6f35a67e
import
{
matStore
}
from
"
@/valtioStores
"
;
import
type
{
ygopro
}
from
"
@/api
"
;
export
const
getCardByLocation
=
(
location
:
ygopro
.
CardLocation
)
=>
{
return
matStore
.
getZone
(
location
.
location
).
at
(
location
.
controler
)[
location
.
sequence
];
};
src/valtioStores/matStore/methods/index.ts
View file @
6f35a67e
export
*
from
"
./fetchCheckCardMeta
"
;
export
*
from
"
./fetchCheckCardMeta
"
;
export
*
from
"
./fetchHint
"
;
export
*
from
"
./fetchHint
"
;
export
*
from
"
./getCardByLocation
"
;
src/valtioStores/matStore/store.ts
View file @
6f35a67e
import
{
proxy
}
from
"
valtio
"
;
import
{
proxy
}
from
"
valtio
"
;
import
{
fetchCard
}
from
"
@/api/cards
"
;
import
{
fetchCard
}
from
"
@/api/cards
"
;
import
{
ygopro
}
from
"
@/api
/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@/api
"
;
import
type
{
import
type
{
BothSide
,
BothSide
,
...
...
src/valtioStores/matStore/types.ts
View file @
6f35a67e
import
type
{
CardMeta
}
from
"
@/api/cards
"
;
import
type
{
CardMeta
}
from
"
@/api/cards
"
;
import
type
{
ygopro
}
from
"
@/api
/ocgcore/idl/ocgcore
"
;
import
type
{
ygopro
}
from
"
@/api
"
;
// >>> play mat state >>>
// >>> play mat state >>>
...
...
src/valtioStores/messageStore/index.ts
View file @
6f35a67e
import
{
proxy
}
from
"
valtio
"
;
import
{
proxy
}
from
"
valtio
"
;
import
type
{
CardMeta
}
from
"
@/api/cards
"
;
import
type
{
CardMeta
}
from
"
@/api/cards
"
;
import
{
ygopro
}
from
"
@/api
/ocgcore/idl/ocgcore
"
;
import
{
ygopro
}
from
"
@/api
"
;
export
const
messageStore
=
proxy
<
ModalState
>
({
export
const
messageStore
=
proxy
<
ModalState
>
({
cardModal
:
{
isOpen
:
false
,
interactivies
:
[],
counters
:
{}
},
cardModal
:
{
isOpen
:
false
,
interactivies
:
[],
counters
:
{}
},
...
...
tsconfig.json
View file @
6f35a67e
...
@@ -31,7 +31,7 @@
...
@@ -31,7 +31,7 @@
],
],
"neos-assets/*"
:
[
"neos-assets/*"
:
[
"./neos-assets/*"
"./neos-assets/*"
]
]
,
}
}
},
},
"include"
:
[
"include"
:
[
...
...
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