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
4525f1bb
Commit
4525f1bb
authored
Aug 07, 2023
by
Chunchi Che
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
impl sendHsNotReady
parent
232502b5
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
1 deletion
+22
-1
src/api/ocgcore/ocgAdapter/ctos/ctosHsNotReady.ts
src/api/ocgcore/ocgAdapter/ctos/ctosHsNotReady.ts
+14
-0
src/api/ocgcore/ocgAdapter/protoDecl.ts
src/api/ocgcore/ocgAdapter/protoDecl.ts
+1
-0
src/api/ocgcore/ocgHelper.ts
src/api/ocgcore/ocgHelper.ts
+7
-1
No files found.
src/api/ocgcore/ocgAdapter/ctos/ctosHsNotReady.ts
0 → 100644
View file @
4525f1bb
import
{
ygopro
}
from
"
../../idl/ocgcore
"
;
import
{
YgoProPacket
}
from
"
../packet
"
;
import
{
CTOS_HS_NOT_READY
}
from
"
../protoDecl
"
;
/*
* CTOS HsReady
*
* @usage - 告诉ygopro服务端当前玩家准备完毕
* */
export
default
class
CtosHsReady
extends
YgoProPacket
{
constructor
(
_
:
ygopro
.
YgoCtosMsg
)
{
super
(
1
,
CTOS_HS_NOT_READY
,
new
Uint8Array
(
0
));
}
}
src/api/ocgcore/ocgAdapter/protoDecl.ts
View file @
4525f1bb
...
@@ -6,6 +6,7 @@ export const CTOS_PLAYER_INFO = 16;
...
@@ -6,6 +6,7 @@ export const CTOS_PLAYER_INFO = 16;
export
const
CTOS_JOIN_GAME
=
18
;
export
const
CTOS_JOIN_GAME
=
18
;
export
const
CTOS_UPDATE_DECK
=
2
;
export
const
CTOS_UPDATE_DECK
=
2
;
export
const
CTOS_HS_READY
=
34
;
export
const
CTOS_HS_READY
=
34
;
export
const
CTOS_HS_NOT_READY
=
35
;
export
const
CTOS_HS_START
=
37
;
export
const
CTOS_HS_START
=
37
;
export
const
CTOS_HAND_RESULT
=
3
;
export
const
CTOS_HAND_RESULT
=
3
;
export
const
CTOS_TP_RESULT
=
4
;
export
const
CTOS_TP_RESULT
=
4
;
...
...
src/api/ocgcore/ocgHelper.ts
View file @
4525f1bb
...
@@ -9,6 +9,7 @@ import { ygopro } from "./idl/ocgcore";
...
@@ -9,6 +9,7 @@ import { ygopro } from "./idl/ocgcore";
import
Chat
from
"
./ocgAdapter/ctos/ctosChat
"
;
import
Chat
from
"
./ocgAdapter/ctos/ctosChat
"
;
import
GameMsgResponse
from
"
./ocgAdapter/ctos/ctosGameMsgResponse/mod
"
;
import
GameMsgResponse
from
"
./ocgAdapter/ctos/ctosGameMsgResponse/mod
"
;
import
HandResult
from
"
./ocgAdapter/ctos/ctosHandResult
"
;
import
HandResult
from
"
./ocgAdapter/ctos/ctosHandResult
"
;
import
HsNotReadyAdapter
from
"
./ocgAdapter/ctos/ctosHsNotReady
"
;
import
HsReadyAdapter
from
"
./ocgAdapter/ctos/ctosHsReady
"
;
import
HsReadyAdapter
from
"
./ocgAdapter/ctos/ctosHsReady
"
;
import
HsStartAdapter
from
"
./ocgAdapter/ctos/ctosHsStart
"
;
import
HsStartAdapter
from
"
./ocgAdapter/ctos/ctosHsStart
"
;
import
JoinGameAdapter
from
"
./ocgAdapter/ctos/ctosJoinGame
"
;
import
JoinGameAdapter
from
"
./ocgAdapter/ctos/ctosJoinGame
"
;
...
@@ -43,7 +44,12 @@ export function sendHsReady() {
...
@@ -43,7 +44,12 @@ export function sendHsReady() {
}
}
export
function
sendHsNotReady
()
{
export
function
sendHsNotReady
()
{
// TODO
const
hasNotReady
=
new
ygopro
.
YgoCtosMsg
({
ctos_hs_not_ready
:
new
ygopro
.
CtosHsNotReady
({}),
});
const
payload
=
new
HsNotReadyAdapter
(
hasNotReady
).
serialize
();
socketMiddleWare
({
cmd
:
socketCmd
.
SEND
,
payload
});
}
}
export
function
sendHsStart
()
{
export
function
sendHsStart
()
{
...
...
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