Ejemplo n.º 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);
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 4
0
 public void HandleEvent(FortUsedEvent evt, ISession session)
 {
     _stats.TotalExperience += evt.Exp;
     _stats.Dirty(session.Inventory);
 }
Ejemplo n.º 5
0
 public void HandleEvent(FortUsedEvent evt, Context ctx)
 {
     _stats.TotalExperience += evt.Exp;
     _stats.Dirty(ctx.Inventory);
 }
Ejemplo n.º 6
0
 public void HandleEvent(FortUsedEvent evt, Context ctx)
 {
     Logger.Write($"XP: {evt.Exp}, Gems: {evt.Gems}, Items: {evt.Items}", LogLevel.Pokestop);
 }
Ejemplo n.º 7
0
 public void HandleEvent(FortUsedEvent evt, Context ctx)
 {
     Logger.Write(
         ctx.Translations.GetTranslation(TranslationString.EventFortUsed, evt.Exp, evt.Gems, evt.Items),
         LogLevel.Pokestop);
 }
Ejemplo n.º 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);
 }