HomeWildfire Games

Add a function to query a global object, including JS classes, from C++

Description

Add a function to query a global object, including JS classes, from C++

The latter are not properties of the global object but stored within the global lexical environment.
This is not currently needed, but will be useful for future diffs.
Update Vector2D/3D querying.

Taken from D2746

Event Timeline

vladislavbelov added inline comments.
/ps/trunk/source/scriptinterface/ScriptInterface.cpp
722

Forgotten debug code.

723

I suppose it should be JS_GlobalLexicalEnvironment(rq.glob) according to mozilla usages.

/ps/trunk/source/simulation2/scripting/EngineScriptConversions.cpp
161

The unused variable wasn't removed.

197

The unused variable wasn't removed.