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; }
public virtual void RaiseNewInventoryEntries(List <InventoryEntity> e) { var inventoryEntitiesEvent = new InventoryEntitiesEvent(this, e); var handler = NewInventoryEntries; if (handler != null) { handler(this, inventoryEntitiesEvent); } }