Пример #1
0
 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);
 }
Пример #2
0
 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);
 }
Пример #3
0
 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);
 }
Пример #4
0
 public void HandleEvent(FortUsedEvent evt, ISession session)
 {
     _stats.TotalExperience += evt.Exp;
     _stats.Dirty(session.Inventory);
 }
Пример #5
0
 public void HandleEvent(FortUsedEvent evt, Context ctx)
 {
     _stats.TotalExperience += evt.Exp;
     _stats.Dirty(ctx.Inventory);
 }
Пример #6
0
 public void HandleEvent(FortUsedEvent evt, Context ctx)
 {
     Logger.Write($"XP: {evt.Exp}, Gems: {evt.Gems}, Items: {evt.Items}", LogLevel.Pokestop);
 }
Пример #7
0
 public void HandleEvent(FortUsedEvent evt, Context ctx)
 {
     Logger.Write(
         ctx.Translations.GetTranslation(TranslationString.EventFortUsed, evt.Exp, evt.Gems, evt.Items),
         LogLevel.Pokestop);
 }
Пример #8
0
 public void HandleEvent(FortUsedEvent evt, Session session)
 {
     Logger.Write(
         session.Translations.GetTranslation(TranslationString.EventFortUsed, evt.Name, evt.Exp, evt.Gems, evt.Items),
         LogLevel.Pokestop);
 }