![]() Doing this in every script is unnecessary since the event trigger is parameterized by the item id. All that would happen is 2000 scripts would trigger 1999 unnecessary calls, and a large number of initialized scripts may eventually trigger a StackOverflowException. Registration moved to UrlModule so that the handler is registered for all script engine implementations. This required moving the OnScriptRemoved and OnObjectRemoved events (only used by UrlModule in core) from IScriptEngine to IScriptModule to avoid circular references. |
||
---|---|---|
.. | ||
ICompiler.cs | ||
IScript.cs | ||
IScriptApi.cs | ||
IScriptEngine.cs | ||
IScriptInstance.cs |