public void HandleEvent(FortUsedEvent evt, ISession session) { string itemString; if (evt.inventoryFull) { itemString = session.Translation.GetTranslation(TranslationString.InvFullPokestopLooting); } else { itemString = evt.Items; } Logger.Write( session.Translation.GetTranslation(TranslationString.EventFortUsed, evt.Name, evt.Exp, evt.Gems, itemString), LogLevel.Pokestop); }
public void HandleEvent(FortUsedEvent evt, ISession session) { var itemString = evt.InventoryFull ? session.Translation.GetTranslation(TranslationString.InvFullPokestopLooting) : evt.Items; Logger.Write( session.Translation.GetTranslation(TranslationString.EventFortUsed, evt.Name, evt.Exp, evt.Gems, itemString), LogLevel.Pokestop); }
private static void HandleEvent(FortUsedEvent fortUsedEvent, ISession session) { var itemString = fortUsedEvent.InventoryFull ? session.Translation.GetTranslation(TranslationString.InvFullPokestopLooting) : fortUsedEvent.Items; Logger.Write( session.Translation.GetTranslation(TranslationString.EventFortUsed, fortUsedEvent.Name, fortUsedEvent.Exp, fortUsedEvent.Gems, itemString, fortUsedEvent.Latitude, fortUsedEvent.Longitude), LogLevel.Pokestop); }
public void HandleEvent(FortUsedEvent evt, ISession session) { _stats.TotalExperience += evt.Exp; _stats.Dirty(session.Inventory); }
public void HandleEvent(FortUsedEvent evt, Context ctx) { _stats.TotalExperience += evt.Exp; _stats.Dirty(ctx.Inventory); }
public void HandleEvent(FortUsedEvent evt, Context ctx) { Logger.Write($"XP: {evt.Exp}, Gems: {evt.Gems}, Items: {evt.Items}", LogLevel.Pokestop); }
public void HandleEvent(FortUsedEvent evt, Context ctx) { Logger.Write( ctx.Translations.GetTranslation(TranslationString.EventFortUsed, evt.Exp, evt.Gems, evt.Items), LogLevel.Pokestop); }
public void HandleEvent(FortUsedEvent evt, Session session) { Logger.Write( session.Translations.GetTranslation(TranslationString.EventFortUsed, evt.Name, evt.Exp, evt.Gems, evt.Items), LogLevel.Pokestop); }