Hello,
I'm wondering if it's possible to assign some scripted user-specific variable to a class instance ?
For example, I have a C++ registered class, an instance is created locally in a function :
I have MyClass.origin variable (registered from C++) and I want to save it to MyClass.old_origin (without registering old_origin from C++), will AngelScript create a new variable slot in the class ?
In Squirrel you can't do "class.old_origin <- class.origin", it will simply print that class instances doesn't support the new slot operator. In some games you can do this (o/c they have their own compiler and ScriptVariable class ha).
I'm just wondering because Squirrel and AngelScript are the best interpreter for me and I need to choose which is the most flexible.