Archived
1
0
This repository has been archived on 2021-10-19. You can view files and clone it, but cannot push or open issues or pull requests.
nonabgs/BGS/SellMicroResources.cs

29 lines
795 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using NonaBGS.Journal;
namespace NonaBGS.BGS {
public class SellMicroResources : LogEntry {
public SellMicroResources(string system, string station) {
System = system;
Station = Station;
}
public int TotalSum {
get {
return Entries
.Where(x => x.GetType() == typeof(SellMicroResourcesEntry))
.Sum(x => (x as SellMicroResourcesEntry).Price)
;
}
}
public override string ToString() {
return string.Format("Sell Micro Resources: {0}", Credits.FormatCredits(TotalSum));
}
}
}