Passing an array to application function
I want to know if it is possible to pass a pointer to the beginning of a script defined array to an application function. like: //script int[] x(50); FillArray(x, 50); //app void FillArray(int*x, size s) { //code to fill array }
Currently it is only possible if you override the array type you wish to receive. See the add-on/std_vector/stdvector.h for an example of how that can be done. You will then receive the array object just like a normal registered object.
I'm planning on implementing a specific interface for AngelScript arrays that will allow the application to manipulate script arrays without having to override the implementation.
I'm planning on implementing a specific interface for AngelScript arrays that will allow the application to manipulate script arrays without having to override the implementation.
AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game
Also, I'm sure there is a reason, but why does not the ASStdString.cpp file register the string methods such as find/replace/insert etc?
If there is not a good reason, I'll send you my registration of it for you to look at or include.
If there is not a good reason, I'll send you my registration of it for you to look at or include.
No reason at all. I just haven't written the registration for those methods.
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
Recommended Tutorials
Advertisement