public AddListener ( uint localID, UUID itemID, UUID hostID, int channel, string name, UUID id, string msg ) : int | ||
localID | uint | |
itemID | UUID | |
hostID | UUID | |
channel | int | |
name | string | |
id | UUID | |
msg | string | |
Результат | int |
/// <summary> /// Create a listen event callback with the specified filters. /// The parameters localID,itemID are needed to uniquely identify /// the script during 'peek' time. Parameter hostID is needed to /// determine the position of the script. /// </summary> /// <param name="localID">localID of the script engine</param> /// <param name="itemID">UUID of the script engine</param> /// <param name="hostID">UUID of the SceneObjectPart</param> /// <param name="channel">channel to listen on</param> /// <param name="name">name to filter on</param> /// <param name="id"> /// key to filter on (user given, could be totally faked) /// </param> /// <param name="msg">msg to filter on</param> /// <returns>number of the scripts handle</returns> public int Listen(uint localID, UUID itemID, UUID hostID, int channel, string name, UUID id, string msg) { return(m_listenerManager.AddListener(localID, itemID, hostID, channel, name, id, msg)); }
/// <summary> /// Create a listen event callback with the specified filters. /// The parameters localID,itemID are needed to uniquely identify /// the script during 'peek' time. Parameter hostID is needed to /// determine the position of the script. /// </summary> /// <param name="localID">localID of the script engine</param> /// <param name="itemID">UUID of the script engine</param> /// <param name="hostID">UUID of the SceneObjectPart</param> /// <param name="channel">channel to listen on</param> /// <param name="name">name to filter on</param> /// <param name="id">key to filter on (user given, could be totally faked)</param> /// <param name="msg">msg to filter on</param> /// <returns>number of the scripts handle</returns> public int Listen(UUID itemID, UUID hostID, int channel, string name, UUID id, string msg) { //Make sure that the cmd handler thread is running m_scriptModule.PokeThreads(); return(m_listenerManager.AddListener(itemID, hostID, channel, name, id, msg)); }