TranslationLineTracker.cs 468 B

12345678910111213141516171819
  1. using System.Linq;
  2. namespace XUnity.AutoTranslator.Plugin.Core.Batching
  3. {
  4. internal class TranslationLineTracker
  5. {
  6. public TranslationLineTracker( TranslationJob job )
  7. {
  8. Job = job;
  9. LinesCount = job.Key.GetDictionaryLookupKey().Count( c => c == '\n' ) + 1;
  10. }
  11. public string RawTranslatedText { get; set; }
  12. public TranslationJob Job { get; private set; }
  13. public int LinesCount { get; private set; }
  14. }
  15. }