summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
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;
};