public virtual void Setup_AfterAdd(XML xml)
{
string str;
str = xml.GetAttribute("group");
if (str != null)
group = parent.GetChildById(str) as GGroup;
XMLList.Enumerator et = xml.GetEnumerator();
XML cxml;
int index;
while (et.MoveNext())
{
cxml = et.Current;
if (GearXMLKeys.TryGetValue(cxml.name, out index))
GetGear(index).Setup(cxml);
}
}