Closed Vigerus closed 4 months ago
Could you give an example implementation of a lambda in strategies (or whatnot)? I'm mostly curious how you use this change in functionality.
After making a PR and taking a dog for a walk I have some second thoughts about this, I was only testing it with 200 bots. The raw pointers to static functions have one big advantage - they are instantiated once. I'll do some tests. And ofc, I will send the idea behind having this.
Looks like it's not gonna happen, if you come back to this please reopen
Allows to use lambdas in strategies and whatnot instead of stupid static functions.
Tested for three weeks with vanilla server.