This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..
Question
vampir
Hi
I have made a very cool system to hold condiitons(for item usage, skill usage and other things) that makes it very easy to add next condition with minimum amount of code required, but using reflection is required in order to make it work. I am wondering what would be a nice way to do it with lambda, which would increase performance speed drastically.
This is one of the classes holding condition. For example adding zone method is the only thing required to be done in source in order to have
<zone name="zone_name_here" type="peace_zone/>
condition be added to xmls
That's how I run the method:
ConditionsHolder class is holding all methods, their parameters etc. The problem is that reflections are slow, so I am looking for the best way to make it with lambdas.
Any ideas?
Edited by vampir11 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now