0ad/source/scriptinterface
Yves 20ed5b118c Unify script conversions and remove JSInterface_Vector3D.
Because it was historically grown, we have some duplicated code for
converting script types to native types.
This patch removes the file JSConversions.cpp and moves some code to
ScriptConversions.cpp.
The places using JSConversions.cpp are changed to use the
ScriptInterface's conversion functions in ScriptConversions.cpp.
I also removed JSInterface_Vector3D because it had additional
requirements to the conversion code that no other code has and because
it's currently not used. I think it doesn't make sense to maintain code
just because it could possibly be used again later.

Closes #2213
Refs #1886

This was SVN commit r14036.
2013-10-20 17:13:53 +00:00
..
tests Implements global tech modification function. Fixes #1358, refs #1520. 2012-07-03 02:16:45 +00:00
AutoRooters.cpp split debug_assert into ENSURE and ASSERT as discussed in a previous meeting. 2011-04-30 13:01:45 +00:00
AutoRooters.h Support new SpiderMonkey API. 2010-11-16 23:00:52 +00:00
DebuggingServer.cpp Unify script conversions and remove JSInterface_Vector3D. 2013-10-20 17:13:53 +00:00
DebuggingServer.h Adds the server-side part of the javascript debugger. Refs #410 2013-03-07 13:49:49 +00:00
NativeWrapperDecls.h Use JSFastNative API in more places, for improved compatibility with future SpiderMonkey versions. 2010-10-21 19:54:59 +00:00
NativeWrapperDefns.h Adds the server-side part of the javascript debugger. Refs #410 2013-03-07 13:49:49 +00:00
ScriptConversions.cpp Unify script conversions and remove JSInterface_Vector3D. 2013-10-20 17:13:53 +00:00
ScriptExtraHeaders.h Suppress unused local typedef warnings when including SpiderMonkey headers. 2013-08-19 18:26:44 +00:00
ScriptInterface.cpp Ticket #2127 - Performance and style improvements in scriptinterface. 2013-09-16 19:10:06 +00:00
ScriptInterface.h Give an elevation advantage to ranged units. Patch by sanderd17. Fix #1960. 2013-08-03 19:20:20 +00:00
ScriptStats.cpp Remove a load of implicit CStr type conversions, since they're error-prone and can cause silent data loss. 2011-02-17 20:08:20 +00:00
ScriptStats.h Add JS memory usage to profiler. 2010-08-02 19:23:58 +00:00
ScriptTypes.h This was SVN commit r10870. 2012-01-05 03:38:54 +00:00
ScriptVal.cpp Fix some static analysis warnings 2013-01-21 20:33:25 +00:00
ScriptVal.h Add AI script code to provide a cleaner API around the engine interface. 2011-01-15 23:35:20 +00:00
ThreadDebugger.cpp Ticket #2127 - Performance and style improvements in scriptinterface. 2013-09-16 19:10:06 +00:00
ThreadDebugger.h Ticket #2127 - Performance and style improvements in scriptinterface. 2013-09-16 19:10:06 +00:00