YAPOG
0.0.1
Yet Another Pokemon Online Game
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
RectWriter.hxx
Go to the documentation of this file.
1
#ifndef YAPOG_RECTWRITER_HXX
2
# define YAPOG_RECTWRITER_HXX
3
4
# include "
YAPOG/System/StringHelper.hpp
"
5
# include "
YAPOG/System/Network/IPacket.hpp
"
6
# include "
YAPOG/System/IO/Xml/XmlWriter.hpp
"
7
8
namespace
yap
9
{
10
template
<
typename
T>
11
inline
RectWriter<T>::RectWriter
(
const
sf::Rect<T>& rect)
12
:
BaseWriterVisitor
()
13
, rect_ (rect)
14
{
15
}
16
17
template
<
typename
T>
18
inline
RectWriter<T>::~RectWriter
()
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
YAPOG
include
YAPOG
Graphics
RectWriter.hxx
Generated on Mon Sep 17 2012 22:24:24 for YAPOG by
1.8.1.1