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
baichixing
Neos
Commits
69822b0f
Commit
69822b0f
authored
Apr 16, 2023
by
timel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor: rename to graveyardSlice.ts
parent
100e9f96
Changes
12
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
17 additions
and
20 deletions
+17
-20
src/reducers/duel/graveyardSlice.ts
src/reducers/duel/graveyardSlice.ts
+0
-0
src/reducers/duel/mod.ts
src/reducers/duel/mod.ts
+7
-7
src/service/duel/move.ts
src/service/duel/move.ts
+1
-1
src/service/mora/deckCount.ts
src/service/mora/deckCount.ts
+0
-1
src/service/room/duelStart.ts
src/service/room/duelStart.ts
+0
-1
src/service/room/hsPlayerChange.ts
src/service/room/hsPlayerChange.ts
+1
-1
src/service/room/joinGame.ts
src/service/room/joinGame.ts
+0
-1
src/ui/Duel/Message/TimeLine.tsx
src/ui/Duel/Message/TimeLine.tsx
+2
-2
src/ui/Duel/Message/timeLine.tsx
src/ui/Duel/Message/timeLine.tsx
+2
-2
src/ui/Duel/PlayMat/Graveyard.tsx
src/ui/Duel/PlayMat/Graveyard.tsx
+1
-1
src/ui/Mora.tsx
src/ui/Mora.tsx
+1
-1
src/ui/WaitRoom.tsx
src/ui/WaitRoom.tsx
+2
-2
No files found.
src/reducers/duel/
cemerety
Slice.ts
→
src/reducers/duel/
graveyard
Slice.ts
View file @
69822b0f
File moved
src/reducers/duel/mod.ts
View file @
69822b0f
...
...
@@ -15,13 +15,6 @@ import {
initBanishedZoneImpl
,
removeBanishedZoneImpl
,
}
from
"
./banishedZoneSlice
"
;
import
{
addGraveyardIdleInteractivitiesImpl
,
graveyardCase
,
GraveyardState
,
initGraveyardImpl
,
removeGraveyardImpl
,
}
from
"
./cemeretySlice
"
;
import
{
clearAllIdleInteractivitiesImpl
,
clearAllPlaceInteractivitiesImpl
,
...
...
@@ -35,6 +28,13 @@ import {
ExtraDeckState
,
removeExtraDeckImpl
,
}
from
"
./extraDeckSlice
"
;
import
{
addGraveyardIdleInteractivitiesImpl
,
graveyardCase
,
GraveyardState
,
initGraveyardImpl
,
removeGraveyardImpl
,
}
from
"
./graveyardSlice
"
;
import
{
addHandsIdleInteractivityImpl
,
clearHandsIdleInteractivityImpl
,
...
...
src/service/duel/move.ts
View file @
69822b0f
import
{
ygopro
}
from
"
@/api/ocgcore/idl/ocgcore
"
;
import
MsgMove
=
ygopro
.
StocGameMessage
.
MsgMove
;
import
{
fetchBanishedZoneMeta
}
from
"
@/reducers/duel/banishedZoneSlice
"
;
import
{
fetchGraveyardMeta
}
from
"
@/reducers/duel/cemeretySlice
"
;
import
{
fetchExtraDeckMeta
}
from
"
@/reducers/duel/extraDeckSlice
"
;
import
{
fetchGraveyardMeta
}
from
"
@/reducers/duel/graveyardSlice
"
;
import
{
insertHandMeta
}
from
"
@/reducers/duel/handsSlice
"
;
import
{
fetchMagicMeta
}
from
"
@/reducers/duel/magicSlice
"
;
import
{
...
...
src/service/mora/deckCount.ts
View file @
69822b0f
import
{
ygopro
}
from
"
@/api/ocgcore/idl/ocgcore
"
;
import
{
player0DeckInfo
,
player1DeckInfo
}
from
"
@/reducers/playerSlice
"
;
import
{
store
}
from
"
@/store
"
;
import
{
playerStore
}
from
"
@/valtioStores
"
;
// FIXME: player0 不一定是当前玩家
...
...
src/service/room/duelStart.ts
View file @
69822b0f
import
{
ygopro
}
from
"
@/api/ocgcore/idl/ocgcore
"
;
import
{
duelStart
}
from
"
@/reducers/moraSlice
"
;
import
{
store
}
from
"
@/store
"
;
import
{
moraStore
}
from
"
@/valtioStores
"
;
export
default
function
handleDuelStart
(
_pb
:
ygopro
.
YgoStocMsg
)
{
...
...
src/service/room/hsPlayerChange.ts
View file @
69822b0f
...
...
@@ -6,8 +6,8 @@ import {
player1Leave
,
player1Update
,
}
from
"
@/reducers/playerSlice
"
;
import
{
playerStore
}
from
"
@/valtioStores
"
;
import
{
store
}
from
"
@/store
"
;
import
{
playerStore
}
from
"
@/valtioStores
"
;
const
READY_STATE
=
"
ready
"
;
const
NO_READY_STATE
=
"
not ready
"
;
...
...
src/service/room/joinGame.ts
View file @
69822b0f
import
{
ygopro
}
from
"
@/api/ocgcore/idl/ocgcore
"
;
import
{
setJoined
}
from
"
@/reducers/joinSlice
"
;
import
{
store
}
from
"
@/store
"
;
import
{
joinStore
}
from
"
@/valtioStores
"
;
export
default
function
handleJoinGame
(
pb
:
ygopro
.
YgoStocMsg
)
{
...
...
src/ui/Duel/Message/TimeLine.tsx
View file @
69822b0f
import
{
MessageOutlined
}
from
"
@ant-design/icons
"
;
import
{
Timeline
,
TimelineItemProps
}
from
"
antd
"
;
import
React
,
{
useEffect
,
useState
,
useContext
}
from
"
react
"
;
import
React
,
{
useContext
,
useEffect
,
useState
}
from
"
react
"
;
import
{
useSnapshot
}
from
"
valtio
"
;
import
{
useAppSelector
}
from
"
@/hook
"
;
import
{
selectChat
}
from
"
@/reducers/chatSlice
"
;
import
{
valtioContext
}
from
"
@/valtioStores
"
;
import
{
useSnapshot
}
from
"
valtio
"
;
export
const
DuelTimeLine
=
()
=>
{
const
[
items
,
setItems
]
=
useState
<
TimelineItemProps
[]
>
([]);
...
...
src/ui/Duel/Message/timeLine.tsx
View file @
69822b0f
import
{
MessageOutlined
}
from
"
@ant-design/icons
"
;
import
{
Timeline
,
TimelineItemProps
}
from
"
antd
"
;
import
React
,
{
useEffect
,
useState
,
useContext
}
from
"
react
"
;
import
React
,
{
useContext
,
useEffect
,
useState
}
from
"
react
"
;
import
{
useSnapshot
}
from
"
valtio
"
;
import
{
useAppSelector
}
from
"
@/hook
"
;
import
{
selectChat
}
from
"
@/reducers/chatSlice
"
;
import
{
valtioContext
}
from
"
@/valtioStores
"
;
import
{
useSnapshot
}
from
"
valtio
"
;
export
const
DuelTimeLine
=
()
=>
{
const
[
items
,
setItems
]
=
useState
<
TimelineItemProps
[]
>
([]);
...
...
src/ui/Duel/PlayMat/Graveyard.tsx
View file @
69822b0f
...
...
@@ -5,7 +5,7 @@ import { useAppSelector } from "@/hook";
import
{
selectMeGraveyard
,
selectOpGraveyard
,
}
from
"
@/reducers/duel/
cemerety
Slice
"
;
}
from
"
@/reducers/duel/
graveyard
Slice
"
;
import
{
cardSlotRotation
}
from
"
../utils
"
;
import
{
Depth
,
SingleSlot
}
from
"
./SingleSlot
"
;
...
...
src/ui/Mora.tsx
View file @
69822b0f
...
...
@@ -6,6 +6,7 @@ import {
import
{
Button
,
Modal
}
from
"
antd
"
;
import
React
,
{
useContext
,
useEffect
}
from
"
react
"
;
import
{
useNavigate
,
useParams
}
from
"
react-router-dom
"
;
import
{
useSnapshot
}
from
"
valtio
"
;
import
{
sendHandResult
,
sendTpResult
}
from
"
@/api/ocgcore/ocgHelper
"
;
import
{
useConfig
}
from
"
@/config
"
;
...
...
@@ -19,7 +20,6 @@ import {
}
from
"
@/reducers/moraSlice
"
;
import
{
store
}
from
"
@/store
"
;
import
{
valtioContext
}
from
"
@/valtioStores
"
;
import
{
useSnapshot
}
from
"
valtio
"
;
const
{
automation
:
{
isAiMode
,
isAiFirst
},
...
...
src/ui/WaitRoom.tsx
View file @
69822b0f
...
...
@@ -19,9 +19,10 @@ import {
Space
,
Upload
,
}
from
"
antd
"
;
import
React
,
{
use
Effect
,
useState
,
useContext
}
from
"
react
"
;
import
React
,
{
use
Context
,
useEffect
,
useState
}
from
"
react
"
;
import
{
useNavigate
,
useParams
}
from
"
react-router-dom
"
;
import
rustInit
from
"
rust-src
"
;
import
{
useSnapshot
}
from
"
valtio
"
;
import
YGOProDeck
from
"
ygopro-deck-encode
"
;
import
{
DeckManager
,
fetchDeck
,
type
IDeck
}
from
"
@/api/deck
"
;
...
...
@@ -46,7 +47,6 @@ import {
}
from
"
@/reducers/playerSlice
"
;
import
{
store
}
from
"
@/store
"
;
import
{
valtioContext
}
from
"
@/valtioStores
"
;
import
{
useSnapshot
}
from
"
valtio
"
;
const
NeosConfig
=
useConfig
();
...
...
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