Start building fleet loader

This commit is contained in:
Torben Nehmer 2024-10-01 20:19:19 +02:00
parent a03edf8983
commit 3f04de398a
3 changed files with 165 additions and 2 deletions

View File

@ -0,0 +1,95 @@
using System;
using CsvHelper.Configuration.Attributes;
namespace StarsAssistant.CSV;
public class Fleet
{
[Index(0)]
public string FleetName { get; set; } = String.Empty;
[Index(1)]
public int X { get; set; }
[Index(2)]
public int Y { get; set; }
[Index(3)]
public string Planet { get; set; } = String.Empty;
[Index(4)]
public string Destination { get; set; } = String.Empty;
[Index(5)]
public string BattlePlan { get; set; } = String.Empty;
[Index(6)]
public int ShipCount { get; set; }
[Index(7)]
public int Ironium { get; set; }
[Index(8)]
public int Boranium { get; set; }
[Index(9)]
public int Germanium { get; set; }
[Index(0)]
public int Colonists { get; set; }
[Index(1)]
public int Fuel { get; set; }
[Index(2)]
public int OwnerPlayerNumber { get; set; }
[Index(3)]
public int ETA { get; set; }
[Index(4)]
public int Warp { get; set; }
[Index(5)]
public int Mass { get; set; }
[Index(6)]
public int Cloak { get; set; }
[Index(7)]
public int Scan { get; set; }
[Index(8)]
public int PenScan { get; set; }
[Index(9)]
public string Task { get; set; } = String.Empty;
[Index(0)]
public int Mining { get; set; }
[Index(1)]
public int Sweep { get; set; }
[Index(2)]
public int Laying { get; set; }
[Index(3)]
public int Terraforming { get; set; }
[Index(4)]
public int Unarmed { get; set; }
[Index(5)]
public int Scout { get; set; }
[Index(6)]
public int Warship { get; set; }
[Index(7)]
public int Utility { get; set; }
[Index(8)]
public int Bomber { get; set; }
}

View File

@ -1,5 +1,4 @@
using System.ComponentModel.DataAnnotations;
using System.Globalization;
using System.Globalization;
using CsvHelper.Configuration.Attributes;
namespace StarsAssistant.CSV;

View File

@ -0,0 +1,69 @@
using System;
using System.ComponentModel.DataAnnotations;
namespace StarsAssistant.Model;
public class Fleet
{
#region Persistant propeties (from Stars)
public string FleetName { get; set; } = String.Empty;
public int X { get; set; }
public int Y { get; set; }
public string Planet { get; set; } = String.Empty;
public string Destination { get; set; } = String.Empty;
public string BattlePlan { get; set; } = String.Empty;
public int ShipCount { get; set; }
public int Ironium { get; set; }
public int Boranium { get; set; }
public int Germanium { get; set; }
public int Colonists { get; set; }
public int Fuel { get; set; }
public int OwnerPlayerNumber { get; set; }
public int ETA { get; set; }
public int Warp { get; set; }
public int Mass { get; set; }
public int Cloak { get; set; }
public int Scan { get; set; }
public int PenScan { get; set; }
public string Task { get; set; } = String.Empty;
public int Mining { get; set; }
public int Sweep { get; set; }
public int Laying { get; set; }
public int Terraforming { get; set; }
public int Unarmed { get; set; }
public int Scout { get; set; }
public int Warship { get; set; }
public int Utility { get; set; }
public int Bomber { get; set; }
#endregion
}