summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorVegard Storheil Eriksen <zyp@jvnv.net>2010-11-15 11:20:08 +0100
committerVegard Storheil Eriksen <zyp@jvnv.net>2010-11-15 11:20:08 +0100
commit67b0b2494aa2f6d03b8fde92bf0309fffcbb6de6 (patch)
tree59c64769e97534af495b1ca16ab145fc950da2ef /common
parente7fbda45b408b369daf75307ccc6f20bef11dcce (diff)
Added Message::Ready.
Diffstat (limited to 'common')
-rw-r--r--common/message.cpp12
-rw-r--r--common/message.h10
2 files changed, 22 insertions, 0 deletions
diff --git a/common/message.cpp b/common/message.cpp
index 2dd9691..526a3fd 100644
--- a/common/message.cpp
+++ b/common/message.cpp
@@ -75,3 +75,15 @@ std::pair<uint8_t*, std::size_t> Message::GameStart::serialize() {
void Message::GameStart::deserialize(uint8_t* data, std::size_t bytes) {
}
+
+Message::Ready::Ready() : Base(Types::Ready) {
+
+}
+
+std::pair<uint8_t*, std::size_t> Message::Ready::serialize() {
+ return std::pair<uint8_t*, std::size_t>(0, 0);
+}
+
+void Message::Ready::deserialize(uint8_t* data, std::size_t bytes) {
+
+}
diff --git a/common/message.h b/common/message.h
index 3587229..b2d3078 100644
--- a/common/message.h
+++ b/common/message.h
@@ -90,6 +90,16 @@ namespace Message {
virtual void deserialize(uint8_t* data, std::size_t bytes);
};
+ class Ready : public Base {
+ public:
+ typedef boost::shared_ptr<Ready> p;
+
+ Ready();
+
+ virtual std::pair<uint8_t*, std::size_t> serialize();
+ virtual void deserialize(uint8_t* data, std::size_t bytes);
+ };
+
typedef boost::shared_ptr<Base> p;
};