/// <summary> /// Removes the given handler /// </summary> public void RemoveEquipmentHandler(IItemEquipmentEventHandler handler) { if (m_ItemEquipmentEventHandlers != null) { m_ItemEquipmentEventHandlers.Remove(handler); } }
/// <summary> /// Adds a handler to be notified upon equipment changes /// </summary> public void AddEquipmentHandler(IItemEquipmentEventHandler handler) { if (m_ItemEquipmentEventHandlers == null) { m_ItemEquipmentEventHandlers = new List<IItemEquipmentEventHandler>(3); } m_ItemEquipmentEventHandlers.Add(handler); }