1
0
forked from 0ad/0ad
0ad/source/simulation2/system
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
..
CmpPtr.cpp # Rewrite of the game's simulation system 2010-01-09 19:20:14 +00:00
CmpPtr.h Avoid slightly-expensive QueryInterface() calls 2013-09-11 20:41:53 +00:00
Component.h Dynamic message subscriptions. 2014-06-19 23:20:12 +00:00
ComponentManager.cpp Dynamic message subscriptions. 2014-06-19 23:20:12 +00:00
ComponentManager.h Dynamic message subscriptions. 2014-06-19 23:20:12 +00:00
ComponentManagerSerialization.cpp Simplify component deserialization. 2014-06-01 18:14:09 +00:00
Components.h # Rewrite of the game's simulation system 2010-01-09 19:20:14 +00:00
ComponentTest.h Second (main) commit for the SpiderMonkey upgrade. 2014-03-28 20:26:32 +00:00
DynamicSubscription.cpp Dynamic message subscriptions. 2014-06-19 23:20:12 +00:00
DynamicSubscription.h Fix non-PCH build 2014-06-19 23:36:09 +00:00
Entity.h Avoid slightly-expensive QueryInterface() calls 2013-09-11 20:41:53 +00:00
EntityMap.h Fix invalid count for entityMaps 2014-03-05 14:58:17 +00:00
IComponent.cpp Makes custom JS objects compatible with SpiderMonkey ESR31. 2014-07-13 15:31:48 +00:00
IComponent.h Makes custom JS objects compatible with SpiderMonkey ESR31. 2014-07-13 15:31:48 +00:00
Interface.h Makes custom JS objects compatible with SpiderMonkey ESR31. 2014-07-13 15:31:48 +00:00
InterfaceScripted.h Makes custom JS objects compatible with SpiderMonkey ESR31. 2014-07-13 15:31:48 +00:00
Message.h Fix serialize/deserialize API asymmetry. 2010-09-17 17:53:26 +00:00
ParamNode.cpp Second (main) commit for the SpiderMonkey upgrade. 2014-03-28 20:26:32 +00:00
ParamNode.h Wall placement. Closes #786. 2012-05-05 19:22:22 +00:00
SimContext.cpp As per ticket #1707. Some minor improvements to spatial subdivision. Makes way for future changes in RangeManager. 2013-09-15 14:03:53 +00:00
SimContext.h Avoid slightly-expensive QueryInterface() calls 2013-09-11 20:41:53 +00:00