void OnEntityEntered(object sender, EntityEventArgs e) { if (e.Record.Name.EndsWith(EntityNamingSuffix)) { return; } //Entity.Create(GetInspectableEntityName(e.Record)); }
protected virtual void OnDying(EntityEventArgs e) { EventHandler<EntityEventArgs> dying = Dying; if (dying != null) { dying(this, e); } }
protected virtual void OnHit(EntityEventArgs e) { EventHandler<EntityEventArgs> hit = Hit; if (hit != null) { hit(this, e); } }
protected virtual void OnEntityRemoved(object sender, EntityEventArgs e) { }
void OnEntityRemoved(object sender, EntityEventArgs e) { // remove any tags associated with only this entity foreach (KeyValuePair<string, ICollection<IEntityRecord>> pair in Annotations) { pair.Value.Remove(e.Record); } }
void OnEntityEntered(object sender, EntityEventArgs e) { }
protected override void OnEntityRemoved(object sender, EntityEventArgs e) { WriteInfo(String.Format("[-] {0}", e.Record)); }
void OnEntityRemoved(object sender, EntityEventArgs e) { //Entity.Drop(GetInspectableEntityName(e.Record)); }
void OnEntityRemoved(object sender, EntityEventArgs e) { }