🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

object function and variable list

Started by
1 comment, last by chasester123 8 years, 9 months ago

What would be the simplest way to (in the c++ code) list all the variables of an object. I am using angel script as the script to control objects/nodes in my 3d world. So I need a way to find all the objects of a call (inherited as well) check to see if they are private, constants, etc. So i can save them back in a serialized form for saving/reloading.

any help

thanks

chasester

Advertisement

You'd use the asIObjectType interface to inspect the declaration of object properties, and asIScriptObject to get/set the values of the object properties.

The serializer add-on may be of help getting your save system working.

You may also find the article on Reflection of interest.

Regards,

Andreas

AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game

I appreciate your fast response

This topic is closed to new replies.

Advertisement