Browse Source

HasWordsRemaining correct <

master
Steve Halliwell 5 years ago
parent
commit
9667f0edb9
  1. 10
      Assets/Fungus/Scripts/Components/Writer.cs

10
Assets/Fungus/Scripts/Components/Writer.cs

@ -82,8 +82,6 @@ namespace Fungus
//holds number of Word tokens in the currently running Write
public int WordTokensFound { get; protected set; }
//holds count of number of Word tokens completed
protected int wordTokensProcessed;
/// <summary>
/// Updated during writing of Word tokens, when processed tips over found, fires NotifyAllWordsWritten
@ -100,9 +98,13 @@ namespace Fungus
wordTokensProcessed = value;
}
}
//holds count of number of Word tokens completed
protected int wordTokensProcessed;
public bool HasWordsRemaining { get { return WordTokensProcessed > WordTokensFound; } }
/// <summary>
/// Does the currently processing list of Tokens have Word Tokens that are not yet processed
/// </summary>
public bool HasWordsRemaining { get { return WordTokensProcessed < WordTokensFound; } }
protected List<IWriterListener> writerListeners = new List<IWriterListener>();

Loading…
Cancel
Save