public static void RecordInventoryEvent(object sender, InventoryUpdateEventArgs e) { if (e.CatalogKeys.Count() > 0) { var i = sender.GetType().Name; var e1 = e.ApplicationHasContentModelTypes.ToString(); var e2 = e.CatalogKeys.First().CatalogEntryCode; BfEventManager.SendToBF("Inventory", e1 + ":" + e2, i.ToString()); // ...i was too long (max 100) } }
public void OnInventoryUpdate(InventoryUpdateEventArgs e) { if (!GetObject.InGame) { return; } var handler = InventoryUpdated; if (handler != null) { handler(this, e); } }
private void Broadcaster_InventoryUpdated(object sender, InventoryUpdateEventArgs e) { throw new NotImplementedException(); }
void e_InventoryUpdated(object sender, InventoryUpdateEventArgs e) { EventReciever.RecordInventoryEvent(sender, e); }
private void OnInventoryUpdated(object sender, InventoryUpdateEventArgs e) { WebHookManager.NotifyAllAsync(EventNames.InventoryUpdated, new { e.CatalogKeys }); }
private void Broadcaster_InventoryUpdated(object sender, InventoryUpdateEventArgs e) { ReindexVariations(e.CatalogKeys.Select(ck => ck.CatalogEntryCode)); }