varible names during construction
Is there an easy way to get variable names during construction?
So that in my construction behavior I can have access to the string name of the variable being created in the AS script?
~Scott
[size=1]'Behold! It is not over unknown seas but back over well-known years that your quest must go; back to the bright strange things of infancy and the quick sun-drenched glimpses of magic that old scenes brought to wide young eyes.'
I'm not exactly sure that I understand what you really want.
But here's what I think. Let's say you have a script like this:
You want to be able to access the name of the variable myObject, from within the constructor? Is that it?
Well, currently AngelScript doesn't store the variable names for local variables, only for global variables. But I have plans to improve the debugging capabilities for AngelScript by allowing the application to query variables, including name, type, scope, and value. Once that is implemented you should be able to access the variable name from within the constructor.
Regards,
Andreas
But here's what I think. Let's say you have a script like this:
void test(){ Object myObject();}
You want to be able to access the name of the variable myObject, from within the constructor? Is that it?
Well, currently AngelScript doesn't store the variable names for local variables, only for global variables. But I have plans to improve the debugging capabilities for AngelScript by allowing the application to query variables, including name, type, scope, and value. Once that is implemented you should be able to access the variable name from within the constructor.
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
Thanks Andreas, that's exactly it; sounds great. Keep up the great work.
~Scott
~Scott
[size=1]'Behold! It is not over unknown seas but back over well-known years that your quest must go; back to the bright strange things of infancy and the quick sun-drenched glimpses of magic that old scenes brought to wide young eyes.'
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement