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
4b297bd7
Commit
4b297bd7
authored
Dec 03, 2022
by
Chunchi Che
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'fix/hint' into 'main'
Fix/hint See merge request
mycard/Neos!31
parents
30d1301e
f70acc53
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
20 deletions
+23
-20
neos-protobuf
neos-protobuf
+1
-1
src/api/ocgcore/idl/ocgcore.ts
src/api/ocgcore/idl/ocgcore.ts
+11
-6
src/api/ocgcore/ocgAdapter/stoc/stocGameMsg/hint.ts
src/api/ocgcore/ocgAdapter/stoc/stocGameMsg/hint.ts
+11
-11
src/service/duel/gameMsg.ts
src/service/duel/gameMsg.ts
+0
-2
No files found.
neos-protobuf
@
c82314ef
Subproject commit
b1387888e6e895e186f5dde1ff986f11305a3b84
Subproject commit
c82314ef6ac387733ce4578acec555bf07786249
src/api/ocgcore/idl/ocgcore.ts
View file @
4b297bd7
...
...
@@ -4050,12 +4050,17 @@ export namespace ygopro {
export
namespace
MsgHint
{
export
enum
HintType
{
UNKNOWN
=
0
,
SELECT_LOCATION
=
1
,
SELECT_EFFECT
=
2
,
SELECT_RACE
=
3
,
SELECT_ATTRIBUTE
=
4
,
SELECT_NUMBER
=
5
,
SELECT_REGION
=
6
,
HINT_EVENT
=
1
,
HINT_MESSAGE
=
2
,
HINT_SELECTMSG
=
3
,
HINT_OPSELECTED
=
4
,
HINT_EFFECT
=
5
,
HINT_RACE
=
6
,
HINT_ATTRIB
=
7
,
HINT_CODE
=
8
,
HINT_NUMBER
=
9
,
HINT_CARD
=
10
,
HINT_ZONE
=
11
,
}
}
}
...
...
src/api/ocgcore/ocgAdapter/stoc/stocGameMsg/hint.ts
View file @
4b297bd7
...
...
@@ -23,57 +23,57 @@ export default (data: Uint8Array) => {
let
hintType
=
ygopro
.
StocGameMessage
.
MsgHint
.
HintType
.
UNKNOWN
;
switch
(
hintCommand
)
{
case
0x01
:
{
// TODO
hintType
=
ygopro
.
StocGameMessage
.
MsgHint
.
HintType
.
HINT_EVENT
;
break
;
}
case
0x02
:
{
// TODO
hintType
=
ygopro
.
StocGameMessage
.
MsgHint
.
HintType
.
HINT_MESSAGE
;
break
;
}
case
0x03
:
{
hintType
=
ygopro
.
StocGameMessage
.
MsgHint
.
HintType
.
SELECT_LOCATION
;
hintType
=
ygopro
.
StocGameMessage
.
MsgHint
.
HintType
.
HINT_SELECTMSG
;
break
;
}
case
0x04
:
{
hintType
=
ygopro
.
StocGameMessage
.
MsgHint
.
HintType
.
SELECT_EFFECT
;
hintType
=
ygopro
.
StocGameMessage
.
MsgHint
.
HintType
.
HINT_OPSELECTED
;
break
;
}
case
0x05
:
{
// TODO
hintType
=
ygopro
.
StocGameMessage
.
MsgHint
.
HintType
.
HINT_EFFECT
;
break
;
}
case
0x06
:
{
hintType
=
ygopro
.
StocGameMessage
.
MsgHint
.
HintType
.
SELEC
T_RACE
;
hintType
=
ygopro
.
StocGameMessage
.
MsgHint
.
HintType
.
HIN
T_RACE
;
break
;
}
case
0x07
:
{
hintType
=
ygopro
.
StocGameMessage
.
MsgHint
.
HintType
.
SELECT_ATTRIBUTE
;
hintType
=
ygopro
.
StocGameMessage
.
MsgHint
.
HintType
.
HINT_ATTRIB
;
break
;
}
case
0x08
:
{
// TODO
hintType
=
ygopro
.
StocGameMessage
.
MsgHint
.
HintType
.
HINT_CODE
;
break
;
}
case
0x09
:
{
hintType
=
ygopro
.
StocGameMessage
.
MsgHint
.
HintType
.
SELEC
T_NUMBER
;
hintType
=
ygopro
.
StocGameMessage
.
MsgHint
.
HintType
.
HIN
T_NUMBER
;
break
;
}
case
0x0a
:
{
// TODO
hintType
=
ygopro
.
StocGameMessage
.
MsgHint
.
HintType
.
HINT_CARD
;
break
;
}
case
0x0b
:
{
hintType
=
ygopro
.
StocGameMessage
.
MsgHint
.
HintType
.
SELECT_REGION
;
hintType
=
ygopro
.
StocGameMessage
.
MsgHint
.
HintType
.
HINT_ZONE
;
break
;
}
...
...
src/service/duel/gameMsg.ts
View file @
4b297bd7
...
...
@@ -47,8 +47,6 @@ export default function handleGameMsg(pb: ygopro.YgoStocMsg) {
break
;
}
default
:
{
console
.
log
(
"
Unhandled GameMsg=
"
+
msg
.
gameMsg
);
break
;
}
}
...
...
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