public DebugSnifferItem(ITypeResolver resolver, Vector2 pos) : base(resolver, pos, Angle.Right) { sniffer = new SnifferProperty(this) { }; AddProperty(sniffer); }
/// <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); } }
public void CleanupEngine() { VisibleItem = null; SightingItem = null; SmellableItem = null; SnifferItem = null; Visible = null; Sighting = null; Smellable = null; Sniffer = null; Map = null; Engine = null; }
/// <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); } }
private void InitSnifferItem(Vector2 pos) { SnifferItem = new DebugSnifferItem(pos); Sniffer = SnifferItem.GetProperty<SnifferProperty>(); Engine.InsertItem(SnifferItem); }
private void InitSnifferItem(Vector2 pos) { SnifferItem = new DebugSnifferItem(pos); Sniffer = SnifferItem.GetProperty <SnifferProperty>(); Engine.InsertItem(SnifferItem); }
/// <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) { }