コード例 #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);
 }