This would be a simple question for the author to answer, and probably anyone who's embeded AS before... I googled, but admit I didn't search this forum specifically for the answer...
If I have an object, which stores a static list of pointers to all instances of itself, if I register the type to AngelScript for users to isntantiate, will the pointer always be valid? IE: As long as the object is alive in the script, will the pointer point to the actual script object? Or is there a chance that AS will move the data?
In other words, to properly track the instance, will I have to register a move constructor?
What I'm doing is making simple little interface objects that abstract away keeping track of indexes, and other complications of my underlying API, and I want it to be as simple as changing an x/y variable on the instance, so I'll need to go through every instance of the interface class and read its data into my sprites, for example, before drawing their positions. The simpler way to do this would be to make everything a function, but instance.setX(number); is awfully verbose for what should be instance.x = number;