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))); }
public EditorSceneElement_Complex_EditGadget(EditGadget g) { gadget = g; }
public EditGadgetInstance(EditGadget g, object t) { gadget = g; gadget_target = t; }