forked from mirrors/0ad
Add AI script code to provide a cleaner API around the engine interface.
Handle AIProxy entirely through scripts. Support structured clones of script values. Improve performance. Support multiple script contexts sharing a runtime. Use a separate context per AI player. This was SVN commit r8866.
This commit is contained in:
@@ -27,7 +27,7 @@ class TestScriptVal : public CxxTest::TestSuite
|
||||
public:
|
||||
void test_rooting()
|
||||
{
|
||||
ScriptInterface script("Test");
|
||||
ScriptInterface script("Test", "Test", ScriptInterface::CreateRuntime());
|
||||
JSContext* cx = script.GetContext();
|
||||
|
||||
JSObject* obj = JS_NewObject(cx, NULL, NULL, NULL);
|
||||
|
||||
Reference in New Issue
Block a user