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
01b9e6f1
Commit
01b9e6f1
authored
May 21, 2023
by
Chunchi Che
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
handle chainEnd
parent
8bf177bd
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
0 deletions
+24
-0
src/api/ocgcore/ocgAdapter/stoc/stocGameMsg/penetrate.json
src/api/ocgcore/ocgAdapter/stoc/stocGameMsg/penetrate.json
+4
-0
src/api/ocgcore/ocgAdapter/stoc/stocGameMsg/penetrate.ts
src/api/ocgcore/ocgAdapter/stoc/stocGameMsg/penetrate.ts
+1
-0
src/service/duel/chainEnd.ts
src/service/duel/chainEnd.ts
+13
-0
src/service/duel/gameMsg.ts
src/service/duel/gameMsg.ts
+6
-0
No files found.
src/api/ocgcore/ocgAdapter/stoc/stocGameMsg/penetrate.json
View file @
01b9e6f1
...
@@ -114,6 +114,10 @@
...
@@ -114,6 +114,10 @@
"protoType"
:
"chain_solved"
,
"protoType"
:
"chain_solved"
,
"fields"
:
[{
"fieldName"
:
"solved_index"
,
"fieldType"
:
"uint8"
}]
"fields"
:
[{
"fieldName"
:
"solved_index"
,
"fieldType"
:
"uint8"
}]
},
},
"74"
:
{
"protoType"
:
"chain_end"
,
"fields"
:
[]
},
"75"
:
{
"75"
:
{
"protoType"
:
"chain_solved"
,
"protoType"
:
"chain_solved"
,
"fields"
:
[{
"fieldName"
:
"solved_index"
,
"fieldType"
:
"uint8"
}]
"fields"
:
[{
"fieldName"
:
"solved_index"
,
"fieldType"
:
"uint8"
}]
...
...
src/api/ocgcore/ocgAdapter/stoc/stocGameMsg/penetrate.ts
View file @
01b9e6f1
...
@@ -31,6 +31,7 @@ const MsgConstructorMap: Map<string, Constructor> = new Map([
...
@@ -31,6 +31,7 @@ const MsgConstructorMap: Map<string, Constructor> = new Map([
[
"
chaining
"
,
ygopro
.
StocGameMessage
.
MsgChaining
],
[
"
chaining
"
,
ygopro
.
StocGameMessage
.
MsgChaining
],
[
"
attack_disable
"
,
ygopro
.
StocGameMessage
.
MsgAttackDisabled
],
[
"
attack_disable
"
,
ygopro
.
StocGameMessage
.
MsgAttackDisabled
],
[
"
chain_solved
"
,
ygopro
.
StocGameMessage
.
MsgChainSolved
],
[
"
chain_solved
"
,
ygopro
.
StocGameMessage
.
MsgChainSolved
],
[
"
chain_end
"
,
ygopro
.
StocGameMessage
.
MsgChainEnd
],
]);
]);
export
interface
penetrateType
{
export
interface
penetrateType
{
...
...
src/service/duel/chainEnd.ts
0 → 100644
View file @
01b9e6f1
import
{
ygopro
}
from
"
@/api
"
;
import
{
matStore
}
from
"
@/stores
"
;
export
default
(
_chainEnd
:
ygopro
.
StocGameMessage
.
MsgChainEnd
)
=>
{
while
(
true
)
{
const
chain
=
matStore
.
chains
.
pop
();
if
(
chain
===
undefined
)
{
break
;
}
matStore
.
setChained
(
chain
,
undefined
);
}
};
src/service/duel/gameMsg.ts
View file @
01b9e6f1
...
@@ -3,6 +3,7 @@ import { matStore } from "@/stores";
...
@@ -3,6 +3,7 @@ import { matStore } from "@/stores";
import
onMsgAttack
from
"
./attack
"
;
import
onMsgAttack
from
"
./attack
"
;
import
onMsgAttackDisable
from
"
./attackDisable
"
;
import
onMsgAttackDisable
from
"
./attackDisable
"
;
import
onMsgChainEnd
from
"
./chainEnd
"
;
import
onMsgChaining
from
"
./chaining
"
;
import
onMsgChaining
from
"
./chaining
"
;
import
onMsgChainSolved
from
"
./chainSolved
"
;
import
onMsgChainSolved
from
"
./chainSolved
"
;
import
onMsgDraw
from
"
./draw
"
;
import
onMsgDraw
from
"
./draw
"
;
...
@@ -234,6 +235,11 @@ export default async function handleGameMsg(pb: ygopro.YgoStocMsg) {
...
@@ -234,6 +235,11 @@ export default async function handleGameMsg(pb: ygopro.YgoStocMsg) {
break
;
break
;
}
}
case
"
chain_end
"
:
{
onMsgChainEnd
(
msg
.
chain_end
);
break
;
}
case
"
summoning
"
:
{
case
"
summoning
"
:
{
onMsgSummoning
(
msg
.
summoning
);
onMsgSummoning
(
msg
.
summoning
);
...
...
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