Retrieving the number of modules?
I was looking at enumerating script variables and noticed that they require a module name.
If I've got multiple registered modules, I want to be able to enumerate all variables over all modules.
To do this I was hoping to implement a simple algorithm similar to how you do it for variables... except for 1 problem: There is not GetModuleCount() method on the script engine.
So, another question would be, does passing 0 to GetGlobalVarCount return the number of variables for all modules?
You should already know how many modules there are, and which ones they are since you're the one who created them.
Passing 0 as the module name is the same as passing "", which is just a module without an explicit name.
Regards,
Andreas
Passing 0 as the module name is the same as passing "", which is just a module without an explicit name.
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
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement