Callback when an inventory object is accepted and received from a task inventory. This is the callback in which you actually get the ItemID, as in ObjectOfferedCallback it is null when received from a task.
Inheritance: System.EventArgs
Example #1
0
 private void Inventory_OnTaskItemReceived(object sender, TaskItemReceivedEventArgs e)
 {
     if (e.Type == InventoryType.Object) return;
     var folderid = e.FolderID;
     //   SimAsset A = SetAssetName(assetid, null, type);
     LoadFolderId(folderid);
     lock (BusyUpdating) if (BusyUpdating.Remove(folderid)) return;
 }
Example #2
0
 ///<summary>Raises the TaskItemReceived Event</summary>
 /// <param name="e">A TaskItemReceivedEventArgs object containing
 /// the data sent from the simulator</param>
 protected virtual void OnTaskItemReceived(TaskItemReceivedEventArgs e)
 {
     EventHandler<TaskItemReceivedEventArgs> handler = m_TaskItemReceived;
     if (handler != null)
         handler(this, e);
 }
Example #3
0
 public void Inventory_TaskItemReceived(object sender, TaskItemReceivedEventArgs e)
 {
     Hashtable message = new Hashtable();
     message.Add("MessageType", "TaskItemReceived");
     message.Add("ItemID", e.ItemID);
     message.Add("FolderID", e.FolderID);
     message.Add("CreatorID", e.CreatorID);
     message.Add("AssetID", e.AssetID);
     message.Add("Type", (byte)e.Type);
     enqueue(message);
 }
 public override void Inventory_OnTaskItemReceived(object sender, TaskItemReceivedEventArgs e)
 {
     base.Inventory_OnTaskItemReceived(sender, e);
 }
Example #5
0
 public virtual void Inventory_OnTaskItemReceived(object sender, TaskItemReceivedEventArgs e) { OnEvent("On-Task-Item-Received", paramNamesOnTaskItemReceived, paramTypesOnTaskItemReceived,e); }
Example #6
0
 void Inventory_TaskItemReceived(object sender, TaskItemReceivedEventArgs e)
 {
     // TODO, be a little more selective in when to accept the result
     //if (rezedPrimitive.Properties.CreatorID == creatorID)
     if (e.CreatorID == cliente.Self.AgentID)
     {
         gotObjectInventory = true;
         newInventoryItemID = e.ItemID;
         objectInInventoryWait.Set();
     }
 }
            private void copiedToInventory(object sender, TaskItemReceivedEventArgs e)
            {
                if (e.FolderID != AgentSyncFolder)
                {
                    return;
                }
                if (e.AssetID != OldAssetID && !CogbotHelpers.IsNullOrZero(e.AssetID) &&
                    !CogbotHelpers.IsNullOrZero(OldAssetID))
                {
                    return;
                }
                UUID newItemID = e.ItemID;
                var rItem = Client.Inventory.Store[newItemID];
                if (e.Type != SourceTaskItem.InventoryType || (rItem != null && rItem.Name != ItemName))
                {
                    return;
                }

                AgentItem = Client.Inventory.Store[newItemID] as InventoryObject;
                takeCopyEvent.Set();
            }