Пример #1
0
 public IEnumerable <EditGadget> GetGadgets()
 {
     return(target_type.GetFilteredInstanceFields(
                Filterer_FieldInfo.HasCustomAttributeOfType <AttachEditGadgetAttribute>()
                ).Convert(f => f.CreateVariable())
            .TryNarrow((Variable v, out AttachEditGadgetAttribute a) =>
                       v.TryGetCustomAttributeOfType <AttachEditGadgetAttribute>(true, out a)
                       ).Convert(p => EditGadget.New(this, p.item1, p.item2)));
 }
Пример #2
0
 public EditorSceneElement_Complex_EditGadget(EditGadget g)
 {
     gadget = g;
 }
Пример #3
0
 public EditGadgetInstance(EditGadget g, object t)
 {
     gadget        = g;
     gadget_target = t;
 }