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
0b982b1f
Commit
0b982b1f
authored
Oct 30, 2022
by
Chunchi Che
Committed by
WANG HE
Dec 23, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update idl/ocgcore.ts
parent
506c14e9
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
441 additions
and
28 deletions
+441
-28
src/api/ocgcore/idl/ocgcore.ts
src/api/ocgcore/idl/ocgcore.ts
+434
-21
src/api/ocgcore/ocgAdapter/ctos/ctosHandResult.ts
src/api/ocgcore/ocgAdapter/ctos/ctosHandResult.ts
+3
-3
src/api/ocgcore/ocgHelper.ts
src/api/ocgcore/ocgHelper.ts
+4
-4
No files found.
src/api/ocgcore/idl/ocgcore.ts
View file @
0b982b1f
This diff is collapsed.
Click to expand it.
src/api/ocgcore/ocgAdapter/ctos/ctosHandResult.ts
View file @
0b982b1f
...
...
@@ -18,17 +18,17 @@ export default class CtosHandResultPacket extends ygoProPacket {
const
dataView
=
new
DataView
(
exData
.
buffer
);
switch
(
hand
)
{
case
ygopro
.
CtosHandResult
.
HandType
.
SCISSORS
:
{
case
ygopro
.
HandType
.
SCISSORS
:
{
dataView
.
setUint8
(
0
,
1
);
break
;
}
case
ygopro
.
CtosHandResult
.
HandType
.
ROCK
:
{
case
ygopro
.
HandType
.
ROCK
:
{
dataView
.
setUint8
(
0
,
2
);
break
;
}
case
ygopro
.
CtosHandResult
.
HandType
.
PAPER
:
{
case
ygopro
.
HandType
.
PAPER
:
{
dataView
.
setUint8
(
0
,
3
);
break
;
...
...
src/api/ocgcore/ocgHelper.ts
View file @
0b982b1f
...
...
@@ -70,13 +70,13 @@ export function sendJoinGame(ws: WebSocket, version: number, passWd: string) {
}
export
function
sendHandResult
(
result
:
string
)
{
let
hand
=
ygopro
.
CtosHandResult
.
HandType
.
UNKNOWN
;
let
hand
=
ygopro
.
HandType
.
UNKNOWN
;
if
(
result
===
"
scissors
"
)
{
hand
=
ygopro
.
CtosHandResult
.
HandType
.
SCISSORS
;
hand
=
ygopro
.
HandType
.
SCISSORS
;
}
else
if
(
result
===
"
rock
"
)
{
hand
=
ygopro
.
CtosHandResult
.
HandType
.
ROCK
;
hand
=
ygopro
.
HandType
.
ROCK
;
}
else
if
(
result
===
"
paper
"
)
{
hand
=
ygopro
.
CtosHandResult
.
HandType
.
PAPER
;
hand
=
ygopro
.
HandType
.
PAPER
;
}
const
handResult
=
new
ygopro
.
YgoCtosMsg
({
...
...
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