/// <summary> /// Creates the ElementManager given an IElementHelper class that maps MTA elements to classes /// </summary> public ElementManager(IElementHelper helper) { elementHelper = helper; instance = this; elements = new Dictionary <object, Element>(); MtaElement mtaRoot = MtaShared.GetRootElement(); root = elementHelper.InstantiateElement(MtaShared.GetElementType(mtaRoot), mtaRoot); }