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
7561ebdb
Commit
7561ebdb
authored
Jan 02, 2023
by
Chunchi Che
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sync neos-protobuf
parent
8345efd0
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
38 deletions
+17
-38
neos-protobuf
neos-protobuf
+1
-1
src/api/ocgcore/idl/ocgcore.ts
src/api/ocgcore/idl/ocgcore.ts
+16
-37
No files found.
neos-protobuf
@
07651117
Subproject commit
ce0785c4d31475d9ecf6a400f45b114b66f40b4f
Subproject commit
07651117cd5f99d81740c2419383a88904ba6557
src/api/ocgcore/idl/ocgcore.ts
View file @
7561ebdb
...
@@ -2844,8 +2844,7 @@ export namespace ygopro {
...
@@ -2844,8 +2844,7 @@ export namespace ygopro {
data
?:
data
?:
|
any
[]
|
any
[]
|
{
|
{
count
?:
number
;
selected_ptrs
?:
number
[];
select_ptr
?:
number
[];
}
}
)
{
)
{
super
();
super
();
...
@@ -2854,53 +2853,36 @@ export namespace ygopro {
...
@@ -2854,53 +2853,36 @@ export namespace ygopro {
Array
.
isArray
(
data
)
?
data
:
[],
Array
.
isArray
(
data
)
?
data
:
[],
0
,
0
,
-
1
,
-
1
,
[
2
],
[
1
],
this
.
#
one_of_decls
this
.
#
one_of_decls
);
);
if
(
!
Array
.
isArray
(
data
)
&&
typeof
data
==
"
object
"
)
{
if
(
!
Array
.
isArray
(
data
)
&&
typeof
data
==
"
object
"
)
{
if
(
"
count
"
in
data
&&
data
.
count
!=
undefined
)
{
if
(
"
selected_ptrs
"
in
data
&&
data
.
selected_ptrs
!=
undefined
)
{
this
.
count
=
data
.
count
;
this
.
selected_ptrs
=
data
.
selected_ptrs
;
}
}
if
(
"
select_ptr
"
in
data
&&
data
.
select_ptr
!=
undefined
)
{
this
.
select_ptr
=
data
.
select_ptr
;
}
}
}
}
get
selected_ptrs
()
{
return
pb_1
.
Message
.
getFieldWithDefault
(
this
,
1
,
[])
as
number
[];
}
}
get
count
()
{
set
selected_ptrs
(
value
:
number
[])
{
return
pb_1
.
Message
.
getFieldWithDefault
(
this
,
1
,
0
)
as
number
;
}
set
count
(
value
:
number
)
{
pb_1
.
Message
.
setField
(
this
,
1
,
value
);
pb_1
.
Message
.
setField
(
this
,
1
,
value
);
}
}
get
select_ptr
()
{
return
pb_1
.
Message
.
getFieldWithDefault
(
this
,
2
,
[])
as
number
[];
}
set
select_ptr
(
value
:
number
[])
{
pb_1
.
Message
.
setField
(
this
,
2
,
value
);
}
static
fromObject
(
data
:
{
static
fromObject
(
data
:
{
count
?:
number
;
selected_ptrs
?:
number
[];
select_ptr
?:
number
[];
}):
SelectCardResponse
{
}):
SelectCardResponse
{
const
message
=
new
SelectCardResponse
({});
const
message
=
new
SelectCardResponse
({});
if
(
data
.
count
!=
null
)
{
if
(
data
.
selected_ptrs
!=
null
)
{
message
.
count
=
data
.
count
;
message
.
selected_ptrs
=
data
.
selected_ptrs
;
}
if
(
data
.
select_ptr
!=
null
)
{
message
.
select_ptr
=
data
.
select_ptr
;
}
}
return
message
;
return
message
;
}
}
toObject
()
{
toObject
()
{
const
data
:
{
const
data
:
{
count
?:
number
;
selected_ptrs
?:
number
[];
select_ptr
?:
number
[];
}
=
{};
}
=
{};
if
(
this
.
count
!=
null
)
{
if
(
this
.
selected_ptrs
!=
null
)
{
data
.
count
=
this
.
count
;
data
.
selected_ptrs
=
this
.
selected_ptrs
;
}
if
(
this
.
select_ptr
!=
null
)
{
data
.
select_ptr
=
this
.
select_ptr
;
}
}
return
data
;
return
data
;
}
}
...
@@ -2908,8 +2890,8 @@ export namespace ygopro {
...
@@ -2908,8 +2890,8 @@ export namespace ygopro {
serialize
(
w
:
pb_1
.
BinaryWriter
):
void
;
serialize
(
w
:
pb_1
.
BinaryWriter
):
void
;
serialize
(
w
?:
pb_1
.
BinaryWriter
):
Uint8Array
|
void
{
serialize
(
w
?:
pb_1
.
BinaryWriter
):
Uint8Array
|
void
{
const
writer
=
w
||
new
pb_1
.
BinaryWriter
();
const
writer
=
w
||
new
pb_1
.
BinaryWriter
();
if
(
this
.
count
!=
0
)
writer
.
writeInt32
(
1
,
this
.
count
);
if
(
this
.
selected_ptrs
.
length
)
if
(
this
.
select_ptr
.
length
)
writer
.
writePackedInt32
(
2
,
this
.
select_ptr
);
writer
.
writePackedInt32
(
1
,
this
.
selected_ptrs
);
if
(
!
w
)
return
writer
.
getResultBuffer
();
if
(
!
w
)
return
writer
.
getResultBuffer
();
}
}
static
deserialize
(
static
deserialize
(
...
@@ -2924,10 +2906,7 @@ export namespace ygopro {
...
@@ -2924,10 +2906,7 @@ export namespace ygopro {
if
(
reader
.
isEndGroup
())
break
;
if
(
reader
.
isEndGroup
())
break
;
switch
(
reader
.
getFieldNumber
())
{
switch
(
reader
.
getFieldNumber
())
{
case
1
:
case
1
:
message
.
count
=
reader
.
readInt32
();
message
.
selected_ptrs
=
reader
.
readPackedInt32
();
break
;
case
2
:
message
.
select_ptr
=
reader
.
readPackedInt32
();
break
;
break
;
default
:
default
:
reader
.
skipField
();
reader
.
skipField
();
...
...
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