private static void OnNewInventoryEntries(object sender, InventoryEntitiesEvent inventoryEntitiesEvent)
 {
     // delegate event from inventory info worker that will give all inventory items across any and all bags except retainers
     if (sender == null)
     {
         return;
     }
     var inventoryEntities = inventoryEntitiesEvent.InventoryEntities;
     try
     {
         ItemPublisher.Process(inventoryEntities);
     }
     catch (Exception ex)
     {
     }
 }
 private static void OnNewInventoryEntries(object sender, InventoryEntitiesEvent inventoryEntitiesEvent)
 {
     // delegate event from inventory info worker that will give all inventory items across any and all bags except retainers
     if (sender == null)
     {
         return;
     }
     var inventoryEntities = inventoryEntitiesEvent.InventoryEntities;
 }
Example #3
0
 public virtual void RaiseNewInventoryEntries(List<InventoryEntity> e)
 {
     var inventoryEntitiesEvent = new InventoryEntitiesEvent(this, e);
     var handler = NewInventoryEntries;
     if (handler != null)
     {
         handler(this, inventoryEntitiesEvent);
     }
 }