diff options
Diffstat (limited to 'common')
-rw-r--r-- | common/connectionbase.cpp | 1 | ||||
-rw-r--r-- | common/message.h | 13 |
2 files changed, 2 insertions, 12 deletions
diff --git a/common/connectionbase.cpp b/common/connectionbase.cpp index 9a110f7..e2384e2 100644 --- a/common/connectionbase.cpp +++ b/common/connectionbase.cpp @@ -2,6 +2,7 @@ #include <boost/serialization/vector.hpp> #include <boost/serialization/string.hpp> +#include <boost/serialization/utility.hpp> #include <boost/serialization/shared_ptr.hpp> #include <boost/archive/binary_oarchive.hpp> #include <boost/archive/binary_iarchive.hpp> diff --git a/common/message.h b/common/message.h index cbb46a4..7cddbe3 100644 --- a/common/message.h +++ b/common/message.h @@ -244,20 +244,9 @@ namespace Message { } }; - struct Yaku { - std::string name; - int value; - - template<class Archive> - void serialize(Archive & ar, const unsigned int v) { - ar & name; - ar & value; - } - }; - RoundEnd() : Base(Types::RoundEnd) {} Tiles hand; - std::vector<Yaku> yakus; + std::vector<std::pair<std::string, int> > yakus; int total_han; int total_fu; int won; |