Example #1
0
 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());
        }
Example #3
0
 public GraphicEntity CreateEntity(ElementTag tag) => GraphicEntity.Empty();
Example #4
0
 public GraphicEntity GetEntityOf <T>(T com) where T : IGraphicComponent => GraphicEntity.Empty();
Example #5
0
 public GraphicEntity GetEntity(ElementTag tag) => GraphicEntity.Empty();