public Activate ( UUID itemID, int handle ) : void | ||
itemID | UUID | |
handle | int | |
Результат | void |
/// <summary> /// Sets the listen event with handle as active (active = TRUE) or inactive (active = FALSE). /// The handle used is returned from Listen() /// </summary> /// <param name="itemID">UUID of the script engine</param> /// <param name="handle">handle returned by Listen()</param> /// <param name="active">temp. activate or deactivate the Listen()</param> public void ListenControl(UUID itemID, int handle, int active) { if (active == 1) { m_listenerManager.Activate(itemID, handle); } else if (active == 0) { m_listenerManager.Deactivate(itemID, handle); } }
/// <summary> /// Sets the listen event with handle as active (active = TRUE) or inactive (active = FALSE). /// The handle used is returned from Listen() /// </summary> /// <param name="itemID">UUID of the script engine</param> /// <param name="handle">handle returned by Listen()</param> /// <param name="active">temp. activate or deactivate the Listen()</param> public void ListenControl(UUID itemID, int handle, int active) { //Make sure that the cmd handler thread is running m_scriptModule.PokeThreads(); if (active == 1) { m_listenerManager.Activate(itemID, handle); } else if (active == 0) { m_listenerManager.Dectivate(itemID, handle); } }