Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
N
Neos Protobuf
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
MyCard
Neos Protobuf
Commits
621489ac
Commit
621489ac
authored
Dec 30, 2022
by
Chunchi Che
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feat/move' into 'main'
add move msg See merge request
!13
parents
8cfeb7ac
e4b93b42
Pipeline
#18922
passed with stage
in 16 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
0 deletions
+29
-0
idl/ocgcore.proto
idl/ocgcore.proto
+29
-0
No files found.
idl/ocgcore.proto
View file @
621489ac
...
@@ -20,6 +20,18 @@ enum CardZone {
...
@@ -20,6 +20,18 @@ enum CardZone {
PZONE
=
10
;
// 灵摆区
PZONE
=
10
;
// 灵摆区
}
}
// 卡牌的表示方式类型
enum
CardPosition
{
FACEUP_ATTACK
=
0
;
FACEDOWN_ATTACK
=
1
;
FACEUP_DEFENSE
=
2
;
FACEDOWN_DEFENSE
=
3
;
FACEUP
=
4
;
FACEDOWN
=
5
;
ATTACK
=
6
;
DEFENSE
=
7
;
}
message
CardInfo
{
message
CardInfo
{
int32
code
=
1
;
int32
code
=
1
;
int32
controler
=
2
;
int32
controler
=
2
;
...
@@ -27,6 +39,14 @@ message CardInfo {
...
@@ -27,6 +39,14 @@ message CardInfo {
int32
sequence
=
4
;
int32
sequence
=
4
;
}
}
message
CardLocation
{
int32
controler
=
1
;
int32
location
=
2
;
int32
sequence
=
3
;
CardPosition
position
=
4
;
int32
overlay_sequence
=
5
;
}
// ----- Service -----
// ----- Service -----
// reference: https://github.com/mycard/srvpro/blob/master/data/structs.json
// reference: https://github.com/mycard/srvpro/blob/master/data/structs.json
...
@@ -347,6 +367,14 @@ message StocGameMessage {
...
@@ -347,6 +367,14 @@ message StocGameMessage {
repeated
SelectAblePlace
places
=
3
;
repeated
SelectAblePlace
places
=
3
;
}
}
// 卡牌位置移动
message
MsgMove
{
int32
code
=
1
;
// 移动的卡牌code
CardLocation
from
=
2
;
// 移动前的位置信息
CardLocation
to
=
3
;
// 移动后的位置信息
int32
reason
=
4
;
// 移动的原因
}
oneof
gameMsg
{
oneof
gameMsg
{
MsgStart
start
=
1
;
MsgStart
start
=
1
;
MsgDraw
draw
=
2
;
MsgDraw
draw
=
2
;
...
@@ -355,6 +383,7 @@ message StocGameMessage {
...
@@ -355,6 +383,7 @@ message StocGameMessage {
MsgHint
hint
=
5
;
MsgHint
hint
=
5
;
MsgSelectIdleCmd
select_idle_cmd
=
6
;
MsgSelectIdleCmd
select_idle_cmd
=
6
;
MsgSelectPlace
select_place
=
7
;
MsgSelectPlace
select_place
=
7
;
MsgMove
move
=
8
;
}
}
}
}
...
...
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