diff options
-rw-r--r-- | common/tile.cpp | 6 | ||||
-rw-r--r-- | common/tile.h | 8 |
2 files changed, 7 insertions, 7 deletions
diff --git a/common/tile.cpp b/common/tile.cpp index 6164fcc..1b3dcd7 100644 --- a/common/tile.cpp +++ b/common/tile.cpp @@ -7,9 +7,3 @@ Tile::Tile() { Tile::Tile(Tile::Type t, bool re, bool ro) : type(t), red(re), rotated(ro){ } - -Tile::Tile(uint16_t w) { - type = Type(w & 0x00ff); - red = (w >> 8); - rotated = (w >> 9); -} diff --git a/common/tile.h b/common/tile.h index 8bd01b5..14fe8c1 100644 --- a/common/tile.h +++ b/common/tile.h @@ -56,7 +56,13 @@ class Tile { Tile(); Tile(Type t, bool re = false, bool ro = false); - Tile(uint16_t w); + + template<class Archive> + void serialize(Archive & ar, const unsigned int version) { + ar & type; + ar & red; + ar & rotated; + } }; typedef std::vector<Tile> Tiles; |