1
1
forked from 0ad/0ad
0ad/source/simulation2
Yves 1b5ab8142e Makes custom JS objects compatible with SpiderMonkey ESR31.
In v24 you called JS_InitClass and passed in a definition of JSNative
functions. Later you could call JS_NewObject with this class and the
object would get a prototype with the specified JSNative functions.
In ESR31 you now have to explicitly store the prototype object returned
by JS_InitClass and pass it as prototype argument to JS_NewObject to
achieve the same.
This change modifies our existing ScriptInterface implementation for
custom object types a bit and uses it at places where the JSAPI was used
directly before.

Refs #2462

This was SVN commit r15524.
2014-07-13 15:31:48 +00:00
..
components Small cleanup, including a correction in the templates documentation, and the removal of residues from the culling changes. 2014-07-12 16:03:37 +00:00
docs Updates example component documentation 2013-02-26 19:58:51 +00:00
helpers fix compiling problem caused by 8226d75715 2014-01-07 14:37:02 +00:00
scripting Makes custom JS objects compatible with SpiderMonkey ESR31. 2014-07-13 15:31:48 +00:00
serialization Second (main) commit for the SpiderMonkey upgrade. 2014-03-28 20:26:32 +00:00
system Makes custom JS objects compatible with SpiderMonkey ESR31. 2014-07-13 15:31:48 +00:00
tests Simplify component deserialization. 2014-06-01 18:14:09 +00:00
MessageTypes.h Add a VisibilityChanged message sent by the range manager whenever an entity changes visibility for any player. 2014-07-10 20:51:39 +00:00
Simulation2.cpp Add engine support to triggers + a component to provide an easy interface and to be extended by triggers. Thanks to SpahBod for the biggest part of the code, and Yves for the review. 2014-06-23 13:42:59 +00:00
Simulation2.h Removes g_ScriptingHost and implements global to compartment 1 to 1 relation. 2014-01-04 10:14:53 +00:00
TypeList.h Add a VisibilityChanged message sent by the range manager whenever an entity changes visibility for any player. 2014-07-10 20:51:39 +00:00