In order to correctly save and restore a script object between games, I need to know what module a script object is in, but this information doesn't seem to be available.
I think I'll be able to workaround this by getting the information for one of the object's methods, but it seems odd that the module isn't available from the asIObjectType for the object.
Need module of script object
Why do you need the module for the script object? Is it to be able to recreate the object when reloading the object?
The object type currently doesn't store the module in which it was declared. I never had a need for it. In order to allow sharing object types and functions between modules I'm also intending to move away from storing the module in functions too.
Once object types and functions can be shared between modules I would instead have a way of enumerating the modules which are currently referring to it.
The object type currently doesn't store the module in which it was declared. I never had a need for it. In order to allow sharing object types and functions between modules I'm also intending to move away from storing the module in functions too.
Once object types and functions can be shared between modules I would instead have a way of enumerating the modules which are currently referring to it.
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