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
72d99f09
Commit
72d99f09
authored
May 26, 2023
by
chechunchi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
finish service
parent
5dd4731c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
3 deletions
+26
-3
src/service/duel/confirmDeskTop.ts
src/service/duel/confirmDeskTop.ts
+25
-2
src/service/duel/gameMsg.ts
src/service/duel/gameMsg.ts
+1
-1
No files found.
src/service/duel/confirmDeskTop.ts
View file @
72d99f09
import
{
ygopro
}
from
"
@/api
"
;
import
{
fetchCard
,
ygopro
}
from
"
@/api
"
;
import
{
sleep
}
from
"
@/infra
"
;
import
{
matStore
}
from
"
@/stores
"
;
export
default
async
(
confirmDeskTop
:
ygopro
.
StocGameMessage
.
MsgConfirmDeskTop
)
=>
{
console
.
log
(
confirmDeskTop
);
const
cards
=
confirmDeskTop
.
cards
;
for
(
const
card
of
cards
)
{
const
target
=
matStore
.
in
(
card
.
location
)
.
of
(
card
.
controler
)
.
at
(
card
.
sequence
);
if
(
target
)
{
// 设置`occupant`
const
meta
=
await
fetchCard
(
card
.
code
);
target
.
occupant
=
meta
;
// 聚焦1s
target
.
focus
=
true
;
await
sleep
(
1000
);
target
.
focus
=
false
;
await
sleep
(
200
);
}
else
{
console
.
warn
(
`card of
${
card
}
is null`
);
}
}
};
src/service/duel/gameMsg.ts
View file @
72d99f09
...
...
@@ -284,7 +284,7 @@ export default async function handleGameMsg(pb: ygopro.YgoStocMsg) {
break
;
}
case
"
confirm_desktop
"
:
{
onConfirmDeskTop
(
msg
.
confirm_desktop
);
await
onConfirmDeskTop
(
msg
.
confirm_desktop
);
break
;
}
...
...
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