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