예제 #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;
 }