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
76ae995f
Commit
76ae995f
authored
May 13, 2023
by
Chunchi Che
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add MsgChainSolved Adapter
parent
48baa6f3
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
0 deletions
+16
-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/chainSolved.ts
src/service/duel/chainSolved.ts
+5
-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 @
76ae995f
...
...
@@ -115,5 +115,9 @@
"112"
:
{
"protoType"
:
"attack_disable"
,
"fields"
:
[]
},
"73"
:
{
"protoType"
:
"chain_solved"
,
"fields"
:
[{
"fieldName"
:
"solved_index"
,
"fieldType"
:
"uint8"
}]
}
}
src/api/ocgcore/ocgAdapter/stoc/stocGameMsg/penetrate.ts
View file @
76ae995f
...
...
@@ -31,6 +31,7 @@ const MsgConstructorMap: Map<string, Constructor> = new Map([
[
"
chaining
"
,
ygopro
.
StocGameMessage
.
MsgChaining
],
[
"
attack
"
,
ygopro
.
StocGameMessage
.
MsgAttack
],
[
"
attack_disable
"
,
ygopro
.
StocGameMessage
.
MsgAttackDisabled
],
[
"
chain_solved
"
,
ygopro
.
StocGameMessage
.
MsgChainSolved
],
]);
export
interface
penetrateType
{
...
...
src/service/duel/chainSolved.ts
0 → 100644
View file @
76ae995f
import
{
ygopro
}
from
"
@/api
"
;
export
default
(
chainSolved
:
ygopro
.
StocGameMessage
.
MsgChainSolved
)
=>
{
console
.
log
(
chainSolved
);
};
src/service/duel/gameMsg.ts
View file @
76ae995f
...
...
@@ -4,6 +4,7 @@ import { matStore } from "@/stores";
import
onMsgAttack
from
"
./attack
"
;
import
onMsgAttackDisable
from
"
./attackDisable
"
;
import
onMsgChaining
from
"
./chaining
"
;
import
onMsgChainSolved
from
"
./chainSolved
"
;
import
onMsgDraw
from
"
./draw
"
;
import
onMsgFilpSummoned
from
"
./flipSummoned
"
;
import
onMsgFlipSummoning
from
"
./flipSummoning
"
;
...
...
@@ -234,6 +235,11 @@ export default function handleGameMsg(pb: ygopro.YgoStocMsg) {
break
;
}
case
"
chain_solved
"
:
{
onMsgChainSolved
(
msg
.
chain_solved
);
break
;
}
case
"
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