MyGUI 3.5.3
MyGUI_IResource.cpp
Go to the documentation of this file.
1/*
2 * This source file is part of MyGUI. For the latest info, see http://mygui.info/
3 * Distributed under the MIT License
4 * (See accompanying file COPYING.MIT or copy at http://opensource.org/licenses/MIT)
5 */
6
7#include "MyGUI_IResource.h"
8
9#include <pugixml.hpp>
10
11namespace MyGUI
12{
13
14 IResource::~IResource() = default;
15
16 void IResource::deserialization(xml::ElementPtr _node, Version /*_version*/)
17 {
18 auto attr = _node.node().attribute("name");
19 if (attr)
20 mResourceName = attr.value();
21 }
22
23} // namespace MyGUI