示例#1
0
        public static DepotUiObject Load(Stream stream)
        {
            //if (m_isVirtualRoot)
            //{
            //    return "Root";
            //}
            //return m_xDoc.Root.Attribute(UiInfoFactory.UiElementNameAttributeName).Value;
            var                   uiInfoFactory      = UiInfoFactory.Load(stream);
            DepotUiObject         root               = new DepotUiObject(null, null);
            Queue <UiElementInfo> uiElementInfoQueue = new Queue <UiElementInfo>();

            uiElementInfoQueue.EnqueueRange(uiInfoFactory.UiElementInfos);
            return(root);
        }
示例#2
0
 private DepotUiObject(DepotUiObject parent, UiElementInfo uiElementInfo)
 {
     m_parent        = parent;
     m_uiElementInfo = uiElementInfo;
 }