Hey ModGuy,
I really like how we can now use proxys to replace various methods. I do however have some suggestions about it, that could (in my personal opinion make things easier.
1.Suggestion:
Right now, both pre and post functions are called in order like:
pre1; pre2; original; post1;post2
I think, it would be more convenient in most cases, if the pre functions would be called in decending order. like this:
pre2; pre1, original; post1; post2
That way, a newly added pre-post pair would enclose the old "Method-Block", in the same way the first pair enclosed the original function.I think his could avoid conflicts, when a method is proxied by multiple mods.
2. Sugestion:
i think it would be good if there was a way to modify the input parameters, befor they are given to the original funktion, ore any other pre function. Iwas thinking about something like a second type of pre function, that returns an array,, wich will be forwarded as input parameters to the next function, similar to how the post functions work.
pre2(param1a, param1b); --> returns param2a and 2b
pre 1(param2a, param2b) --> returns param param3a and 3b
original (param3a, param3b) --> returns ret1
post1(ret1) --> returns ret2
post2 (ret2) --> returns final Value
I hope you see, what I meen with this and why I think it's a more logical wy to add aditional code to existing methods.
But of course, this is for you to decide. The loader is your Project after all, Just my 2 cents