1 #include <boost/exception/all.hpp>
10 #include "World/Map/Player.hpp"
11 #include "World/World.hpp"
12 #include "World/Map/Map.hpp"
52 static_cast<int> (packet->GetType ())));
119 YAPOG_THROW(
"Unallowed to set parent for ClientSession.");
164 "Client logged: `" + login +
"'.");
176 catch (boost::exception& ex)
178 std::cout << boost::diagnostic_information (ex) << std::endl;
214 "New account created: `" + login +
"'.");
235 catch (boost::exception& ex)
237 std::cout << boost::diagnostic_information (ex) << std::endl;
261 "'s player data have been save.");
264 "Client disconnected: `" +
275 const auto& types = objectFactory.
GetTypes ();
277 packet.
Write (static_cast<yap::UInt64> (types.Count ()));
279 for (
const auto& it : types)
281 packet.
Write (it.first);
282 packet.
Write (it.second);