I'm writing a function that allows you to dump information about a object. It lists interfaces it implements, methods, properties, etc. Getting the pointer of the property is easy, but how can I tell if it's been initialized or not?
Thanks,
Jeremy
Determining if a script class property has been initialized
Properties that are of object types should return null on GetAddressOfProperty if the property hasn't been initialized yet. Properties of primitive types will always return a valid address even if they haven't been initialized yet.
If the constructor/factory has completed you can assume all properties have been initialized.
AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement