Hi,
I've recently been trying to get a callback system working for buttons in my project.
Anyway so currently I have a simple List<> which stores a class that should contain the button data and the callback.
The only problem is I'm not sure how to implement callbacks. I've been reading up on delegates and I can't come to a solution.
I basically want to be able to:
list[index].Callback(someMethodInSomeClass);
Basically the same way as it's done in InSimDotNet with packet bindings.
I've read through the InSimDotNet source and I still can't figure it out...
Any ideas?