示例#1
0
		/// <summary>
		/// Removes the given handler
		/// </summary>
		public void RemoveEquipmentHandler(IItemEquipmentEventHandler handler)
		{
			if (m_ItemEquipmentEventHandlers != null)
			{
				m_ItemEquipmentEventHandlers.Remove(handler);
			}
		}
示例#2
0
		/// <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);
		}