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
3
Merge Requests
3
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
f2587542
Commit
f2587542
authored
Nov 19, 2022
by
Chunchi Che
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
2f04888f
Pipeline
#18019
passed with stages
in 1 minute and 49 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
src/service/duel/draw.ts
src/service/duel/draw.ts
+1
-0
src/ui/Duel/simpleDuel/mod.tsx
src/ui/Duel/simpleDuel/mod.tsx
+2
-2
No files found.
src/service/duel/draw.ts
View file @
f2587542
...
...
@@ -6,6 +6,7 @@ export default (
draw
:
ygopro
.
StocGameMessage
.
MsgDraw
,
dispatch
:
AppDispatch
)
=>
{
// FIXME: draw.player 和先后攻有关系
if
(
draw
.
player
===
0
)
{
dispatch
(
meAddHands
(
draw
.
cards
));
}
else
if
(
draw
.
player
===
1
)
{
...
...
src/ui/Duel/simpleDuel/mod.tsx
View file @
f2587542
...
...
@@ -25,7 +25,7 @@ export default class SimpleDuelPlateImpl implements IDuelPlate {
render
():
React
.
ReactElement
{
// ----- 数据获取 -----
// 默认的手牌Selector,返回
三
个code为-1的Card。
// 默认的手牌Selector,返回
五
个code为-1的Card。
const
defaultHandsSelector
=
(
_
:
RootState
)
=>
{
return
new
Array
(
5
).
fill
({
code
:
-
1
});
};
...
...
@@ -79,7 +79,7 @@ export default class SimpleDuelPlateImpl implements IDuelPlate {
engine
.
runRenderLoop
(()
=>
{
scene
.
render
();
});
},
[
canvasRef
]);
},
[
canvasRef
,
hands
]);
return
(
<
canvas
...
...
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