Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
S
srvpro-types
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
MyCard
srvpro-types
Commits
858911d9
Commit
858911d9
authored
Oct 16, 2021
by
Sophia
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add rooms
parent
9e525899
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
38 additions
and
0 deletions
+38
-0
index.d.ts
index.d.ts
+38
-0
No files found.
index.d.ts
View file @
858911d9
...
@@ -80,6 +80,42 @@ interface YGOProMessagesHelperInstance {
...
@@ -80,6 +80,42 @@ interface YGOProMessagesHelperInstance {
handleBuffer
(
messageBuffer
:
Buffer
,
direction
:
string
,
protoFilter
?:
string
[],
params
?:
any
):
Promise
<
HandleResult
>
;
handleBuffer
(
messageBuffer
:
Buffer
,
direction
:
string
,
protoFilter
?:
string
[],
params
?:
any
):
Promise
<
HandleResult
>
;
}
}
interface
Room
{
duel_stage
:
number
;
name
:
string
;
hostinfo
:
{
rule
:
number
;
mode
:
number
;
duel_rule
:
number
;
no_check_deck
:
boolean
;
no_shuffle_deck
:
boolean
;
start_lp
:
number
;
start_hand
:
number
;
draw_count
:
number
;
lflist
:
number
;
time_limit
:
number
;
};
winner_name
:
string
;
scores
:
{
[
userName
:
string
]:
number
};
winnerNames
?:
string
[];
dueling_players
:
Array
<
{
ip
:
string
;
name
:
string
;
lang
:
string
;
pass
:
string
;
join_time
:
moment
.
Moment
;
pos
:
number
;
main
:
number
[];
side
:
number
[];
}
>
;
replays
:
Array
<
Buffer
>
;
arena
?:
"
athletic
"
|
"
entertain
"
;
random_type
?:
string
;
windbot
?:
boolean
;
}
type
Dictionary
<
T
>
=
{
[
key
:
string
]:
T
};
type
Dictionary
<
T
>
=
{
[
key
:
string
]:
T
};
type
ReloadI18NResult
=
{
regex
:
RegExp
;
text
:
string
};
type
ReloadI18NResult
=
{
regex
:
RegExp
;
text
:
string
};
type
FollowHandler
=
(
buffer
:
Buffer
,
info
:
Dictionary
<
any
>
,
client
:
Client
,
server
:
any
,
data
:
Dictionary
<
any
>
)
=>
Promise
<
boolean
>
;
type
FollowHandler
=
(
buffer
:
Buffer
,
info
:
Dictionary
<
any
>
,
client
:
Client
,
server
:
any
,
data
:
Dictionary
<
any
>
)
=>
Promise
<
boolean
>
;
...
@@ -115,3 +151,5 @@ interface YGOPro {
...
@@ -115,3 +151,5 @@ interface YGOPro {
}
}
declare
const
ygopro
:
YGOPro
;
declare
const
ygopro
:
YGOPro
;
declare
const
ROOM_all
:
Array
<
Room
>
;
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