示例#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;
 }