using System.Collections.Generic;
using System.Linq;
using System.Text;
using EDPlayerJournal.BGS;
namespace EliteBGS.LogGenerator;
///
/// Creates a generic log block, that is simply all LogEntries of type "Type"
/// per line
///
/// LogEntry subtype to work on
public class GenericFormat : LogFormatter where Type : Transaction {
public string GenerateLog(Objective objective) {
IEnumerable logs = objective.EnabledOfType();
StringBuilder builder = new StringBuilder();
if (logs == null || logs.Count() <= 0) {
return "";
}
foreach (Type log in logs) {
builder.AppendLine(log.ToString());
}
return builder.ToString();
}
public virtual string GenerateSummary(Objective objective) {
throw new System.NotImplementedException();
}
}