Пример #1
0
 /// <summary>
 /// Internal call for every sniffed item per Round.
 /// </summary>
 /// <param name="item">Sniffed Item</param>
 internal void NoteSmellableItem(SmellableProperty item)
 {
     if (OnSmellableItem != null)
     {
         OnSmellableItem(item);
     }
 }
Пример #2
0
 /// <summary>
 /// Internal Call to remove a smellable Item from the List.
 /// </summary>
 /// <param name="item">Property of the removed Item</param>
 internal void RemoveSmellableItem(SmellableProperty item)
 {
     if (smellableItems.Remove(item))
     {
         if (OnLostSmellableItem != null)
         {
             OnLostSmellableItem(item);
         }
     }
 }
Пример #3
0
        /// <summary>
        /// Internal Call to Add a new smellable Item to the List.
        /// </summary>
        /// <param name="item">Property of the new Item</param>
        internal void AddSmellableItem(SmellableProperty item)
        {
            if (!smellableItems.Contains(item))
            {
                smellableItems.Add(item);

                if (OnNewSmellableItem != null)
                {
                    OnNewSmellableItem(item);
                }
            }
        }
Пример #4
0
 /// <summary>
 /// Default Constructor for the Type Mapper.
 /// </summary>
 /// <param name="item">Related Engine Item</param>
 /// <param name="property">Related Engine Property</param>
 public SmellableState(Item item, SmellableProperty property) : base(item, property)
 {
 }
Пример #5
0
 /// <summary>
 /// Default Constructor for the Type Mapper.
 /// </summary>
 /// <param name="item">Related Engine Item</param>
 /// <param name="property">Related Engine Property</param>
 public SmellableState(Item item, SmellableProperty property)
     : base(item, property)
 {
 }