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
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
2
Merge Requests
2
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
Neos
Commits
7baabff9
Commit
7baabff9
authored
Aug 14, 2022
by
Chunchi Che
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update ocgcore.proto and ocgcore.ts
parent
df64306d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
26 deletions
+2
-26
src/api/ocgcore.proto
src/api/ocgcore.proto
+0
-1
src/api/ocgcore.ts
src/api/ocgcore.ts
+2
-25
No files found.
src/api/ocgcore.proto
View file @
7baabff9
...
@@ -4,7 +4,6 @@ package ygopro;
...
@@ -4,7 +4,6 @@ package ygopro;
option
go_package
=
"DarkNeos/ygopropb"
;
option
go_package
=
"DarkNeos/ygopropb"
;
message
YgoCtosMsg
{
message
YgoCtosMsg
{
int32
proto
=
1
;
oneof
msg
{
oneof
msg
{
CtosPlayerInfo
ctos_player_info
=
2
;
CtosPlayerInfo
ctos_player_info
=
2
;
CtosJoinGame
ctos_join_game
=
3
;
CtosJoinGame
ctos_join_game
=
3
;
...
...
src/api/ocgcore.ts
View file @
7baabff9
/**
/**
* Generated by the protoc-gen-ts. DO NOT EDIT!
* Generated by the protoc-gen-ts. DO NOT EDIT!
* compiler version: 3.21.5
* compiler version: 3.21.5
* source:
ygopro
.proto
* source:
ocgcore
.proto
* git: https://github.com/thesayyn/protoc-gen-ts */
* git: https://github.com/thesayyn/protoc-gen-ts */
import
*
as
pb_1
from
"
google-protobuf
"
;
import
*
as
pb_1
from
"
google-protobuf
"
;
export
namespace
ygopro
{
export
namespace
ygopro
{
...
@@ -10,9 +10,7 @@ export namespace ygopro {
...
@@ -10,9 +10,7 @@ export namespace ygopro {
constructor
(
constructor
(
data
?:
data
?:
|
any
[]
|
any
[]
|
({
|
({}
&
(
proto
?:
number
;
}
&
(
|
{
|
{
ctos_player_info
?:
CtosPlayerInfo
;
ctos_player_info
?:
CtosPlayerInfo
;
ctos_join_game
?:
never
;
ctos_join_game
?:
never
;
...
@@ -88,9 +86,6 @@ export namespace ygopro {
...
@@ -88,9 +86,6 @@ export namespace ygopro {
this
.
#
one_of_decls
this
.
#
one_of_decls
);
);
if
(
!
Array
.
isArray
(
data
)
&&
typeof
data
==
"
object
"
)
{
if
(
!
Array
.
isArray
(
data
)
&&
typeof
data
==
"
object
"
)
{
if
(
"
proto
"
in
data
&&
data
.
proto
!=
undefined
)
{
this
.
proto
=
data
.
proto
;
}
if
(
"
ctos_player_info
"
in
data
&&
data
.
ctos_player_info
!=
undefined
)
{
if
(
"
ctos_player_info
"
in
data
&&
data
.
ctos_player_info
!=
undefined
)
{
this
.
ctos_player_info
=
data
.
ctos_player_info
;
this
.
ctos_player_info
=
data
.
ctos_player_info
;
}
}
...
@@ -117,12 +112,6 @@ export namespace ygopro {
...
@@ -117,12 +112,6 @@ export namespace ygopro {
}
}
}
}
}
}
get
proto
()
{
return
pb_1
.
Message
.
getFieldWithDefault
(
this
,
1
,
0
)
as
number
;
}
set
proto
(
value
:
number
)
{
pb_1
.
Message
.
setField
(
this
,
1
,
value
);
}
get
ctos_player_info
()
{
get
ctos_player_info
()
{
return
pb_1
.
Message
.
getWrapperField
(
return
pb_1
.
Message
.
getWrapperField
(
this
,
this
,
...
@@ -256,7 +245,6 @@ export namespace ygopro {
...
@@ -256,7 +245,6 @@ export namespace ygopro {
];
];
}
}
static
fromObject
(
data
:
{
static
fromObject
(
data
:
{
proto
?:
number
;
ctos_player_info
?:
ReturnType
<
typeof
CtosPlayerInfo
.
prototype
.
toObject
>
;
ctos_player_info
?:
ReturnType
<
typeof
CtosPlayerInfo
.
prototype
.
toObject
>
;
ctos_join_game
?:
ReturnType
<
typeof
CtosJoinGame
.
prototype
.
toObject
>
;
ctos_join_game
?:
ReturnType
<
typeof
CtosJoinGame
.
prototype
.
toObject
>
;
ctos_update_deck
?:
ReturnType
<
typeof
CtosUpdateDeck
.
prototype
.
toObject
>
;
ctos_update_deck
?:
ReturnType
<
typeof
CtosUpdateDeck
.
prototype
.
toObject
>
;
...
@@ -268,9 +256,6 @@ export namespace ygopro {
...
@@ -268,9 +256,6 @@ export namespace ygopro {
stoc_type_change
?:
ReturnType
<
typeof
StocTypeChange
.
prototype
.
toObject
>
;
stoc_type_change
?:
ReturnType
<
typeof
StocTypeChange
.
prototype
.
toObject
>
;
}):
YgoCtosMsg
{
}):
YgoCtosMsg
{
const
message
=
new
YgoCtosMsg
({});
const
message
=
new
YgoCtosMsg
({});
if
(
data
.
proto
!=
null
)
{
message
.
proto
=
data
.
proto
;
}
if
(
data
.
ctos_player_info
!=
null
)
{
if
(
data
.
ctos_player_info
!=
null
)
{
message
.
ctos_player_info
=
CtosPlayerInfo
.
fromObject
(
message
.
ctos_player_info
=
CtosPlayerInfo
.
fromObject
(
data
.
ctos_player_info
data
.
ctos_player_info
...
@@ -304,7 +289,6 @@ export namespace ygopro {
...
@@ -304,7 +289,6 @@ export namespace ygopro {
}
}
toObject
()
{
toObject
()
{
const
data
:
{
const
data
:
{
proto
?:
number
;
ctos_player_info
?:
ReturnType
<
typeof
CtosPlayerInfo
.
prototype
.
toObject
>
;
ctos_player_info
?:
ReturnType
<
typeof
CtosPlayerInfo
.
prototype
.
toObject
>
;
ctos_join_game
?:
ReturnType
<
typeof
CtosJoinGame
.
prototype
.
toObject
>
;
ctos_join_game
?:
ReturnType
<
typeof
CtosJoinGame
.
prototype
.
toObject
>
;
ctos_update_deck
?:
ReturnType
<
typeof
CtosUpdateDeck
.
prototype
.
toObject
>
;
ctos_update_deck
?:
ReturnType
<
typeof
CtosUpdateDeck
.
prototype
.
toObject
>
;
...
@@ -315,9 +299,6 @@ export namespace ygopro {
...
@@ -315,9 +299,6 @@ export namespace ygopro {
>
;
>
;
stoc_type_change
?:
ReturnType
<
typeof
StocTypeChange
.
prototype
.
toObject
>
;
stoc_type_change
?:
ReturnType
<
typeof
StocTypeChange
.
prototype
.
toObject
>
;
}
=
{};
}
=
{};
if
(
this
.
proto
!=
null
)
{
data
.
proto
=
this
.
proto
;
}
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
();
}
}
...
@@ -345,7 +326,6 @@ export namespace ygopro {
...
@@ -345,7 +326,6 @@ 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
.
proto
!=
0
)
writer
.
writeInt32
(
1
,
this
.
proto
);
if
(
this
.
has_ctos_player_info
)
if
(
this
.
has_ctos_player_info
)
writer
.
writeMessage
(
2
,
this
.
ctos_player_info
,
()
=>
writer
.
writeMessage
(
2
,
this
.
ctos_player_info
,
()
=>
this
.
ctos_player_info
.
serialize
(
writer
)
this
.
ctos_player_info
.
serialize
(
writer
)
...
@@ -385,9 +365,6 @@ export namespace ygopro {
...
@@ -385,9 +365,6 @@ export namespace ygopro {
while
(
reader
.
nextField
())
{
while
(
reader
.
nextField
())
{
if
(
reader
.
isEndGroup
())
break
;
if
(
reader
.
isEndGroup
())
break
;
switch
(
reader
.
getFieldNumber
())
{
switch
(
reader
.
getFieldNumber
())
{
case
1
:
message
.
proto
=
reader
.
readInt32
();
break
;
case
2
:
case
2
:
reader
.
readMessage
(
reader
.
readMessage
(
message
.
ctos_player_info
,
message
.
ctos_player_info
,
...
...
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