| 100 | } |
| 101 | |
| 102 | void serialize(nbt::tag_compound& server) |
| 103 | { |
| 104 | server.insert("name", m_name.trimmed().toUtf8().toStdString()); |
| 105 | server.insert("ip", m_address.trimmed().toUtf8().toStdString()); |
| 106 | if(m_icon.size()) |
| 107 | { |
| 108 | server.insert("icon", m_icon.toBase64().toStdString()); |
| 109 | } |
| 110 | if(m_acceptsTextures != AcceptsTextures::ASK) |
| 111 | { |
| 112 | server.insert("acceptTextures", nbt::tag_byte(m_acceptsTextures == AcceptsTextures::ALWAYS)); |
| 113 | } |
| 114 | } |
| 115 | |
| 116 | // Data - persistent and user changeable |
| 117 | QString m_name; |
no test coverage detected