Original Post
I want to add a debug/command console to my game in the style of quake/doom3. what I would like to be able to do is add commands with a pointer to a function dynamicly without having to make any changes to the console class every time I want to add a command. I thought about function pointers but there is no way to make generic function pointer that will take any type of functions. is there any way to do this? if someone could even point me in the right direction, that would be great. thanks [Edited by - kozlojak on May 24, 2009 7:50:55 PM]