AddListener() public method

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
return int
Exemplo n.º 1
0
 /// <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));
 }
Exemplo n.º 2
0
 /// <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));
 }