/// <summary> Writes the contents of this AICCollection into the stream in ASCII text encoding.</summary> public void Write(Stream stream) { using (AIWriter aiw = new AIWriter(stream)) { aiw.Write(header); aiw.WriteLine(); aiw.OpenCommentSec(); aiw.WriteInfo(typeof(AICharacter)); aiw.CloseCommentSec(); aiw.WriteLine(); foreach (AICharacter c in this.Values.OrderBy(c => c.Index)) { aiw.Write(c); aiw.WriteLine(); } } }
/// <summary> Writes the contents of this AICCollection into the stream in ASCII text encoding.</summary> public void Write(Stream stream) { using (AIWriter aiw = new AIWriter(stream)) { foreach (AICharacter c in this.Values) { aiw.Write(c); aiw.WriteLine(); } } }