public void ApiTypeLSL(IScriptApi api) { if (!(api is ILSL_Api)) return; m_LSL_Functions = (ILSL_Api)api; }
/// <summary> /// Initialize the LSL interface. /// </summary> /// <remarks> /// FIXME: This is an abomination. We should be able to set this up earlier but currently we have no /// guarantee the interface is present on Initialize(). There needs to be another post initialize call from /// ScriptInstance. /// </remarks> private void InitLSL() { if (m_LSL_Api != null) return; m_LSL_Api = (ILSL_Api)m_ScriptEngine.GetApi(m_item.ItemID, "LSL"); }