| 14 | { |
| 15 | |
| 16 | void ResourceManualPointer::deserialization(xml::ElementPtr _node, Version _version) |
| 17 | { |
| 18 | Base::deserialization(_node, _version); |
| 19 | |
| 20 | // берем детей и крутимся, основной цикл |
| 21 | xml::ElementEnumerator info = _node->getElementEnumerator(); |
| 22 | while (info.next("Property")) |
| 23 | { |
| 24 | std::string_view key = info->findAttribute("key"); |
| 25 | std::string_view value = info->findAttribute("value"); |
| 26 | |
| 27 | if (key == "Point") |
| 28 | mPoint = IntPoint::parse(value); |
| 29 | else if (key == "Size") |
| 30 | mSize = IntSize::parse(value); |
| 31 | else if (key == "Texture") |
| 32 | mTexture = value; |
| 33 | else if (key == "Coord") |
| 34 | mTextureCoord = IntCoord::parse(value); |
| 35 | } |
| 36 | } |
| 37 | |
| 38 | void ResourceManualPointer::setImage(ImageBox* _image) |
| 39 | { |
nothing calls this directly
no test coverage detected