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
8839359e
Commit
8839359e
authored
Jul 10, 2023
by
Chunchi Che
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
handle sibyl_name
parent
e32be7ec
Pipeline
#22624
passed with stages
in 14 minutes and 7 seconds
Changes
5
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
55 additions
and
0 deletions
+55
-0
src/api/ocgcore/ocgAdapter/protoDecl.ts
src/api/ocgcore/ocgAdapter/protoDecl.ts
+1
-0
src/api/ocgcore/ocgAdapter/stoc/stocGameMsg/mod.ts
src/api/ocgcore/ocgAdapter/stoc/stocGameMsg/mod.ts
+6
-0
src/api/ocgcore/ocgAdapter/stoc/stocGameMsg/sibylName.ts
src/api/ocgcore/ocgAdapter/stoc/stocGameMsg/sibylName.ts
+36
-0
src/service/duel/gameMsg.ts
src/service/duel/gameMsg.ts
+6
-0
src/service/duel/sibylName.ts
src/service/duel/sibylName.ts
+6
-0
No files found.
src/api/ocgcore/ocgAdapter/protoDecl.ts
View file @
8839359e
...
@@ -69,3 +69,4 @@ export const MSG_FIELD_DISABLED = 56;
...
@@ -69,3 +69,4 @@ export const MSG_FIELD_DISABLED = 56;
export
const
MSG_HAND_RES
=
133
;
export
const
MSG_HAND_RES
=
133
;
export
const
MSG_SHUFFLE_HAND
=
33
;
export
const
MSG_SHUFFLE_HAND
=
33
;
export
const
MSG_SHUFFLE_EXTRA
=
39
;
export
const
MSG_SHUFFLE_EXTRA
=
39
;
export
const
MSG_SIBYL_NAME
=
235
;
src/api/ocgcore/ocgAdapter/stoc/stocGameMsg/mod.ts
View file @
8839359e
...
@@ -37,6 +37,7 @@ import MsgSelectTributeAdapter from "./selectTribute";
...
@@ -37,6 +37,7 @@ import MsgSelectTributeAdapter from "./selectTribute";
import
MsgSelectUnselectCardAdapter
from
"
./selectUnselectCard
"
;
import
MsgSelectUnselectCardAdapter
from
"
./selectUnselectCard
"
;
import
MsgShuffleHandExtraAdapter
from
"
./shuffleHandExtra
"
;
import
MsgShuffleHandExtraAdapter
from
"
./shuffleHandExtra
"
;
import
MsgShuffleSetCard
from
"
./shuffleSetCard
"
;
import
MsgShuffleSetCard
from
"
./shuffleSetCard
"
;
import
MsgSibylNameAdapter
from
"
./sibylName
"
;
import
MsgSortCard
from
"
./sortCard
"
;
import
MsgSortCard
from
"
./sortCard
"
;
import
MsgStartAdapter
from
"
./start
"
;
import
MsgStartAdapter
from
"
./start
"
;
import
MsgTossAdapter
from
"
./toss
"
;
import
MsgTossAdapter
from
"
./toss
"
;
...
@@ -273,6 +274,11 @@ export default class GameMsgAdapter implements StocAdapter {
...
@@ -273,6 +274,11 @@ export default class GameMsgAdapter implements StocAdapter {
break
;
break
;
}
}
case
GAME_MSG
.
MSG_SIBYL_NAME
:
{
gameMsg
.
sibyl_name
=
MsgSibylNameAdapter
(
gameData
);
break
;
}
default
:
{
default
:
{
gameMsg
.
unimplemented
=
new
ygopro
.
StocGameMessage
.
MsgUnimplemented
({
gameMsg
.
unimplemented
=
new
ygopro
.
StocGameMessage
.
MsgUnimplemented
({
command
:
func
,
command
:
func
,
...
...
src/api/ocgcore/ocgAdapter/stoc/stocGameMsg/sibylName.ts
0 → 100644
View file @
8839359e
import
{
ygopro
}
from
"
@/api/ocgcore/idl/ocgcore
"
;
import
MsgSibylName
=
ygopro
.
StocGameMessage
.
MsgSibylName
;
const
LEN
=
100
;
/*
* Msg Sibyl Name
* @param - TODO
*
* @usage - Replay模式获取对战双方的昵称
* */
export
default
(
data
:
Uint8Array
)
=>
{
const
decoder
=
new
TextDecoder
(
"
utf-16
"
);
let
offset
=
0
;
const
name_0
=
decoder
.
decode
(
data
.
slice
(
offset
,
offset
+
LEN
));
offset
+=
LEN
;
const
name_0_tag
=
decoder
.
decode
(
data
.
slice
(
offset
,
offset
+
LEN
));
offset
+=
LEN
;
const
name_0_c
=
decoder
.
decode
(
data
.
slice
(
offset
,
offset
+
LEN
));
offset
+=
LEN
;
const
name_1
=
decoder
.
decode
(
data
.
slice
(
offset
,
offset
+
LEN
));
offset
+=
LEN
;
const
name_1_tag
=
decoder
.
decode
(
data
.
slice
(
offset
,
offset
+
LEN
));
offset
+=
LEN
;
const
name_1_c
=
decoder
.
decode
(
data
.
slice
(
offset
,
offset
+
LEN
));
return
new
MsgSibylName
({
name_0
,
name_0_tag
,
name_0_c
,
name_1
,
name_1_tag
,
name_1_c
,
});
};
src/service/duel/gameMsg.ts
View file @
8839359e
...
@@ -41,6 +41,7 @@ import onMsgSet from "./set";
...
@@ -41,6 +41,7 @@ import onMsgSet from "./set";
import
onMsgShuffleDeck
from
"
./shuffleDeck
"
;
import
onMsgShuffleDeck
from
"
./shuffleDeck
"
;
import
onMsgShuffleHandExtra
from
"
./shuffleHandExtra
"
;
import
onMsgShuffleHandExtra
from
"
./shuffleHandExtra
"
;
import
onMsgShuffleSetCard
from
"
./shuffleSetCard
"
;
import
onMsgShuffleSetCard
from
"
./shuffleSetCard
"
;
import
onMsgSibylName
from
"
./sibylName
"
;
import
onMsgSortCard
from
"
./sortCard
"
;
import
onMsgSortCard
from
"
./sortCard
"
;
import
onMsgSpSummoned
from
"
./spSummoned
"
;
import
onMsgSpSummoned
from
"
./spSummoned
"
;
import
onMsgSpSummoning
from
"
./spSummoning
"
;
import
onMsgSpSummoning
from
"
./spSummoning
"
;
...
@@ -366,6 +367,11 @@ async function _handleGameMsg(pb: ygopro.YgoStocMsg) {
...
@@ -366,6 +367,11 @@ async function _handleGameMsg(pb: ygopro.YgoStocMsg) {
break
;
break
;
}
}
case
"
sibyl_name
"
:
{
onMsgSibylName
(
msg
.
sibyl_name
);
break
;
}
case
"
unimplemented
"
:
{
case
"
unimplemented
"
:
{
onUnimplemented
(
msg
.
unimplemented
);
onUnimplemented
(
msg
.
unimplemented
);
...
...
src/service/duel/sibylName.ts
0 → 100644
View file @
8839359e
import
{
ygopro
}
from
"
@/api
"
;
type
MsgSibylName
=
ygopro
.
StocGameMessage
.
MsgSibylName
;
export
default
(
sibylName
:
MsgSibylName
)
=>
{
console
.
log
(
sibylName
);
};
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