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
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
2
Merge Requests
2
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
MyCard
Neos
Commits
9d367625
Commit
9d367625
authored
Oct 23, 2022
by
Chunchi Che
Committed by
WANG HE
Dec 23, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rerange api
parent
26d71988
Changes
12
Show whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
17 additions
and
14 deletions
+17
-14
src/api/ocgcore/idl/ocgcore.ts
src/api/ocgcore/idl/ocgcore.ts
+0
-0
src/api/ocgcore/ocgHelper.ts
src/api/ocgcore/ocgHelper.ts
+2
-2
src/middleware/socket.ts
src/middleware/socket.ts
+1
-1
src/service/onSocketMessage.ts
src/service/onSocketMessage.ts
+1
-1
src/service/onSocketOpen.ts
src/service/onSocketOpen.ts
+1
-1
src/service/room/chat.ts
src/service/room/chat.ts
+1
-1
src/service/room/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/WaitRoom.tsx
src/ui/WaitRoom.tsx
+6
-3
No files found.
src/api/idl/ocgcore.ts
→
src/api/
ocgcore/
idl/ocgcore.ts
View file @
9d367625
File moved
src/api/
h
elper.ts
→
src/api/
ocgcore/ocgH
elper.ts
View file @
9d367625
import
{
ygopro
}
from
"
./idl/ocgcore
"
;
import
socketMiddleWare
,
{
socketCmd
}
from
"
../middleware/socket
"
;
import
{
IDeck
}
from
"
./Card
"
;
import
socketMiddleWare
,
{
socketCmd
}
from
"
../
../
middleware/socket
"
;
import
{
IDeck
}
from
"
.
.
/Card
"
;
export
function
sendUpdateDeck
(
deck
:
IDeck
)
{
const
updateDeck
=
new
ygopro
.
YgoCtosMsg
({
...
...
src/middleware/socket.ts
View file @
9d367625
import
{
ygopro
}
from
"
../api/idl/ocgcore
"
;
import
{
ygopro
}
from
"
../api/
ocgcore/
idl/ocgcore
"
;
import
handleSocketOpen
from
"
../service/onSocketOpen
"
;
import
handleSocketMessage
from
"
../service/onSocketMessage
"
;
...
...
src/service/onSocketMessage.ts
View file @
9d367625
import
{
ygopro
}
from
"
../api/idl/ocgcore
"
;
import
{
ygopro
}
from
"
../api/
ocgcore/
idl/ocgcore
"
;
import
handleHsPlayerChange
from
"
./room/hsPlayerChange
"
;
import
handleTypeChange
from
"
./room/typeChange
"
;
import
handleHsPlayerEnter
from
"
./room/hsPlayerEnter
"
;
...
...
src/service/onSocketOpen.ts
View file @
9d367625
import
{
sendJoinGame
,
sendPlayerInfo
}
from
"
../api/
h
elper
"
;
import
{
sendJoinGame
,
sendPlayerInfo
}
from
"
../api/
ocgcore/ocgH
elper
"
;
export
default
function
handleSocketOpen
(
ws
:
WebSocket
|
null
,
...
...
src/service/room/chat.ts
View file @
9d367625
import
{
ygopro
}
from
"
../../api/idl/ocgcore
"
;
import
{
ygopro
}
from
"
../../api/
ocgcore/
idl/ocgcore
"
;
import
{
postChat
}
from
"
../../reducers/chatSlice
"
;
import
{
store
}
from
"
../../store
"
;
...
...
src/service/room/hsPlayerChange.ts
View file @
9d367625
import
{
ygopro
}
from
"
../../api/idl/ocgcore
"
;
import
{
ygopro
}
from
"
../../api/
ocgcore/
idl/ocgcore
"
;
import
{
store
}
from
"
../../store
"
;
import
{
player0Update
,
...
...
src/service/room/hsPlayerEnter.ts
View file @
9d367625
import
{
ygopro
}
from
"
../../api/idl/ocgcore
"
;
import
{
ygopro
}
from
"
../../api/
ocgcore/
idl/ocgcore
"
;
import
{
store
}
from
"
../../store
"
;
import
{
player0Enter
,
player1Enter
}
from
"
../../reducers/playerSlice
"
;
...
...
src/service/room/hsWatchChange.ts
View file @
9d367625
import
{
ygopro
}
from
"
../../api/idl/ocgcore
"
;
import
{
ygopro
}
from
"
../../api/
ocgcore/
idl/ocgcore
"
;
import
{
observerChange
}
from
"
../../reducers/playerSlice
"
;
import
{
store
}
from
"
../../store
"
;
...
...
src/service/room/joinGame.ts
View file @
9d367625
import
{
ygopro
}
from
"
../../api/idl/ocgcore
"
;
import
{
ygopro
}
from
"
../../api/
ocgcore/
idl/ocgcore
"
;
import
{
store
}
from
"
../../store
"
;
import
{
setJoined
}
from
"
../../reducers/joinSlice
"
;
...
...
src/service/room/typeChange.ts
View file @
9d367625
import
{
ygopro
}
from
"
../../api/idl/ocgcore
"
;
import
{
ygopro
}
from
"
../../api/
ocgcore/
idl/ocgcore
"
;
import
{
player0Update
,
player1Update
,
...
...
src/ui/WaitRoom.tsx
View file @
9d367625
import
React
,
{
useEffect
,
useState
}
from
"
react
"
;
import
{
useParams
}
from
"
react-router-dom
"
;
import
{
ygopro
}
from
"
../api/idl/ocgcore
"
;
import
{
fetchDeck
,
IDeck
}
from
"
../api/Card
"
;
import
{
fetchDeck
}
from
"
../api/Card
"
;
import
"
../css/WaitRoom.css
"
;
import
{
useAppSelector
}
from
"
../hook
"
;
import
{
selectJoined
}
from
"
../reducers/joinSlice
"
;
...
...
@@ -12,7 +11,11 @@ import {
selectPlayer1
,
selectObserverCount
,
}
from
"
../reducers/playerSlice
"
;
import
{
sendUpdateDeck
,
sendHsReady
,
sendHsStart
}
from
"
../api/helper
"
;
import
{
sendUpdateDeck
,
sendHsReady
,
sendHsStart
,
}
from
"
../api/ocgcore/ocgHelper
"
;
import
socketMiddleWare
,
{
socketCmd
}
from
"
../middleware/socket
"
;
const
READY_STATE
=
"
ready
"
;
...
...
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