1
0
forked from 0ad/0ad
0ad/source/simulation2/scripting
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
..
EngineScriptConversions.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
JSInterface_Simulation.cpp Add missing ScriptInterface includes to 2018-04-27 16:48:44 +00:00
JSInterface_Simulation.h Add missing ScriptInterface includes to 2018-04-27 16:48:44 +00:00
MessageTypeConversions.cpp UnitMotion - Send messages to UnitAI when obstructed, to allow stopping early when walking and avoiding pathfinding lag. 2019-07-22 18:07:24 +00:00
ScriptComponent.cpp Pass ScriptInterface as a const ref where possible. 2017-08-24 00:32:42 +00:00
ScriptComponent.h Pass ScriptInterface as a const ref where possible. 2017-08-24 00:32:42 +00:00