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
bb439879
Commit
bb439879
authored
Jan 15, 2023
by
chechunchi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sync neos-protobuf
parent
2297be27
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
15 deletions
+23
-15
neos-protobuf
neos-protobuf
+1
-1
src/api/ocgcore/idl/ocgcore.ts
src/api/ocgcore/idl/ocgcore.ts
+22
-14
No files found.
neos-protobuf
@
a5908aff
Subproject commit
9b1e1b0fdb8982b80c535178f44981cb17206866
Subproject commit
a5908affcf8a663bd2d5e0bf8acf9f77162f7d64
src/api/ocgcore/idl/ocgcore.ts
View file @
bb439879
...
@@ -42,7 +42,7 @@ export namespace ygopro {
...
@@ -42,7 +42,7 @@ export namespace ygopro {
|
{
|
{
code
?:
number
;
code
?:
number
;
controler
?:
number
;
controler
?:
number
;
location?:
number
;
location
?:
CardZone
;
sequence
?:
number
;
sequence
?:
number
;
}
}
)
{
)
{
...
@@ -83,9 +83,13 @@ export namespace ygopro {
...
@@ -83,9 +83,13 @@ export namespace ygopro {
pb_1
.
Message
.
setField
(
this
,
2
,
value
);
pb_1
.
Message
.
setField
(
this
,
2
,
value
);
}
}
get
location
()
{
get
location
()
{
return pb_1.Message.getFieldWithDefault(this, 3, 0) as number;
return
pb_1
.
Message
.
getFieldWithDefault
(
this
,
3
,
CardZone
.
DECK
)
as
CardZone
;
}
}
set location(value:
number
) {
set
location
(
value
:
CardZone
)
{
pb_1
.
Message
.
setField
(
this
,
3
,
value
);
pb_1
.
Message
.
setField
(
this
,
3
,
value
);
}
}
get
sequence
()
{
get
sequence
()
{
...
@@ -97,7 +101,7 @@ export namespace ygopro {
...
@@ -97,7 +101,7 @@ export namespace ygopro {
static
fromObject
(
data
:
{
static
fromObject
(
data
:
{
code
?:
number
;
code
?:
number
;
controler
?:
number
;
controler
?:
number
;
location?:
number
;
location
?:
CardZone
;
sequence
?:
number
;
sequence
?:
number
;
}):
CardInfo
{
}):
CardInfo
{
const
message
=
new
CardInfo
({});
const
message
=
new
CardInfo
({});
...
@@ -119,7 +123,7 @@ export namespace ygopro {
...
@@ -119,7 +123,7 @@ export namespace ygopro {
const
data
:
{
const
data
:
{
code
?:
number
;
code
?:
number
;
controler
?:
number
;
controler
?:
number
;
location?:
number
;
location
?:
CardZone
;
sequence
?:
number
;
sequence
?:
number
;
}
=
{};
}
=
{};
if
(
this
.
code
!=
null
)
{
if
(
this
.
code
!=
null
)
{
...
@@ -142,7 +146,7 @@ export namespace ygopro {
...
@@ -142,7 +146,7 @@ export namespace ygopro {
const
writer
=
w
||
new
pb_1
.
BinaryWriter
();
const
writer
=
w
||
new
pb_1
.
BinaryWriter
();
if
(
this
.
code
!=
0
)
writer
.
writeInt32
(
1
,
this
.
code
);
if
(
this
.
code
!=
0
)
writer
.
writeInt32
(
1
,
this
.
code
);
if
(
this
.
controler
!=
0
)
writer
.
writeInt32
(
2
,
this
.
controler
);
if
(
this
.
controler
!=
0
)
writer
.
writeInt32
(
2
,
this
.
controler
);
if (this.location !=
0) writer.writeInt32
(3, this.location);
if
(
this
.
location
!=
CardZone
.
DECK
)
writer
.
writeEnum
(
3
,
this
.
location
);
if
(
this
.
sequence
!=
0
)
writer
.
writeInt32
(
4
,
this
.
sequence
);
if
(
this
.
sequence
!=
0
)
writer
.
writeInt32
(
4
,
this
.
sequence
);
if
(
!
w
)
return
writer
.
getResultBuffer
();
if
(
!
w
)
return
writer
.
getResultBuffer
();
}
}
...
@@ -162,7 +166,7 @@ export namespace ygopro {
...
@@ -162,7 +166,7 @@ export namespace ygopro {
message
.
controler
=
reader
.
readInt32
();
message
.
controler
=
reader
.
readInt32
();
break
;
break
;
case
3
:
case
3
:
message.location = reader.read
Int32
();
message
.
location
=
reader
.
read
Enum
();
break
;
break
;
case
4
:
case
4
:
message
.
sequence
=
reader
.
readInt32
();
message
.
sequence
=
reader
.
readInt32
();
...
@@ -187,7 +191,7 @@ export namespace ygopro {
...
@@ -187,7 +191,7 @@ export namespace ygopro {
|
any
[]
|
any
[]
|
{
|
{
controler
?:
number
;
controler
?:
number
;
location?:
number
;
location
?:
CardZone
;
sequence
?:
number
;
sequence
?:
number
;
position
?:
CardPosition
;
position
?:
CardPosition
;
overlay_sequence
?:
number
;
overlay_sequence
?:
number
;
...
@@ -227,9 +231,13 @@ export namespace ygopro {
...
@@ -227,9 +231,13 @@ export namespace ygopro {
pb_1
.
Message
.
setField
(
this
,
1
,
value
);
pb_1
.
Message
.
setField
(
this
,
1
,
value
);
}
}
get
location
()
{
get
location
()
{
return pb_1.Message.getFieldWithDefault(this, 2, 0) as number;
return
pb_1
.
Message
.
getFieldWithDefault
(
this
,
2
,
CardZone
.
DECK
)
as
CardZone
;
}
}
set location(value:
number
) {
set
location
(
value
:
CardZone
)
{
pb_1
.
Message
.
setField
(
this
,
2
,
value
);
pb_1
.
Message
.
setField
(
this
,
2
,
value
);
}
}
get
sequence
()
{
get
sequence
()
{
...
@@ -256,7 +264,7 @@ export namespace ygopro {
...
@@ -256,7 +264,7 @@ export namespace ygopro {
}
}
static
fromObject
(
data
:
{
static
fromObject
(
data
:
{
controler
?:
number
;
controler
?:
number
;
location?:
number
;
location
?:
CardZone
;
sequence
?:
number
;
sequence
?:
number
;
position
?:
CardPosition
;
position
?:
CardPosition
;
overlay_sequence
?:
number
;
overlay_sequence
?:
number
;
...
@@ -282,7 +290,7 @@ export namespace ygopro {
...
@@ -282,7 +290,7 @@ export namespace ygopro {
toObject
()
{
toObject
()
{
const
data
:
{
const
data
:
{
controler
?:
number
;
controler
?:
number
;
location?:
number
;
location
?:
CardZone
;
sequence
?:
number
;
sequence
?:
number
;
position
?:
CardPosition
;
position
?:
CardPosition
;
overlay_sequence
?:
number
;
overlay_sequence
?:
number
;
...
@@ -309,7 +317,7 @@ export namespace ygopro {
...
@@ -309,7 +317,7 @@ export namespace ygopro {
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
.
controler
!=
0
)
writer
.
writeInt32
(
1
,
this
.
controler
);
if
(
this
.
controler
!=
0
)
writer
.
writeInt32
(
1
,
this
.
controler
);
if (this.location !=
0) writer.writeInt32
(2, this.location);
if
(
this
.
location
!=
CardZone
.
DECK
)
writer
.
writeEnum
(
2
,
this
.
location
);
if
(
this
.
sequence
!=
0
)
writer
.
writeInt32
(
3
,
this
.
sequence
);
if
(
this
.
sequence
!=
0
)
writer
.
writeInt32
(
3
,
this
.
sequence
);
if
(
this
.
position
!=
CardPosition
.
FACEUP_ATTACK
)
if
(
this
.
position
!=
CardPosition
.
FACEUP_ATTACK
)
writer
.
writeEnum
(
4
,
this
.
position
);
writer
.
writeEnum
(
4
,
this
.
position
);
...
@@ -330,7 +338,7 @@ export namespace ygopro {
...
@@ -330,7 +338,7 @@ export namespace ygopro {
message
.
controler
=
reader
.
readInt32
();
message
.
controler
=
reader
.
readInt32
();
break
;
break
;
case
2
:
case
2
:
message.location = reader.read
Int32
();
message
.
location
=
reader
.
read
Enum
();
break
;
break
;
case
3
:
case
3
:
message
.
sequence
=
reader
.
readInt32
();
message
.
sequence
=
reader
.
readInt32
();
...
...
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