/// <summary> /// Adds the specified entity. /// </summary> /// <param name="entity">The entity to add.</param> internal void InternalAddEntity(Entity entity) { // Already added? if (entities.ContainsKey(entity)) { return; } var entityProcessors = new List <EntityProcessor>(); entities.Add(entity, entityProcessors); enabledEntities.Add(entity); entity.AddReferenceInternal(); entity.Tags.PropertyUpdated += EntityPropertyUpdated; // Check which processor want this entity foreach (var system in processors) { system.EntityCheck(entity, entityProcessors); } }
void ActiveConnectorBehavior.IActiveConnectorHandler.OnAttached(FrameworkElement slot) { connectors_.Add(slot.DataContext, slot); }