7 #include "ServerInfo.h"
11 #include <Atlas/Objects/Entity.h>
14 using Atlas::Objects::Entity::RootEntity;
21 Atlas::Message::Element element;
23 if (!svr->copyAttr(
"ruleset", element) && element.isString()) {
29 name = svr->getName();
30 if (!svr->copyAttr(
"clients", element) && element.isInt()) {
35 if (!svr->copyAttr(
"server", element) && element.isString()) {
40 if (!svr->copyAttr(
"uptime", element) && element.isFloat()) {
48 if (!svr->copyAttr(
"entities", element) && element.isInt()) {
52 if (!svr->copyAttr(
"version", element) && element.isString()) {
56 if (!svr->copyAttr(
"builddate", element) && element.isString()) {
60 if (!svr->copyAttr(
"protocol_version", element) && element.isInt()) {
64 if (!svr->copyAttr(
"assets", element) && element.isList()) {
65 for (
auto& url : element.List()) {
67 assets.emplace_back(url.String());