RegisterVector<clsA>(clsA[], clsA, pScriptEngine);
or
RegisterVector<clsA*>(clsA[], clsA, pScriptEngine);
Cheers
RegisterVector<clsA>(clsA[], clsA, pScriptEngine);
or
RegisterVector<clsA*>(clsA[], clsA, pScriptEngine);
Cheers
AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game
Quote: Original post by WitchLord
I assume you're talking about the new script array template add-on. Yes, you can use array<clsA@>.
The RegisterVector template is based on std::vector and won't perform the proper reference counting necessary to do an array of object handles.
clsShape@ shape; // passed with executeStringarray<clsShape@> shapes; // executeString return -1.
AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game
AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game