コード例 #1
0
 internal Counter(LootsClient lootsClient) : base(lootsClient)
 {
     if (!File.Exists(LootsFile))
     {
         ResetCount();
     }
     else
     {
         Log.Info("Loots file found, Do you want to continue the current count ? [Y / N]");
         if (Log.AcceptOrDeny())
         {
             LoadFile();
         }
         else
         {
             Log.Info("Reset the loots count to 0");
             ResetCount();
             Log.Info($"The current loots count is: {LootsClient.Cache.LootsCount}");
         }
     }
 }