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
2d979aae
Commit
2d979aae
authored
Jul 10, 2023
by
Chunchi Che
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ReplayIgnoreMsg
parent
fd6866ae
Pipeline
#22619
passed with stages
in 11 minutes and 28 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
1 deletion
+22
-1
src/service/duel/gameMsg.ts
src/service/duel/gameMsg.ts
+21
-0
src/ui/Replay/index.tsx
src/ui/Replay/index.tsx
+1
-1
No files found.
src/service/duel/gameMsg.ts
View file @
2d979aae
import
{
ygopro
}
from
"
@/api
"
;
import
{
ygopro
}
from
"
@/api
"
;
import
{
sleep
}
from
"
@/infra
"
;
import
{
sleep
}
from
"
@/infra
"
;
import
{
matStore
}
from
"
@/stores
"
;
import
{
showWaiting
}
from
"
@/ui/Duel/Message
"
;
import
{
showWaiting
}
from
"
@/ui/Duel/Message
"
;
import
onAnnounce
from
"
./announce
"
;
import
onAnnounce
from
"
./announce
"
;
...
@@ -69,6 +70,24 @@ const ActiveList = [
...
@@ -69,6 +70,24 @@ const ActiveList = [
"
select_yes_no
"
,
"
select_yes_no
"
,
];
];
const
ReplayIgnoreMsg
=
[
"
select_idle_cmd
"
,
"
select_place
"
,
"
select_card
"
,
"
select_chain
"
,
"
select_effect_yn
"
,
"
select_position
"
,
"
select_option
"
,
"
select_battle_cmd
"
,
"
select_unselect_card
"
,
"
select_yes_no
"
,
"
select_tribute
"
,
"
select_counter
"
,
"
rock_paper_scissors
"
,
"
sort_card
"
,
"
announce
"
,
];
let
animation
:
Promise
<
unknown
>
=
new
Promise
<
void
>
((
rs
)
=>
rs
());
let
animation
:
Promise
<
unknown
>
=
new
Promise
<
void
>
((
rs
)
=>
rs
());
export
default
async
function
handleGameMsg
(
pb
:
ygopro
.
YgoStocMsg
)
{
export
default
async
function
handleGameMsg
(
pb
:
ygopro
.
YgoStocMsg
)
{
...
@@ -83,6 +102,8 @@ async function _handleGameMsg(pb: ygopro.YgoStocMsg) {
...
@@ -83,6 +102,8 @@ async function _handleGameMsg(pb: ygopro.YgoStocMsg) {
showWaiting
(
false
);
showWaiting
(
false
);
}
}
if
(
matStore
.
isReplay
&&
ReplayIgnoreMsg
.
includes
(
msg
.
gameMsg
))
return
;
switch
(
msg
.
gameMsg
)
{
switch
(
msg
.
gameMsg
)
{
case
"
start
"
:
{
case
"
start
"
:
{
await
onMsgStart
(
msg
.
start
);
await
onMsgStart
(
msg
.
start
);
...
...
src/ui/Replay/index.tsx
View file @
2d979aae
...
@@ -66,7 +66,7 @@ const ReplayModal: React.FC = () => {
...
@@ -66,7 +66,7 @@ const ReplayModal: React.FC = () => {
await
rustInit
(
url
);
await
rustInit
(
url
);
// 初始化额外卡组
// 初始化额外卡组
// FIXME: 这样写
肯定不对
// FIXME: 这样写
应该不对,有空来修
window
.
myExtraDeckCodes
=
[];
window
.
myExtraDeckCodes
=
[];
// 初始化sqlite
// 初始化sqlite
...
...
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