public virtual void Write(string name, GumpGroup e) { if (_LastNode != null && _LastNode.Name != e.GetType().Name) { SetAttribute("group", e.Group); return; } AppendGroup(); CreateGroupElement(e); SetGroupAttribute("name", name); SetGroupAttribute("value", e.Group); }
private void CreateGroupElement(GumpGroup e) { _CurrentGroupNode = _Document.CreateElement(e.GetType().Name); }