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); }
private DepotUiObject(DepotUiObject parent, UiElementInfo uiElementInfo) { m_parent = parent; m_uiElementInfo = uiElementInfo; }