mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-07-08 18:04:25 +00:00
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:
@@ -29,7 +29,7 @@
|
||||
|
||||
ScriptingHost::ScriptingHost()
|
||||
{
|
||||
m_ScriptInterface = new ScriptInterface("Engine", "GUI");
|
||||
m_ScriptInterface = new ScriptInterface("Engine", "GUI", ScriptInterface::CreateRuntime());
|
||||
|
||||
m_Context = m_ScriptInterface->GetContext();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user