public GraphicEntity GetEntity(ElementTag tag) { if (!entities.Contains(tag)) { return(GraphicEntity.Empty()); //throw new Exception($"There is no {tag} "); } return(new GraphicEntity(tag, this, this, orderContainer)); }
public GraphicEntity GetEntityOf <T>(T com) where T : IGraphicComponent { var typec = typeof(T); foreach (var en in entities) { if (en.Value.TryGetValue(typec, out var tag) && tag == com.Tag) { return(new GraphicEntity(en.Key, this, this, orderContainer)); } } return(GraphicEntity.Empty()); }
public GraphicEntity CreateEntity(ElementTag tag) => GraphicEntity.Empty();
public GraphicEntity GetEntityOf <T>(T com) where T : IGraphicComponent => GraphicEntity.Empty();
public GraphicEntity GetEntity(ElementTag tag) => GraphicEntity.Empty();