|
|
|
@ -1,6 +1,9 @@ |
|
|
|
#[derive(Clone, PartialEq, ::prost::Message)] |
|
|
|
pub struct ClientServerPacket { |
|
|
|
#[prost(oneof="client_server_packet::Data", tags="1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14")] |
|
|
|
#[prost(
|
|
|
|
oneof = "client_server_packet::Data", |
|
|
|
tags = "1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14" |
|
|
|
)] |
|
|
|
pub data: ::core::option::Option<client_server_packet::Data>, |
|
|
|
} |
|
|
|
/// Nested message and enum types in `ClientServerPacket`.
|
|
|
|
@ -8,41 +11,44 @@ pub mod client_server_packet { |
|
|
|
#[derive(Clone, PartialEq, ::prost::Oneof)] |
|
|
|
pub enum Data { |
|
|
|
/// CONNECTION
|
|
|
|
#[prost(message, tag="1")] |
|
|
|
#[prost(message, tag = "1")] |
|
|
|
QueryName(()), |
|
|
|
#[prost(message, tag="2")] |
|
|
|
#[prost(message, tag = "2")] |
|
|
|
Connect(super::super::common::Name), |
|
|
|
#[prost(message, tag="3")] |
|
|
|
#[prost(message, tag = "3")] |
|
|
|
Disconnect(()), |
|
|
|
#[prost(message, tag="4")] |
|
|
|
#[prost(message, tag = "4")] |
|
|
|
JoinLobby(super::super::connection::LobbyCode), |
|
|
|
#[prost(message, tag="5")] |
|
|
|
#[prost(message, tag = "5")] |
|
|
|
CreateLobby(super::super::connection::LobbyConfig), |
|
|
|
#[prost(message, tag="6")] |
|
|
|
#[prost(message, tag = "6")] |
|
|
|
QueryGames(()), |
|
|
|
#[prost(message, tag="7")] |
|
|
|
#[prost(message, tag = "7")] |
|
|
|
QueryPublicLobbies(()), |
|
|
|
/// LOBBY
|
|
|
|
#[prost(message, tag="8")] |
|
|
|
#[prost(message, tag = "8")] |
|
|
|
QueryUsers(()), |
|
|
|
#[prost(message, tag="9")] |
|
|
|
#[prost(message, tag = "9")] |
|
|
|
Vote(super::super::lobby::SingleVote), |
|
|
|
#[prost(message, tag="10")] |
|
|
|
#[prost(message, tag = "10")] |
|
|
|
Ready(()), |
|
|
|
#[prost(message, tag="11")] |
|
|
|
#[prost(message, tag = "11")] |
|
|
|
Leave(()), |
|
|
|
/// GAME
|
|
|
|
#[prost(message, tag="12")] |
|
|
|
#[prost(message, tag = "12")] |
|
|
|
QueryCardImage(super::super::game::CardKind), |
|
|
|
#[prost(message, tag="13")] |
|
|
|
#[prost(message, tag = "13")] |
|
|
|
CallOnClick(super::super::game::CardId), |
|
|
|
#[prost(message, tag="14")] |
|
|
|
#[prost(message, tag = "14")] |
|
|
|
QueryGameStatus(()), |
|
|
|
} |
|
|
|
} |
|
|
|
#[derive(Clone, PartialEq, ::prost::Message)] |
|
|
|
pub struct ServerClientPacket { |
|
|
|
#[prost(oneof="server_client_packet::Data", tags="1, 2, 3, 4, 5, 6, 7, 8, 9")] |
|
|
|
#[prost(
|
|
|
|
oneof = "server_client_packet::Data", |
|
|
|
tags = "1, 2, 3, 4, 5, 6, 7, 8, 9" |
|
|
|
)] |
|
|
|
pub data: ::core::option::Option<server_client_packet::Data>, |
|
|
|
} |
|
|
|
/// Nested message and enum types in `ServerClientPacket`.
|
|
|
|
@ -50,40 +56,40 @@ pub mod server_client_packet { |
|
|
|
#[derive(Clone, PartialEq, ::prost::Oneof)] |
|
|
|
pub enum Data { |
|
|
|
/// CONNECTION
|
|
|
|
#[prost(message, tag="1")] |
|
|
|
#[prost(message, tag = "1")] |
|
|
|
ReturnName(super::super::common::Name), |
|
|
|
#[prost(message, tag="2")] |
|
|
|
#[prost(message, tag = "2")] |
|
|
|
ReturnConnect(super::super::connection::UserId), |
|
|
|
#[prost(message, tag="3")] |
|
|
|
#[prost(message, tag = "3")] |
|
|
|
ReturnCreateLobby(super::super::connection::LobbyCode), |
|
|
|
#[prost(message, tag="4")] |
|
|
|
#[prost(message, tag = "4")] |
|
|
|
ReturnGames(super::Games), |
|
|
|
#[prost(message, tag="5")] |
|
|
|
#[prost(message, tag = "5")] |
|
|
|
ReturnPublicLobbies(super::LobbyCodes), |
|
|
|
/// LOBBY
|
|
|
|
#[prost(message, tag="6")] |
|
|
|
#[prost(message, tag = "6")] |
|
|
|
ReturnUsers(super::Names), |
|
|
|
#[prost(message, tag="7")] |
|
|
|
#[prost(message, tag = "7")] |
|
|
|
LobbyStatus(super::super::lobby::LobbyStatus), |
|
|
|
/// GAME
|
|
|
|
#[prost(message, tag="8")] |
|
|
|
#[prost(message, tag = "8")] |
|
|
|
ReturnCardImage(super::super::game::Image), |
|
|
|
#[prost(message, tag="9")] |
|
|
|
#[prost(message, tag = "9")] |
|
|
|
GameStatus(super::super::game::GameStatus), |
|
|
|
} |
|
|
|
} |
|
|
|
#[derive(Clone, PartialEq, ::prost::Message)] |
|
|
|
pub struct Games { |
|
|
|
#[prost(message, repeated, tag="1")] |
|
|
|
#[prost(message, repeated, tag = "1")] |
|
|
|
pub games: ::prost::alloc::vec::Vec<super::connection::Game>, |
|
|
|
} |
|
|
|
#[derive(Clone, PartialEq, ::prost::Message)] |
|
|
|
pub struct LobbyCodes { |
|
|
|
#[prost(message, repeated, tag="1")] |
|
|
|
#[prost(message, repeated, tag = "1")] |
|
|
|
pub lobby_codes: ::prost::alloc::vec::Vec<super::connection::LobbyCode>, |
|
|
|
} |
|
|
|
#[derive(Clone, PartialEq, ::prost::Message)] |
|
|
|
pub struct Names { |
|
|
|
#[prost(message, repeated, tag="1")] |
|
|
|
#[prost(message, repeated, tag = "1")] |
|
|
|
pub names: ::prost::alloc::vec::Vec<super::common::Name>, |
|
|
|
} |
|
|
|
|