public override bool Load(SecurityElement element) { if (element.Tag != "Items") { return(false); } if (element.Children != null) { foreach (SecurityElement childrenElement in element.Children) { NPCObject accessoryObject = new NPCObject(); accessoryObject.Load(childrenElement); if (!_accessoryDict.ContainsKey(accessoryObject.NPCID)) { _accessoryDict[accessoryObject.NPCID] = accessoryObject; } } return(true); } return(false); }