rename project to EliteBGS

This commit is contained in:
2021-11-10 21:24:39 +01:00
parent f159b29191
commit df4b5d6914
32 changed files with 62 additions and 69 deletions

View File

@@ -2,12 +2,12 @@
using System.Text;
using EDJournal;
namespace NonaBGS.BGS {
namespace EliteBGS.BGS {
public class Cartographics : LogEntry {
public Cartographics(MultiSellExplorationDataEntry e, string current_system, string current_station) {
this.Entries.Add(e);
this.System = current_system;
this.Station = current_station;
Entries.Add(e);
System = current_system;
Station = current_station;
}
public int TotalSum {

View File

@@ -1,7 +1,7 @@
using System;
using System.Linq;
namespace NonaBGS.BGS {
namespace EliteBGS.BGS {
public class CombatZone : LogEntry, IComparable {
public string Type { get; set; }
public string Grade { get; set; }

View File

@@ -1,4 +1,4 @@
namespace NonaBGS.BGS {
namespace EliteBGS.BGS {
public interface IDiscordLogGenerator {
string GenerateDiscordLog(Report report);
}

View File

@@ -2,7 +2,7 @@
using System.Globalization;
using EDJournal;
namespace NonaBGS.BGS {
namespace EliteBGS.BGS {
public class FactionKillBonds : LogEntry {
public int TotalSum {
get {

View File

@@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.Linq;
using EDJournal;
namespace NonaBGS.BGS {
namespace EliteBGS.BGS {
public class LogEntry : IComparable<LogEntry> {
private List<Entry> entries = new List<Entry>();

View File

@@ -1,7 +1,7 @@
using System.Text;
using EDJournal;
namespace NonaBGS.BGS {
namespace EliteBGS.BGS {
public class MissionCompleted : LogEntry {
public MissionCompleted(MissionCompletedEntry e, string system, string station) {
this.Entries.Add(e);

View File

@@ -4,7 +4,7 @@ using System.Linq;
using System.Text;
using EDJournal;
namespace NonaBGS.BGS {
namespace EliteBGS.BGS {
public class NonaDiscordLog : IDiscordLogGenerator {
private string FormatDate() {
StringBuilder date = new StringBuilder();

View File

@@ -3,7 +3,7 @@ using System;
using System.Text;
using Newtonsoft.Json;
namespace NonaBGS.BGS {
namespace EliteBGS.BGS {
public class Objective : IComparable<Objective> {
private string system;
private string station;

View File

@@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.Linq;
using EDJournal;
namespace NonaBGS.BGS {
namespace EliteBGS.BGS {
public class Report {
private List<Objective> objectives = new List<Objective>();
@@ -126,7 +126,7 @@ namespace NonaBGS.BGS {
.OrderBy(x => x.Matches(entry))
;
if (matches == null || matches.Count() <= 0) {
continue;
continue;
}
/* Then select the one that matches the most.
@@ -144,12 +144,12 @@ namespace NonaBGS.BGS {
LogEntry existing = null;
existing = objective.LogEntries.Find(x => {
try {
return x.CompareTo(entry) == 0;
} catch (NotImplementedException) {
return false;
}
});
try {
return x.CompareTo(entry) == 0;
} catch (NotImplementedException) {
return false;
}
});
if (collate && existing != null) {
existing.Entries.Add(e);

View File

@@ -2,7 +2,7 @@
using System.Linq;
using EDJournal;
namespace NonaBGS.BGS {
namespace EliteBGS.BGS {
public class SellCargo : LogEntry {
public override string ToString() {
StringBuilder builder = new StringBuilder();

View File

@@ -1,7 +1,7 @@
using System.Linq;
using EDJournal;
namespace NonaBGS.BGS {
namespace EliteBGS.BGS {
public class SellMicroResources : LogEntry {
public int TotalSum {
get {

View File

@@ -2,7 +2,7 @@
using System.Globalization;
using EDJournal;
namespace NonaBGS.BGS {
namespace EliteBGS.BGS {
public class Vouchers : LogEntry {
private string type = null;