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
f311f92e
Commit
f311f92e
authored
Oct 30, 2022
by
Chunchi Che
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update idl/ocgcore.ts
parent
eebf7ebd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
150 additions
and
3 deletions
+150
-3
src/api/ocgcore/idl/ocgcore.ts
src/api/ocgcore/idl/ocgcore.ts
+150
-3
No files found.
src/api/ocgcore/idl/ocgcore.ts
View file @
f311f92e
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
import
*
as
pb_1
from
"
google-protobuf
"
;
import
*
as
pb_1
from
"
google-protobuf
"
;
export
namespace
ygopro
{
export
namespace
ygopro
{
export
class
YgoCtosMsg
extends
pb_1
.
Message
{
export
class
YgoCtosMsg
extends
pb_1
.
Message
{
#
one_of_decls
:
number
[][]
=
[[
1
,
2
,
3
,
4
,
5
,
6
]];
#
one_of_decls
:
number
[][]
=
[[
1
,
2
,
3
,
4
,
5
,
6
,
7
]];
constructor
(
constructor
(
data
?:
data
?:
|
any
[]
|
any
[]
...
@@ -18,6 +18,7 @@ export namespace ygopro {
...
@@ -18,6 +18,7 @@ export namespace ygopro {
ctos_hs_ready
?:
never
;
ctos_hs_ready
?:
never
;
ctos_hs_start
?:
never
;
ctos_hs_start
?:
never
;
ctos_hs_not_ready
?:
never
;
ctos_hs_not_ready
?:
never
;
ctos_hand_result
?:
never
;
}
}
|
{
|
{
ctos_player_info
?:
never
;
ctos_player_info
?:
never
;
...
@@ -26,6 +27,7 @@ export namespace ygopro {
...
@@ -26,6 +27,7 @@ export namespace ygopro {
ctos_hs_ready
?:
never
;
ctos_hs_ready
?:
never
;
ctos_hs_start
?:
never
;
ctos_hs_start
?:
never
;
ctos_hs_not_ready
?:
never
;
ctos_hs_not_ready
?:
never
;
ctos_hand_result
?:
never
;
}
}
|
{
|
{
ctos_player_info
?:
never
;
ctos_player_info
?:
never
;
...
@@ -34,6 +36,7 @@ export namespace ygopro {
...
@@ -34,6 +36,7 @@ export namespace ygopro {
ctos_hs_ready
?:
never
;
ctos_hs_ready
?:
never
;
ctos_hs_start
?:
never
;
ctos_hs_start
?:
never
;
ctos_hs_not_ready
?:
never
;
ctos_hs_not_ready
?:
never
;
ctos_hand_result
?:
never
;
}
}
|
{
|
{
ctos_player_info
?:
never
;
ctos_player_info
?:
never
;
...
@@ -42,6 +45,7 @@ export namespace ygopro {
...
@@ -42,6 +45,7 @@ export namespace ygopro {
ctos_hs_ready
?:
CtosHsReady
;
ctos_hs_ready
?:
CtosHsReady
;
ctos_hs_start
?:
never
;
ctos_hs_start
?:
never
;
ctos_hs_not_ready
?:
never
;
ctos_hs_not_ready
?:
never
;
ctos_hand_result
?:
never
;
}
}
|
{
|
{
ctos_player_info
?:
never
;
ctos_player_info
?:
never
;
...
@@ -50,6 +54,7 @@ export namespace ygopro {
...
@@ -50,6 +54,7 @@ export namespace ygopro {
ctos_hs_ready
?:
never
;
ctos_hs_ready
?:
never
;
ctos_hs_start
?:
CtosHsStart
;
ctos_hs_start
?:
CtosHsStart
;
ctos_hs_not_ready
?:
never
;
ctos_hs_not_ready
?:
never
;
ctos_hand_result
?:
never
;
}
}
|
{
|
{
ctos_player_info
?:
never
;
ctos_player_info
?:
never
;
...
@@ -58,6 +63,16 @@ export namespace ygopro {
...
@@ -58,6 +63,16 @@ export namespace ygopro {
ctos_hs_ready
?:
never
;
ctos_hs_ready
?:
never
;
ctos_hs_start
?:
never
;
ctos_hs_start
?:
never
;
ctos_hs_not_ready
?:
CtosHsNotReady
;
ctos_hs_not_ready
?:
CtosHsNotReady
;
ctos_hand_result
?:
never
;
}
|
{
ctos_player_info
?:
never
;
ctos_join_game
?:
never
;
ctos_update_deck
?:
never
;
ctos_hs_ready
?:
never
;
ctos_hs_start
?:
never
;
ctos_hs_not_ready
?:
never
;
ctos_hand_result
?:
CtosHandResult
;
}
}
))
))
)
{
)
{
...
@@ -92,6 +107,9 @@ export namespace ygopro {
...
@@ -92,6 +107,9 @@ export namespace ygopro {
)
{
)
{
this
.
ctos_hs_not_ready
=
data
.
ctos_hs_not_ready
;
this
.
ctos_hs_not_ready
=
data
.
ctos_hs_not_ready
;
}
}
if
(
"
ctos_hand_result
"
in
data
&&
data
.
ctos_hand_result
!=
undefined
)
{
this
.
ctos_hand_result
=
data
.
ctos_hand_result
;
}
}
}
}
}
get
ctos_player_info
()
{
get
ctos_player_info
()
{
...
@@ -164,6 +182,19 @@ export namespace ygopro {
...
@@ -164,6 +182,19 @@ export namespace ygopro {
get
has_ctos_hs_not_ready
()
{
get
has_ctos_hs_not_ready
()
{
return
pb_1
.
Message
.
getField
(
this
,
6
)
!=
null
;
return
pb_1
.
Message
.
getField
(
this
,
6
)
!=
null
;
}
}
get
ctos_hand_result
()
{
return
pb_1
.
Message
.
getWrapperField
(
this
,
CtosHandResult
,
7
)
as
CtosHandResult
;
}
set
ctos_hand_result
(
value
:
CtosHandResult
)
{
pb_1
.
Message
.
setOneofWrapperField
(
this
,
7
,
this
.
#
one_of_decls
[
0
],
value
);
}
get
has_ctos_hand_result
()
{
return
pb_1
.
Message
.
getField
(
this
,
7
)
!=
null
;
}
get
msg
()
{
get
msg
()
{
const
cases
:
{
const
cases
:
{
[
index
:
number
]:
[
index
:
number
]:
...
@@ -173,7 +204,8 @@ export namespace ygopro {
...
@@ -173,7 +204,8 @@ export namespace ygopro {
|
"
ctos_update_deck
"
|
"
ctos_update_deck
"
|
"
ctos_hs_ready
"
|
"
ctos_hs_ready
"
|
"
ctos_hs_start
"
|
"
ctos_hs_start
"
|
"
ctos_hs_not_ready
"
;
|
"
ctos_hs_not_ready
"
|
"
ctos_hand_result
"
;
}
=
{
}
=
{
0
:
"
none
"
,
0
:
"
none
"
,
1
:
"
ctos_player_info
"
,
1
:
"
ctos_player_info
"
,
...
@@ -182,8 +214,9 @@ export namespace ygopro {
...
@@ -182,8 +214,9 @@ export namespace ygopro {
4
:
"
ctos_hs_ready
"
,
4
:
"
ctos_hs_ready
"
,
5
:
"
ctos_hs_start
"
,
5
:
"
ctos_hs_start
"
,
6
:
"
ctos_hs_not_ready
"
,
6
:
"
ctos_hs_not_ready
"
,
7
:
"
ctos_hand_result
"
,
};
};
return
cases
[
pb_1
.
Message
.
computeOneofCase
(
this
,
[
1
,
2
,
3
,
4
,
5
,
6
])];
return
cases
[
pb_1
.
Message
.
computeOneofCase
(
this
,
[
1
,
2
,
3
,
4
,
5
,
6
,
7
])];
}
}
static
fromObject
(
data
:
{
static
fromObject
(
data
:
{
ctos_player_info
?:
ReturnType
<
typeof
CtosPlayerInfo
.
prototype
.
toObject
>
;
ctos_player_info
?:
ReturnType
<
typeof
CtosPlayerInfo
.
prototype
.
toObject
>
;
...
@@ -192,6 +225,7 @@ export namespace ygopro {
...
@@ -192,6 +225,7 @@ export namespace ygopro {
ctos_hs_ready
?:
ReturnType
<
typeof
CtosHsReady
.
prototype
.
toObject
>
;
ctos_hs_ready
?:
ReturnType
<
typeof
CtosHsReady
.
prototype
.
toObject
>
;
ctos_hs_start
?:
ReturnType
<
typeof
CtosHsStart
.
prototype
.
toObject
>
;
ctos_hs_start
?:
ReturnType
<
typeof
CtosHsStart
.
prototype
.
toObject
>
;
ctos_hs_not_ready
?:
ReturnType
<
typeof
CtosHsNotReady
.
prototype
.
toObject
>
;
ctos_hs_not_ready
?:
ReturnType
<
typeof
CtosHsNotReady
.
prototype
.
toObject
>
;
ctos_hand_result
?:
ReturnType
<
typeof
CtosHandResult
.
prototype
.
toObject
>
;
}):
YgoCtosMsg
{
}):
YgoCtosMsg
{
const
message
=
new
YgoCtosMsg
({});
const
message
=
new
YgoCtosMsg
({});
if
(
data
.
ctos_player_info
!=
null
)
{
if
(
data
.
ctos_player_info
!=
null
)
{
...
@@ -218,6 +252,11 @@ export namespace ygopro {
...
@@ -218,6 +252,11 @@ export namespace ygopro {
data
.
ctos_hs_not_ready
data
.
ctos_hs_not_ready
);
);
}
}
if
(
data
.
ctos_hand_result
!=
null
)
{
message
.
ctos_hand_result
=
CtosHandResult
.
fromObject
(
data
.
ctos_hand_result
);
}
return
message
;
return
message
;
}
}
toObject
()
{
toObject
()
{
...
@@ -230,6 +269,7 @@ export namespace ygopro {
...
@@ -230,6 +269,7 @@ export namespace ygopro {
ctos_hs_not_ready
?:
ReturnType
<
ctos_hs_not_ready
?:
ReturnType
<
typeof
CtosHsNotReady
.
prototype
.
toObject
typeof
CtosHsNotReady
.
prototype
.
toObject
>
;
>
;
ctos_hand_result
?:
ReturnType
<
typeof
CtosHandResult
.
prototype
.
toObject
>
;
}
=
{};
}
=
{};
if
(
this
.
ctos_player_info
!=
null
)
{
if
(
this
.
ctos_player_info
!=
null
)
{
data
.
ctos_player_info
=
this
.
ctos_player_info
.
toObject
();
data
.
ctos_player_info
=
this
.
ctos_player_info
.
toObject
();
...
@@ -249,6 +289,9 @@ export namespace ygopro {
...
@@ -249,6 +289,9 @@ export namespace ygopro {
if
(
this
.
ctos_hs_not_ready
!=
null
)
{
if
(
this
.
ctos_hs_not_ready
!=
null
)
{
data
.
ctos_hs_not_ready
=
this
.
ctos_hs_not_ready
.
toObject
();
data
.
ctos_hs_not_ready
=
this
.
ctos_hs_not_ready
.
toObject
();
}
}
if
(
this
.
ctos_hand_result
!=
null
)
{
data
.
ctos_hand_result
=
this
.
ctos_hand_result
.
toObject
();
}
return
data
;
return
data
;
}
}
serialize
():
Uint8Array
;
serialize
():
Uint8Array
;
...
@@ -279,6 +322,10 @@ export namespace ygopro {
...
@@ -279,6 +322,10 @@ export namespace ygopro {
writer
.
writeMessage
(
6
,
this
.
ctos_hs_not_ready
,
()
=>
writer
.
writeMessage
(
6
,
this
.
ctos_hs_not_ready
,
()
=>
this
.
ctos_hs_not_ready
.
serialize
(
writer
)
this
.
ctos_hs_not_ready
.
serialize
(
writer
)
);
);
if
(
this
.
has_ctos_hand_result
)
writer
.
writeMessage
(
7
,
this
.
ctos_hand_result
,
()
=>
this
.
ctos_hand_result
.
serialize
(
writer
)
);
if
(
!
w
)
return
writer
.
getResultBuffer
();
if
(
!
w
)
return
writer
.
getResultBuffer
();
}
}
static
deserialize
(
bytes
:
Uint8Array
|
pb_1
.
BinaryReader
):
YgoCtosMsg
{
static
deserialize
(
bytes
:
Uint8Array
|
pb_1
.
BinaryReader
):
YgoCtosMsg
{
...
@@ -329,6 +376,13 @@ export namespace ygopro {
...
@@ -329,6 +376,13 @@ export namespace ygopro {
(
message
.
ctos_hs_not_ready
=
CtosHsNotReady
.
deserialize
(
reader
))
(
message
.
ctos_hs_not_ready
=
CtosHsNotReady
.
deserialize
(
reader
))
);
);
break
;
break
;
case
7
:
reader
.
readMessage
(
message
.
ctos_hand_result
,
()
=>
(
message
.
ctos_hand_result
=
CtosHandResult
.
deserialize
(
reader
))
);
break
;
default
:
default
:
reader
.
skipField
();
reader
.
skipField
();
}
}
...
@@ -1238,6 +1292,99 @@ export namespace ygopro {
...
@@ -1238,6 +1292,99 @@ export namespace ygopro {
return
CtosHsStart
.
deserialize
(
bytes
);
return
CtosHsStart
.
deserialize
(
bytes
);
}
}
}
}
export
class
CtosHandResult
extends
pb_1
.
Message
{
#
one_of_decls
:
number
[][]
=
[];
constructor
(
data
?:
|
any
[]
|
{
hand
?:
CtosHandResult
.
HandType
;
}
)
{
super
();
pb_1
.
Message
.
initialize
(
this
,
Array
.
isArray
(
data
)
?
data
:
[],
0
,
-
1
,
[],
this
.
#
one_of_decls
);
if
(
!
Array
.
isArray
(
data
)
&&
typeof
data
==
"
object
"
)
{
if
(
"
hand
"
in
data
&&
data
.
hand
!=
undefined
)
{
this
.
hand
=
data
.
hand
;
}
}
}
get
hand
()
{
return
pb_1
.
Message
.
getFieldWithDefault
(
this
,
1
,
CtosHandResult
.
HandType
.
UNKNOWN
)
as
CtosHandResult
.
HandType
;
}
set
hand
(
value
:
CtosHandResult
.
HandType
)
{
pb_1
.
Message
.
setField
(
this
,
1
,
value
);
}
static
fromObject
(
data
:
{
hand
?:
CtosHandResult
.
HandType
;
}):
CtosHandResult
{
const
message
=
new
CtosHandResult
({});
if
(
data
.
hand
!=
null
)
{
message
.
hand
=
data
.
hand
;
}
return
message
;
}
toObject
()
{
const
data
:
{
hand
?:
CtosHandResult
.
HandType
;
}
=
{};
if
(
this
.
hand
!=
null
)
{
data
.
hand
=
this
.
hand
;
}
return
data
;
}
serialize
():
Uint8Array
;
serialize
(
w
:
pb_1
.
BinaryWriter
):
void
;
serialize
(
w
?:
pb_1
.
BinaryWriter
):
Uint8Array
|
void
{
const
writer
=
w
||
new
pb_1
.
BinaryWriter
();
if
(
this
.
hand
!=
CtosHandResult
.
HandType
.
UNKNOWN
)
writer
.
writeEnum
(
1
,
this
.
hand
);
if
(
!
w
)
return
writer
.
getResultBuffer
();
}
static
deserialize
(
bytes
:
Uint8Array
|
pb_1
.
BinaryReader
):
CtosHandResult
{
const
reader
=
bytes
instanceof
pb_1
.
BinaryReader
?
bytes
:
new
pb_1
.
BinaryReader
(
bytes
),
message
=
new
CtosHandResult
();
while
(
reader
.
nextField
())
{
if
(
reader
.
isEndGroup
())
break
;
switch
(
reader
.
getFieldNumber
())
{
case
1
:
message
.
hand
=
reader
.
readEnum
();
break
;
default
:
reader
.
skipField
();
}
}
return
message
;
}
serializeBinary
():
Uint8Array
{
return
this
.
serialize
();
}
static
deserializeBinary
(
bytes
:
Uint8Array
):
CtosHandResult
{
return
CtosHandResult
.
deserialize
(
bytes
);
}
}
export
namespace
CtosHandResult
{
export
enum
HandType
{
UNKNOWN
=
0
,
SCISSORS
=
1
,
ROCK
=
2
,
PAPER
=
3
,
}
}
export
class
StocJoinGame
extends
pb_1
.
Message
{
export
class
StocJoinGame
extends
pb_1
.
Message
{
#
one_of_decls
:
number
[][]
=
[];
#
one_of_decls
:
number
[][]
=
[];
constructor
(
constructor
(
...
...
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