diff options
author | Atle Hellvik Havsø <atle@havso.net> | 2010-12-06 20:57:12 +0100 |
---|---|---|
committer | Atle Hellvik Havsø <atle@havso.net> | 2010-12-06 20:57:41 +0100 |
commit | 121387bfccc0ca2e35d39a8c1c92471f24e4848a (patch) | |
tree | 6c5b66d3f5758f086fd6c562477c767500e2fbc8 /common/connectionbase.cpp | |
parent | b56b7bbcd5c23a67b57d4332ee05147e33ee7e6b (diff) |
Added GameEnd message and made the GameEndDialog use it.
Diffstat (limited to 'common/connectionbase.cpp')
-rw-r--r-- | common/connectionbase.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/common/connectionbase.cpp b/common/connectionbase.cpp index 448e833..9a110f7 100644 --- a/common/connectionbase.cpp +++ b/common/connectionbase.cpp @@ -116,6 +116,12 @@ void ConnectionBase::got_data(uint8_t* data, std::size_t bytes) { got_message(m); } break; + case Message::Types::GameEnd: { + Message::GameEnd::p m = make_shared<Message::GameEnd>(); + ia & m; + got_message(m); + } break; + default: throw std::runtime_error("Deserialization attempted on unknown message type."); } |