Example #1
0
 public IEnumerable <EditFunction> GetFunctions()
 {
     return(target_type.GetFilteredInstanceMethods(
                Filterer_MethodInfo.HasCustomAttributeOfType <InspectorFunctionAttribute>()
                ).Convert(m => m.CreateFunction())
            .Convert(f => EditFunction.New(this, f)));
 }
Example #2
0
 public EditFunction ForceFunction(string path, IEnumerable <Type> parameter_types)
 {
     return(EditFunction.New(
                this,
                target_type.GetFunctionByPath(path, parameter_types)
                .AssertNotNull(() => new MissingMethodException("No function exists for type " + GetTargetType() + " and path " + path))
                ));
 }
Example #3
0
 public EditorGUIElement_EditFunction_Button(EditFunction f) : base(f)
 {
 }
Example #4
0
 public EditorGUIElement_EditFunction(EditFunction f)
 {
     edit_function = f;
 }