summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorVegard Storheil Eriksen <zyp@jvnv.net>2010-12-07 02:11:38 +0100
committerVegard Storheil Eriksen <zyp@jvnv.net>2010-12-07 02:11:38 +0100
commitf0696f9538e6a580501fb494a82bda89ca781eb2 (patch)
tree43551c5bba5ae6cb493abe802f03f27532919e6e /common
parent3f44b4c1eabb42dea5942a9389afd3763b8e5504 (diff)
Added Message::GameResume.
Diffstat (limited to 'common')
-rw-r--r--common/message.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/common/message.h b/common/message.h
index 4f1026e..cbb46a4 100644
--- a/common/message.h
+++ b/common/message.h
@@ -25,6 +25,7 @@ namespace Message {
LobbyStatus,
LobbyAction,
GameStart,
+ GameResume,
Ready,
RoundStart,
RoundState,
@@ -144,6 +145,20 @@ namespace Message {
}
};
+ class GameResume : public Base {
+ public:
+ typedef boost::shared_ptr<GameResume> p;
+
+ GameResume() : Base(Types::GameResume) {}
+
+ std::vector<std::string> players;
+
+ template<class Archive>
+ void serialize(Archive & ar, const unsigned int v) {
+ ar & players;
+ }
+ };
+
class Ready : public Base {
public:
typedef boost::shared_ptr<Ready> p;