summaryrefslogtreecommitdiff
path: root/common/connectionbase.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'common/connectionbase.cpp')
-rw-r--r--common/connectionbase.cpp22
1 files changed, 22 insertions, 0 deletions
diff --git a/common/connectionbase.cpp b/common/connectionbase.cpp
index 75a9a9a..448e833 100644
--- a/common/connectionbase.cpp
+++ b/common/connectionbase.cpp
@@ -68,6 +68,18 @@ void ConnectionBase::got_data(uint8_t* data, std::size_t bytes) {
got_message(m);
} break;
+ case Message::Types::LobbyStatus: {
+ Message::LobbyStatus::p m = make_shared<Message::LobbyStatus>();
+ ia & m;
+ got_message(m);
+ } break;
+
+ case Message::Types::LobbyAction: {
+ Message::LobbyAction::p m = make_shared<Message::LobbyAction>();
+ ia & m;
+ got_message(m);
+ } break;
+
case Message::Types::GameStart: {
Message::GameStart::p m = make_shared<Message::GameStart>();
ia & m;
@@ -134,6 +146,16 @@ void ConnectionBase::send(const Message::p& msg) {
oa & m;
} break;
+ case Message::Types::LobbyStatus: {
+ Message::LobbyStatus::p m = dynamic_pointer_cast<Message::LobbyStatus>(msg);
+ oa & m;
+ } break;
+
+ case Message::Types::LobbyAction: {
+ Message::LobbyAction::p m = dynamic_pointer_cast<Message::LobbyAction>(msg);
+ oa & m;
+ } break;
+
case Message::Types::GameStart: {
Message::GameStart::p m = dynamic_pointer_cast<Message::GameStart>(msg);
oa & m;