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
7e7a8e82
Commit
7e7a8e82
authored
Jan 04, 2023
by
chechunchi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sync neos-protobuf
parent
efa1ca7b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
15 deletions
+15
-15
neos-protobuf
neos-protobuf
+1
-1
src/api/ocgcore/idl/ocgcore.ts
src/api/ocgcore/idl/ocgcore.ts
+14
-14
No files found.
neos-protobuf
@
cb96e3b2
Subproject commit
476836fd77f133198c9bb73b4b3587d9917b291a
Subproject commit
cb96e3b24aa5a33e0cc87239434cf3c745cb59b8
src/api/ocgcore/idl/ocgcore.ts
View file @
7e7a8e82
...
...
@@ -6849,7 +6849,7 @@ export namespace ygopro {
|
any
[]
|
{
player
?:
number
;
special
?: boolean
;
special
_count
?:
number
;
forced
?:
boolean
;
hint0
?:
number
;
hint1
?:
number
;
...
...
@@ -6869,8 +6869,8 @@ export namespace ygopro {
if
(
"
player
"
in
data
&&
data
.
player
!=
undefined
)
{
this
.
player
=
data
.
player
;
}
if ("special
" in data && data.special
!= undefined) {
this.special
= data.special
;
if
(
"
special
_count
"
in
data
&&
data
.
special_count
!=
undefined
)
{
this
.
special
_count
=
data
.
special_count
;
}
if
(
"
forced
"
in
data
&&
data
.
forced
!=
undefined
)
{
this
.
forced
=
data
.
forced
;
...
...
@@ -6892,10 +6892,10 @@ export namespace ygopro {
set
player
(
value
:
number
)
{
pb_1
.
Message
.
setField
(
this
,
1
,
value
);
}
get special() {
return pb_1.Message.getFieldWithDefault(this, 2,
false) as boolean
;
get
special
_count
()
{
return
pb_1
.
Message
.
getFieldWithDefault
(
this
,
2
,
0
)
as
number
;
}
set special
(value: boolean
) {
set
special
_count
(
value
:
number
)
{
pb_1
.
Message
.
setField
(
this
,
2
,
value
);
}
get
forced
()
{
...
...
@@ -6928,7 +6928,7 @@ export namespace ygopro {
}
static
fromObject
(
data
:
{
player
?:
number
;
special
?: boolean
;
special
_count
?:
number
;
forced
?:
boolean
;
hint0
?:
number
;
hint1
?:
number
;
...
...
@@ -6940,8 +6940,8 @@ export namespace ygopro {
if
(
data
.
player
!=
null
)
{
message
.
player
=
data
.
player
;
}
if (data.special != null) {
message.special
= data.special
;
if
(
data
.
special
_count
!=
null
)
{
message
.
special
_count
=
data
.
special_count
;
}
if
(
data
.
forced
!=
null
)
{
message
.
forced
=
data
.
forced
;
...
...
@@ -6962,7 +6962,7 @@ export namespace ygopro {
toObject
()
{
const
data
:
{
player
?:
number
;
special
?: boolean
;
special
_count
?:
number
;
forced
?:
boolean
;
hint0
?:
number
;
hint1
?:
number
;
...
...
@@ -6973,8 +6973,8 @@ export namespace ygopro {
if
(
this
.
player
!=
null
)
{
data
.
player
=
this
.
player
;
}
if (this.special != null) {
data.special
= this.special
;
if
(
this
.
special
_count
!=
null
)
{
data
.
special
_count
=
this
.
special_count
;
}
if
(
this
.
forced
!=
null
)
{
data
.
forced
=
this
.
forced
;
...
...
@@ -6997,7 +6997,7 @@ export namespace ygopro {
serialize
(
w
?:
pb_1
.
BinaryWriter
):
Uint8Array
|
void
{
const
writer
=
w
||
new
pb_1
.
BinaryWriter
();
if
(
this
.
player
!=
0
)
writer
.
writeInt32
(
1
,
this
.
player
);
if (this.special
!= false) writer.writeBool(2, this.special
);
if
(
this
.
special
_count
!=
0
)
writer
.
writeInt32
(
2
,
this
.
special_count
);
if
(
this
.
forced
!=
false
)
writer
.
writeBool
(
3
,
this
.
forced
);
if
(
this
.
hint0
!=
0
)
writer
.
writeInt32
(
4
,
this
.
hint0
);
if
(
this
.
hint1
!=
0
)
writer
.
writeInt32
(
5
,
this
.
hint1
);
...
...
@@ -7025,7 +7025,7 @@ export namespace ygopro {
message
.
player
=
reader
.
readInt32
();
break
;
case
2
:
message.special
= reader.readBool
();
message
.
special
_count
=
reader
.
readInt32
();
break
;
case
3
:
message
.
forced
=
reader
.
readBool
();
...
...
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