public void EquipChanged() { GCombatGump.Update(); this.m_Equip.Sort(LayerComparer.FromDirection(this.m_Direction)); if (this.m_Paperdoll != null) { Gumps.OpenPaperdoll(this, this.m_PaperdollName, this.m_PaperdollCanDrag); } }
public void AddEquip(EquipEntry e) { if (LayerComparer.FromDirection(this.m_Direction).IsValid(e.m_Layer)) { int count = this.m_Equip.Count; int index = 0; while (index < count) { EquipEntry entry = (EquipEntry)this.m_Equip[index]; if (entry.m_Layer == e.m_Layer) { this.m_Equip.RemoveAt(index); count--; } else { index++; } } this.m_Equip.Add(e); this.EquipChanged(); } }