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
a48d933c
Commit
a48d933c
authored
Dec 05, 2022
by
Chunchi Che
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add some log
parent
4d9570c2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
src/api/ocgcore/ocgAdapter/stoc/stocGameMsg/selectIdleCmd.ts
src/api/ocgcore/ocgAdapter/stoc/stocGameMsg/selectIdleCmd.ts
+9
-6
No files found.
src/api/ocgcore/ocgAdapter/stoc/stocGameMsg/selectIdleCmd.ts
View file @
a48d933c
...
@@ -18,7 +18,7 @@ export default (data: Uint8Array) => {
...
@@ -18,7 +18,7 @@ export default (data: Uint8Array) => {
const
msg
=
new
MsgSelectIdleCmd
({});
const
msg
=
new
MsgSelectIdleCmd
({});
msg
.
player
=
reader
.
readUint8
();
msg
.
player
=
reader
.
readUint8
();
//
summon
//
通常召唤
const
summonCmd
=
new
MsgSelectIdleCmd
.
IdleCmd
({
const
summonCmd
=
new
MsgSelectIdleCmd
.
IdleCmd
({
idle_type
:
MsgSelectIdleCmd
.
IdleCmd
.
IdleType
.
SUMMON
,
idle_type
:
MsgSelectIdleCmd
.
IdleCmd
.
IdleType
.
SUMMON
,
idle_datas
:
[],
idle_datas
:
[],
...
@@ -31,7 +31,7 @@ export default (data: Uint8Array) => {
...
@@ -31,7 +31,7 @@ export default (data: Uint8Array) => {
summonCmd
.
idle_datas
.
push
(
idleData
);
summonCmd
.
idle_datas
.
push
(
idleData
);
}
}
//
spsummon
//
特殊召唤
const
spSummonCmd
=
new
MsgSelectIdleCmd
.
IdleCmd
({
const
spSummonCmd
=
new
MsgSelectIdleCmd
.
IdleCmd
({
idle_type
:
MsgSelectIdleCmd
.
IdleCmd
.
IdleType
.
SPSUMMON
,
idle_type
:
MsgSelectIdleCmd
.
IdleCmd
.
IdleType
.
SPSUMMON
,
idle_datas
:
[],
idle_datas
:
[],
...
@@ -44,7 +44,7 @@ export default (data: Uint8Array) => {
...
@@ -44,7 +44,7 @@ export default (data: Uint8Array) => {
spSummonCmd
.
idle_datas
.
push
(
idleData
);
spSummonCmd
.
idle_datas
.
push
(
idleData
);
}
}
//
pos change
//
表示形式改变
const
posChangeCmd
=
new
MsgSelectIdleCmd
.
IdleCmd
({
const
posChangeCmd
=
new
MsgSelectIdleCmd
.
IdleCmd
({
idle_type
:
MsgSelectIdleCmd
.
IdleCmd
.
IdleType
.
POS_CHANGE
,
idle_type
:
MsgSelectIdleCmd
.
IdleCmd
.
IdleType
.
POS_CHANGE
,
idle_datas
:
[],
idle_datas
:
[],
...
@@ -57,7 +57,7 @@ export default (data: Uint8Array) => {
...
@@ -57,7 +57,7 @@ export default (data: Uint8Array) => {
posChangeCmd
.
idle_datas
.
push
(
idleData
);
posChangeCmd
.
idle_datas
.
push
(
idleData
);
}
}
//
mset
//
前场放置
const
mSetCmd
=
new
MsgSelectIdleCmd
.
IdleCmd
({
const
mSetCmd
=
new
MsgSelectIdleCmd
.
IdleCmd
({
idle_type
:
MsgSelectIdleCmd
.
IdleCmd
.
IdleType
.
MSET
,
idle_type
:
MsgSelectIdleCmd
.
IdleCmd
.
IdleType
.
MSET
,
idle_datas
:
[],
idle_datas
:
[],
...
@@ -70,7 +70,7 @@ export default (data: Uint8Array) => {
...
@@ -70,7 +70,7 @@ export default (data: Uint8Array) => {
mSetCmd
.
idle_datas
.
push
(
idleData
);
mSetCmd
.
idle_datas
.
push
(
idleData
);
}
}
//
sset
//
后场放置
const
sSetCmd
=
new
MsgSelectIdleCmd
.
IdleCmd
({
const
sSetCmd
=
new
MsgSelectIdleCmd
.
IdleCmd
({
idle_type
:
MsgSelectIdleCmd
.
IdleCmd
.
IdleType
.
SSET
,
idle_type
:
MsgSelectIdleCmd
.
IdleCmd
.
IdleType
.
SSET
,
idle_datas
:
[],
idle_datas
:
[],
...
@@ -83,7 +83,7 @@ export default (data: Uint8Array) => {
...
@@ -83,7 +83,7 @@ export default (data: Uint8Array) => {
sSetCmd
.
idle_datas
.
push
(
idleData
);
sSetCmd
.
idle_datas
.
push
(
idleData
);
}
}
//
activate
//
发动效果/灵摆发动
const
activateCmd
=
new
MsgSelectIdleCmd
.
IdleCmd
({
const
activateCmd
=
new
MsgSelectIdleCmd
.
IdleCmd
({
idle_type
:
MsgSelectIdleCmd
.
IdleCmd
.
IdleType
.
ACTIVATE
,
idle_type
:
MsgSelectIdleCmd
.
IdleCmd
.
IdleType
.
ACTIVATE
,
idle_datas
:
[],
idle_datas
:
[],
...
@@ -106,8 +106,11 @@ export default (data: Uint8Array) => {
...
@@ -106,8 +106,11 @@ export default (data: Uint8Array) => {
activateCmd
,
activateCmd
,
];
];
// 进入战斗阶段
msg
.
enable_bp
=
reader
.
readUint8
()
===
1
;
msg
.
enable_bp
=
reader
.
readUint8
()
===
1
;
// 结束回合
msg
.
enable_ep
=
reader
.
readUint8
()
===
1
;
msg
.
enable_ep
=
reader
.
readUint8
()
===
1
;
// 切洗手牌
msg
.
enable_shuffle
=
reader
.
readUint8
()
===
1
;
msg
.
enable_shuffle
=
reader
.
readUint8
()
===
1
;
return
msg
;
return
msg
;
...
...
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