0ad/source/tools/atlas/GameInterface/Handlers
elexis a84e2e57df Use ScriptInterface::CreateObject for ToJSVal<CColor>, and for ToJSVal<Grid<u8> >, ToJSVal<Grid<u16> > used by the AIManager obtaining the pathfinder grid.
Make that function static, so that it can be used for these functions
without slowly having to obtain the ScriptInterface instance using
GetScriptInterfaceAndCBData just to get the JSContext again.
Remove few redundant conversions for CreateObject arguments.

Differential Revision: https://code.wildfiregames.com/D2128
Tested on: gcc 9.1.0, clang 8.0.1, Jenkins
Tedious performance testing in: D2128, D2127

This was SVN commit r22894.
2019-09-13 00:56:51 +00:00
..
BrushHandlers.cpp Add GPL header to Atlas code 2009-06-20 16:13:29 +00:00
CameraCtrlHandlers.cpp Atlas camera controls should be disabled too if a cinematic path is paused. 2017-04-05 04:00:19 +00:00
CinemaHandler.cpp Insert cinematic path nodes after the currently selected node instead of before (so paths are not created in the opposite of the expected order). 2017-07-01 15:49:59 +00:00
CommandHandlers.cpp huge cleanup and conversion of most string handling (especially paths) to unicode 2009-11-03 21:46:35 +00:00
ElevationHandlers.cpp Actually remove trailing tabs from source/. 2016-11-23 14:09:58 +00:00
EnvironmentHandlers.cpp Adds an tool to pick water high by terrain click in Atlas. 2019-07-09 18:16:55 +00:00
GraphicsSetupHandlers.cpp Remove unused GUIUtil functions, unused GUI includes and some tails in GUIUtil. 2019-08-25 08:57:36 +00:00
MapHandlers.cpp Use ScriptInterface::CreateObject for ToJSVal<CColor>, and for ToJSVal<Grid<u8> >, ToJSVal<Grid<u16> > used by the AIManager obtaining the pathfinder grid. 2019-09-13 00:56:51 +00:00
MessageHandler.cpp Add GPL header to Atlas code 2009-06-20 16:13:29 +00:00
MessageHandler.h split debug_assert into ENSURE and ASSERT as discussed in a previous meeting. 2011-04-30 13:01:45 +00:00
MiscHandlers.cpp Fix atlas clicking following 8f36ca47a1 / D326 by adding the missing clicks property to the wxWidgets SDL event construction. 2017-05-16 00:09:16 +00:00
ObjectHandlers.cpp Improve UTF-8 character handling in Atlas 2019-06-03 20:19:53 +00:00
PlayerHandlers.cpp Adds AI control to Atlas player panel 2011-06-13 23:32:41 +00:00
TerrainHandlers.cpp Fix some gcc 8 and gcc 9 compiler warnings that were thrown 4500 times. 2019-07-09 00:18:48 +00:00