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
ecb486fb
Commit
ecb486fb
authored
Oct 30, 2022
by
Chunchi Che
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update idl/ocgcore.ts
parent
621b7342
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 @
ecb486fb
This diff is collapsed.
Click to expand it.
src/api/ocgcore/ocgAdapter/ctos/ctosHandResult.ts
View file @
ecb486fb
...
@@ -18,17 +18,17 @@ export default class CtosHandResultPacket extends ygoProPacket {
...
@@ -18,17 +18,17 @@ export default class CtosHandResultPacket extends ygoProPacket {
const
dataView
=
new
DataView
(
exData
.
buffer
);
const
dataView
=
new
DataView
(
exData
.
buffer
);
switch
(
hand
)
{
switch
(
hand
)
{
case
ygopro
.
CtosHandResult
.
HandType
.
SCISSORS
:
{
case
ygopro
.
HandType
.
SCISSORS
:
{
dataView
.
setUint8
(
0
,
1
);
dataView
.
setUint8
(
0
,
1
);
break
;
break
;
}
}
case
ygopro
.
CtosHandResult
.
HandType
.
ROCK
:
{
case
ygopro
.
HandType
.
ROCK
:
{
dataView
.
setUint8
(
0
,
2
);
dataView
.
setUint8
(
0
,
2
);
break
;
break
;
}
}
case
ygopro
.
CtosHandResult
.
HandType
.
PAPER
:
{
case
ygopro
.
HandType
.
PAPER
:
{
dataView
.
setUint8
(
0
,
3
);
dataView
.
setUint8
(
0
,
3
);
break
;
break
;
...
...
src/api/ocgcore/ocgHelper.ts
View file @
ecb486fb
...
@@ -70,13 +70,13 @@ export function sendJoinGame(ws: WebSocket, version: number, passWd: string) {
...
@@ -70,13 +70,13 @@ export function sendJoinGame(ws: WebSocket, version: number, passWd: string) {
}
}
export
function
sendHandResult
(
result
:
string
)
{
export
function
sendHandResult
(
result
:
string
)
{
let
hand
=
ygopro
.
CtosHandResult
.
HandType
.
UNKNOWN
;
let
hand
=
ygopro
.
HandType
.
UNKNOWN
;
if
(
result
===
"
scissors
"
)
{
if
(
result
===
"
scissors
"
)
{
hand
=
ygopro
.
CtosHandResult
.
HandType
.
SCISSORS
;
hand
=
ygopro
.
HandType
.
SCISSORS
;
}
else
if
(
result
===
"
rock
"
)
{
}
else
if
(
result
===
"
rock
"
)
{
hand
=
ygopro
.
CtosHandResult
.
HandType
.
ROCK
;
hand
=
ygopro
.
HandType
.
ROCK
;
}
else
if
(
result
===
"
paper
"
)
{
}
else
if
(
result
===
"
paper
"
)
{
hand
=
ygopro
.
CtosHandResult
.
HandType
.
PAPER
;
hand
=
ygopro
.
HandType
.
PAPER
;
}
}
const
handResult
=
new
ygopro
.
YgoCtosMsg
({
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