Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Donald Haase
Cockatrice
Commits
cfebd53d
Commit
cfebd53d
authored
Aug 25, 2015
by
woogerboy21
Browse files
Corrected proto warnings
parent
74533859
Changes
145
Hide whitespace changes
Inline
Side-by-side
common/pb/command_set_sideboard_lock.proto
View file @
cfebd53d
import
"game_commands.proto"
;
syntax
=
"proto2"
;
import
"game_commands.proto"
;
message
Command_SetSideboardLock
{
message
Command_SetSideboardLock
{
extend
GameCommand
{
extend
GameCommand
{
optional
Command_SetSideboardLock
ext
=
1030
;
optional
Command_SetSideboardLock
ext
=
1030
;
}
}
optional
bool
locked
=
1
;
optional
bool
locked
=
1
;
}
}
common/pb/command_set_sideboard_plan.proto
View file @
cfebd53d
syntax
=
"proto2"
;
import
"game_commands.proto"
;
import
"game_commands.proto"
;
import
"move_card_to_zone.proto"
;
import
"move_card_to_zone.proto"
;
message
Command_SetSideboardPlan
{
message
Command_SetSideboardPlan
{
extend
GameCommand
{
extend
GameCommand
{
optional
Command_SetSideboardPlan
ext
=
1028
;
optional
Command_SetSideboardPlan
ext
=
1028
;
}
}
repeated
MoveCard_ToZone
move_list
=
1
;
repeated
MoveCard_ToZone
move_list
=
1
;
}
}
common/pb/command_shuffle.proto
View file @
cfebd53d
syntax
=
"proto2"
;
import
"game_commands.proto"
;
import
"game_commands.proto"
;
message
Command_Shuffle
{
message
Command_Shuffle
{
extend
GameCommand
{
extend
GameCommand
{
optional
Command_Shuffle
ext
=
1003
;
optional
Command_Shuffle
ext
=
1003
;
}
}
}
}
common/pb/command_stop_dump_zone.proto
View file @
cfebd53d
syntax
=
"proto2"
;
import
"game_commands.proto"
;
import
"game_commands.proto"
;
message
Command_StopDumpZone
{
message
Command_StopDumpZone
{
extend
GameCommand
{
extend
GameCommand
{
optional
Command_StopDumpZone
ext
=
1025
;
optional
Command_StopDumpZone
ext
=
1025
;
}
}
optional
sint32
player_id
=
1
;
optional
sint32
player_id
=
1
;
optional
string
zone_name
=
2
;
optional
string
zone_name
=
2
;
}
}
common/pb/command_undo_draw.proto
View file @
cfebd53d
syntax
=
"proto2"
;
import
"game_commands.proto"
;
import
"game_commands.proto"
;
message
Command_UndoDraw
{
message
Command_UndoDraw
{
extend
GameCommand
{
extend
GameCommand
{
optional
Command_UndoDraw
ext
=
1007
;
optional
Command_UndoDraw
ext
=
1007
;
}
}
}
}
common/pb/commands.proto
View file @
cfebd53d
syntax
=
"proto2"
;
import
"session_commands.proto"
;
import
"session_commands.proto"
;
import
"game_commands.proto"
;
import
"game_commands.proto"
;
import
"room_commands.proto"
;
import
"room_commands.proto"
;
...
@@ -5,14 +6,14 @@ import "moderator_commands.proto";
...
@@ -5,14 +6,14 @@ import "moderator_commands.proto";
import
"admin_commands.proto"
;
import
"admin_commands.proto"
;
message
CommandContainer
{
message
CommandContainer
{
optional
uint64
cmd_id
=
1
;
optional
uint64
cmd_id
=
1
;
optional
uint32
game_id
=
10
;
optional
uint32
game_id
=
10
;
optional
uint32
room_id
=
20
;
optional
uint32
room_id
=
20
;
repeated
SessionCommand
session_command
=
100
;
repeated
SessionCommand
session_command
=
100
;
repeated
GameCommand
game_command
=
101
;
repeated
GameCommand
game_command
=
101
;
repeated
RoomCommand
room_command
=
102
;
repeated
RoomCommand
room_command
=
102
;
repeated
ModeratorCommand
moderator_command
=
103
;
repeated
ModeratorCommand
moderator_command
=
103
;
repeated
AdminCommand
admin_command
=
104
;
repeated
AdminCommand
admin_command
=
104
;
}
}
common/pb/context_concede.proto
View file @
cfebd53d
syntax
=
"proto2"
;
import
"game_event_context.proto"
;
import
"game_event_context.proto"
;
message
Context_Concede
{
message
Context_Concede
{
extend
GameEventContext
{
extend
GameEventContext
{
optional
Context_Concede
ext
=
1001
;
optional
Context_Concede
ext
=
1001
;
}
}
}
}
common/pb/context_connection_state_changed.proto
View file @
cfebd53d
syntax
=
"proto2"
;
import
"game_event_context.proto"
;
import
"game_event_context.proto"
;
message
Context_ConnectionStateChanged
{
message
Context_ConnectionStateChanged
{
extend
GameEventContext
{
extend
GameEventContext
{
optional
Context_ConnectionStateChanged
ext
=
1007
;
optional
Context_ConnectionStateChanged
ext
=
1007
;
}
}
}
}
common/pb/context_deck_select.proto
View file @
cfebd53d
syntax
=
"proto2"
;
import
"game_event_context.proto"
;
import
"game_event_context.proto"
;
message
Context_DeckSelect
{
message
Context_DeckSelect
{
...
...
common/pb/context_move_card.proto
View file @
cfebd53d
syntax
=
"proto2"
;
import
"game_event_context.proto"
;
import
"game_event_context.proto"
;
message
Context_MoveCard
{
message
Context_MoveCard
{
extend
GameEventContext
{
extend
GameEventContext
{
optional
Context_MoveCard
ext
=
1004
;
optional
Context_MoveCard
ext
=
1004
;
}
}
}
}
common/pb/context_mulligan.proto
View file @
cfebd53d
syntax
=
"proto2"
;
import
"game_event_context.proto"
;
import
"game_event_context.proto"
;
message
Context_Mulligan
{
message
Context_Mulligan
{
extend
GameEventContext
{
extend
GameEventContext
{
optional
Context_Mulligan
ext
=
1005
;
optional
Context_Mulligan
ext
=
1005
;
}
}
optional
uint32
number
=
1
;
optional
uint32
number
=
1
;
}
}
common/pb/context_ping_changed.proto
View file @
cfebd53d
syntax
=
"proto2"
;
import
"game_event_context.proto"
;
import
"game_event_context.proto"
;
message
Context_PingChanged
{
message
Context_PingChanged
{
extend
GameEventContext
{
extend
GameEventContext
{
optional
Context_PingChanged
ext
=
1006
;
optional
Context_PingChanged
ext
=
1006
;
}
}
}
}
common/pb/context_ready_start.proto
View file @
cfebd53d
syntax
=
"proto2"
;
import
"game_event_context.proto"
;
import
"game_event_context.proto"
;
message
Context_ReadyStart
{
message
Context_ReadyStart
{
extend
GameEventContext
{
extend
GameEventContext
{
optional
Context_ReadyStart
ext
=
1000
;
optional
Context_ReadyStart
ext
=
1000
;
}
}
}
}
common/pb/context_set_sideboard_lock.proto
View file @
cfebd53d
syntax
=
"proto2"
;
import
"game_event_context.proto"
;
import
"game_event_context.proto"
;
message
Context_SetSideboardLock
{
message
Context_SetSideboardLock
{
extend
GameEventContext
{
extend
GameEventContext
{
optional
Context_SetSideboardLock
ext
=
1008
;
optional
Context_SetSideboardLock
ext
=
1008
;
}
}
}
}
common/pb/context_undo_draw.proto
View file @
cfebd53d
syntax
=
"proto2"
;
import
"game_event_context.proto"
;
import
"game_event_context.proto"
;
message
Context_UndoDraw
{
message
Context_UndoDraw
{
extend
GameEventContext
{
extend
GameEventContext
{
optional
Context_UndoDraw
ext
=
1003
;
optional
Context_UndoDraw
ext
=
1003
;
}
}
}
}
common/pb/event_add_to_list.proto
View file @
cfebd53d
syntax
=
"proto2"
;
import
"session_event.proto"
;
import
"session_event.proto"
;
import
"serverinfo_user.proto"
;
import
"serverinfo_user.proto"
;
message
Event_AddToList
{
message
Event_AddToList
{
extend
SessionEvent
{
extend
SessionEvent
{
optional
Event_AddToList
ext
=
1005
;
optional
Event_AddToList
ext
=
1005
;
}
}
optional
string
list_name
=
1
;
optional
string
list_name
=
1
;
optional
ServerInfo_User
user_info
=
2
;
optional
ServerInfo_User
user_info
=
2
;
}
}
common/pb/event_attach_card.proto
View file @
cfebd53d
syntax
=
"proto2"
;
import
"game_event.proto"
;
import
"game_event.proto"
;
message
Event_AttachCard
{
message
Event_AttachCard
{
extend
GameEvent
{
extend
GameEvent
{
optional
Event_AttachCard
ext
=
2012
;
optional
Event_AttachCard
ext
=
2012
;
}
}
optional
string
start_zone
=
1
;
optional
string
start_zone
=
1
;
optional
sint32
card_id
=
2
;
optional
sint32
card_id
=
2
;
optional
sint32
target_player_id
=
3
;
optional
sint32
target_player_id
=
3
;
optional
string
target_zone
=
4
;
optional
string
target_zone
=
4
;
optional
sint32
target_card_id
=
5
;
optional
sint32
target_card_id
=
5
;
}
}
common/pb/event_change_zone_properties.proto
View file @
cfebd53d
syntax
=
"proto2"
;
import
"game_event.proto"
;
import
"game_event.proto"
;
message
Event_ChangeZoneProperties
{
message
Event_ChangeZoneProperties
{
extend
GameEvent
{
extend
GameEvent
{
optional
Event_ChangeZoneProperties
ext
=
2020
;
optional
Event_ChangeZoneProperties
ext
=
2020
;
}
}
optional
string
zone_name
=
1
;
optional
string
zone_name
=
1
;
optional
bool
always_reveal_top_card
=
10
;
optional
bool
always_reveal_top_card
=
10
;
}
}
common/pb/event_connection_closed.proto
View file @
cfebd53d
syntax
=
"proto2"
;
import
"session_event.proto"
;
import
"session_event.proto"
;
message
Event_ConnectionClosed
{
message
Event_ConnectionClosed
{
extend
SessionEvent
{
extend
SessionEvent
{
optional
Event_ConnectionClosed
ext
=
1002
;
optional
Event_ConnectionClosed
ext
=
1002
;
}
}
enum
CloseReason
{
enum
CloseReason
{
OTHER
=
1
;
OTHER
=
1
;
SERVER_SHUTDOWN
=
2
;
SERVER_SHUTDOWN
=
2
;
TOO_MANY_CONNECTIONS
=
3
;
TOO_MANY_CONNECTIONS
=
3
;
BANNED
=
4
;
BANNED
=
4
;
USERNAMEINVALID
=
5
;
USERNAMEINVALID
=
5
;
USER_LIMIT_REACHED
=
6
;
USER_LIMIT_REACHED
=
6
;
DEMOTED
=
7
;
DEMOTED
=
7
;
LOGGEDINELSEWERE
=
8
;
LOGGEDINELSEWERE
=
8
;
}
}
optional
CloseReason
reason
=
1
;
optional
CloseReason
reason
=
1
;
optional
string
reason_str
=
2
;
optional
string
reason_str
=
2
;
optional
uint32
end_time
=
3
;
optional
uint32
end_time
=
3
;
}
}
common/pb/event_create_arrow.proto
View file @
cfebd53d
syntax
=
"proto2"
;
import
"game_event.proto"
;
import
"game_event.proto"
;
import
"serverinfo_arrow.proto"
;
import
"serverinfo_arrow.proto"
;
message
Event_CreateArrow
{
message
Event_CreateArrow
{
extend
GameEvent
{
extend
GameEvent
{
optional
Event_CreateArrow
ext
=
2000
;
optional
Event_CreateArrow
ext
=
2000
;
}
}
optional
ServerInfo_Arrow
arrow_info
=
1
;
optional
ServerInfo_Arrow
arrow_info
=
1
;
}
}
Prev
1
2
3
4
5
6
7
8
Next
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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