YAPOG  0.0.1
Yet Another Pokemon Online Game
ConfigurationReader.cpp
Go to the documentation of this file.
2 
3 #include "Configuration/ConfigurationReader.hpp"
5 
6 namespace ycl
7 {
9  GameData& gameData,
10  const yap::String& xmlRootNodeName)
11  : yap::ConfigurationReader (xmlRootNodeName)
12  , gameData_ (gameData)
13  {
14  }
15 
17  {
18  }
19 
21  {
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