Original Post
I want to know, how to create classes dynamically, from, for exmaple a .MAP file. The file can store the class type of an entity, and then my program will load the relavent class. The thing is I dont want to hard code the classes into the code. Think half-life, in the may a modder, doesn''t have to add the code to create the class for a new weapon, they just code the class, and it looks for it, giving an error if its not found.
I know a function name can be stored as a string and cast as a function using the (PROC) type cast, so I thought a method like this may exist... any help?