YAPOG  0.0.1
Yet Another Pokemon Online Game
RectWriter.hxx
Go to the documentation of this file.
1 #ifndef YAPOG_RECTWRITER_HXX
2 # define YAPOG_RECTWRITER_HXX
3 
7 
8 namespace yap
9 {
10  template <typename T>
11  inline RectWriter<T>::RectWriter (const sf::Rect<T>& rect)
13  , rect_ (rect)
14  {
15  }
16 
17  template <typename T>
19  {
20  }
21 
22  template <typename T>
23  inline void RectWriter<T>::Visit (XmlWriter& visitable)
24  {
26  }
27 
28  template <typename T>
29  inline void RectWriter<T>::Visit (IPacket& visitable)
30  {
31  visitable.Write (rect_.left);
32  visitable.Write (rect_.top);
33  visitable.Write (rect_.width);
34  visitable.Write (rect_.height);
35  }
36 } // namespace yap
37 
38 #endif // YAPOG_RECTWRITER_HXX