YAPOG
0.0.1
Yet Another Pokemon Online Game
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
ConfigurationReader.cpp
Go to the documentation of this file.
1
#include "
YAPOG/System/IO/Xml/XmlReader.hpp
"
2
3
#include "Configuration/ConfigurationReader.hpp"
4
#include "
Configuration/GameData.hpp
"
5
6
namespace
ycl
7
{
8
ConfigurationReader::ConfigurationReader
(
9
GameData
& gameData,
10
const
yap::String
& xmlRootNodeName)
11
: yap::
ConfigurationReader
(xmlRootNodeName)
12
, gameData_ (gameData)
13
{
14
}
15
16
ConfigurationReader::~ConfigurationReader
()
17
{
18
}
19
20
void
ConfigurationReader::HandleVisitXmlReader
(
yap::XmlReader
& visitable)
21
{
22
yap::ConfigurationReader::HandleVisitXmlReader
(visitable);
23
24
gameData_
.
remoteIPAddress_
= visitable.
ReadString
(
"IP"
);
25
26
gameData_
.
windowSize_
= visitable.
ReadVector2
(
"WindowSize"
);
27
gameData_
.
resolution_
= visitable.
ReadVector2
(
"Resolution"
);
28
29
gameData_
.
contentPath_
= visitable.
ReadString
(
"ContentPath"
);
30
gameData_
.
texturePath_
= visitable.
ReadString
(
"TexturePath"
);
31
gameData_
.
fontPath_
= visitable.
ReadString
(
"FontPath"
);
32
gameData_
.
musicPath_
= visitable.
ReadString
(
"MusicPath"
);
33
gameData_
.
soundPath_
= visitable.
ReadString
(
"SoundPath"
);
34
}
35
}
// namespace ycl
YAPOG.Client
src
Configuration
ConfigurationReader.cpp
Generated on Mon Sep 17 2012 22:24:26 for YAPOG by
1.8.1.1