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
d3f19391
Commit
d3f19391
authored
Jun 11, 2023
by
Chunchi Che
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add becomeTarget service
parent
3c7c029e
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
0 deletions
+22
-0
src/api/ocgcore/ocgAdapter/stoc/stocGameMsg/penetrate.json
src/api/ocgcore/ocgAdapter/stoc/stocGameMsg/penetrate.json
+10
-0
src/api/ocgcore/ocgAdapter/stoc/stocGameMsg/penetrate.ts
src/api/ocgcore/ocgAdapter/stoc/stocGameMsg/penetrate.ts
+1
-0
src/service/duel/becomeTarget.ts
src/service/duel/becomeTarget.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 @
d3f19391
...
...
@@ -225,5 +225,15 @@
"repeatedType"
:
"CardInfo"
}
]
},
"83"
:{
"protoType"
:
"become_target"
,
"fields"
:[
{
"fieldName"
:
"locations"
,
"fieldType"
:
"repeated"
,
"repeatedType"
:
"CardLocation"
}
]
}
}
src/api/ocgcore/ocgAdapter/stoc/stocGameMsg/penetrate.ts
View file @
d3f19391
...
...
@@ -34,6 +34,7 @@ const MsgConstructorMap: Map<string, Constructor> = new Map([
[
"
chain_end
"
,
ygopro
.
StocGameMessage
.
MsgChainEnd
],
[
"
lp_update
"
,
ygopro
.
StocGameMessage
.
MsgLpUpdate
],
[
"
confirm_cards
"
,
ygopro
.
StocGameMessage
.
MsgConfirmCards
],
[
"
become_target
"
,
ygopro
.
StocGameMessage
.
MsgBecomeTarget
],
]);
export
interface
penetrateType
{
...
...
src/service/duel/becomeTarget.ts
0 → 100644
View file @
d3f19391
import
{
ygopro
}
from
"
@/api
"
;
export
default
(
becomeTarget
:
ygopro
.
StocGameMessage
.
MsgBecomeTarget
)
=>
{
console
.
log
(
becomeTarget
);
};
src/service/duel/gameMsg.ts
View file @
d3f19391
...
...
@@ -5,6 +5,7 @@ import { matStore } from "@/stores";
import
onAnnounce
from
"
./announce
"
;
import
onMsgAttack
from
"
./attack
"
;
import
onMsgAttackDisable
from
"
./attackDisable
"
;
import
onMsgBecomeTarget
from
"
./becomeTarget
"
;
import
onMsgChainEnd
from
"
./chainEnd
"
;
import
onMsgChaining
from
"
./chaining
"
;
import
onMsgChainSolved
from
"
./chainSolved
"
;
...
...
@@ -297,6 +298,11 @@ async function _handleGameMsg(pb: ygopro.YgoStocMsg) {
break
;
}
case
"
become_target
"
:
{
onMsgBecomeTarget
(
msg
.
become_target
);
break
;
}
case
"
unimplemented
"
:
{
onUnimplemented
(
msg
.
unimplemented
);
...
...
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