コード例 #1
0
ファイル: DebugSnifferItem.cs プロジェクト: newice/AntMeCore
        public DebugSnifferItem(ITypeResolver resolver, Vector2 pos)
            : base(resolver, pos, Angle.Right)
        {
            sniffer = new SnifferProperty(this)
            {
            };

            AddProperty(sniffer);
        }
コード例 #2
0
        public DebugSnifferItem(ITypeResolver resolver, Vector2 pos)
            : base(resolver, pos, Angle.Right)
        {
            sniffer = new SnifferProperty(this)
            {
            };

            AddProperty(sniffer);
        }
コード例 #3
0
        /// <summary>
        /// Internal Call to add another Sniffer to the List.
        /// </summary>
        /// <param name="item">New SnifferProperty of the Sniffing Item</param>
        internal void AddSnifferItem(SnifferProperty item)
        {
            if (!snifferItems.Contains(item))
            {
                snifferItems.Add(item);

                if (OnNewSnifferItem != null)
                    OnNewSnifferItem(item);
            }
        }
コード例 #4
0
 public void CleanupEngine()
 {
     VisibleItem   = null;
     SightingItem  = null;
     SmellableItem = null;
     SnifferItem   = null;
     Visible       = null;
     Sighting      = null;
     Smellable     = null;
     Sniffer       = null;
     Map           = null;
     Engine        = null;
 }
コード例 #5
0
 /// <summary>
 /// Internal Call to remove a sniffing Item from the List.
 /// </summary>
 /// <param name="item">Removed SnifferProperty of the Sniffing Item</param>
 internal void RemoveSnifferItem(SnifferProperty item)
 {
     if (snifferItems.Remove(item))
     {
         if (OnLostSnifferItem != null)
             OnLostSnifferItem(item);
     }
 }
コード例 #6
0
 private void InitSnifferItem(Vector2 pos)
 {
     SnifferItem = new DebugSnifferItem(pos);
     Sniffer = SnifferItem.GetProperty<SnifferProperty>();
     Engine.InsertItem(SnifferItem);
 }
コード例 #7
0
 public void CleanupEngine()
 {
     VisibleItem = null;
     SightingItem = null;
     SmellableItem = null;
     SnifferItem = null;
     Visible = null;
     Sighting = null;
     Smellable = null;
     Sniffer = null;
     Map = null;
     Engine = null;
 }
コード例 #8
0
 private void InitSnifferItem(Vector2 pos)
 {
     SnifferItem = new DebugSnifferItem(pos);
     Sniffer     = SnifferItem.GetProperty <SnifferProperty>();
     Engine.InsertItem(SnifferItem);
 }
コード例 #9
0
ファイル: SnifferState.cs プロジェクト: FrankFlamme/AntMeCore
 /// <summary>
 /// Default Constructor for the Type Mapper.
 /// </summary>
 /// <param name="item">Related Engine Item</param>
 /// <param name="property">Related Engine Property</param>
 public SnifferState(Item item, SnifferProperty property)
     : base(item, property)
 {
 }
コード例 #10
0
 /// <summary>
 /// Default Constructor for the Type Mapper.
 /// </summary>
 /// <param name="item">Related Engine Item</param>
 /// <param name="property">Related Engine Property</param>
 public SnifferState(Item item, SnifferProperty property) : base(item, property)
 {
 }