AngelScript 2.14.0
Changes for this version include:
Moved the dedicated C interface to a add_on. Complete with project file for building a windows DLL with the C interface. There is also a separate C header file that doesn't include all the C++ specific code.
Added the asBEHAVE_IMPLICIT_VALUE_CAST behaviour, that lets applications tell AngelScript which value casts can be made implicitly and which must be explicitly requested.
Changed the methods for enumerating global variables in the modules. Each global variable is now uniquely identified with the module name and index, rather than the global variable id it used before.
Added a WriteMessage method to the engine, that lets the application send messages to the message callback routine. This is useful for pre or post processing of the scripts.
Interfaces that are declared exactly the same way in two different modules will now share type ids. This makes it easier to have objects from one module be used in another.
Added a constraint against the application mistakedly trying to build multiple scripts simultaneously in different threads. Since building modifies the internal state of the engine, this would have caused conflicts and possible hard to find bugs. Now the engine will return an error, should this happen, and the application can retry again later when the first thread has completed its build.
Improved enumeration of object types in the engine. Now the engine returns the application registered types as well with the GetObjectTypeCount and GetObjectTypeByIndex.
The context has also been enhanced to allow it to call application registered functions/class methods directly. Just pass the function id for the registered function/method to Prepare as you would normally do.
The scripts cast<type> operator can now only be used for reference casts. Value casts should use the type constructor format, e.g. int(expr).
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