Archived

This topic is now archived and is closed to further replies.

F104

Runtime class browser/editor

Recommended Posts

F104    130
Hi, I have to develop an editor for our 3D engine. I would take a bit different way to do it... simply browse and edit all the properties of all the engine''s classes! :-) So... is it possible to get class''s properties and their values RUNTIME? I''m speaking about C++ :-) Bye Bye F104/NA

Share this post


Link to post
Share on other sites
Shannon Barber    1681
Um, no.

There''s a modern technique to acquire that information at compile-time, but it requires a compiler with very good template support.

The alternative is an abstact base-class that has pure enumeration and get/set functions that every game object must implement. This is much how the IDispatch interface in COM works.

Share this post


Link to post
Share on other sites