2
0
mirror of https://github.com/9ParsonsB/Pulsar.git synced 2025-04-05 17:39:39 -04:00

Change all "ID" parameter types to ulong

This commit is contained in:
Xjph 2021-11-22 10:37:50 -03:30
parent cffaec92ec
commit ab1d6d41dc
58 changed files with 66 additions and 66 deletions

@ -2,6 +2,6 @@
{
public class FighterDestroyed : JournalBase
{
public int ID { get; init; }
public ulong ID { get; init; }
}
}

@ -4,7 +4,7 @@ namespace Observatory.Framework.Files.Journal
{
public class CodexEntry : JournalBase
{
public long EntryID { get; init; }
public ulong EntryID { get; init; }
public string Name { get; init; }
public string Name_Localised { get; init; }
public string SubCategory { get; init; }

@ -2,7 +2,7 @@
{
public class CarrierBankTransfer : JournalBase
{
public long CarrierID { get; init; }
public ulong CarrierID { get; init; }
public long Deposit { get; init; }
public long Withdraw { get; init; }
public long PlayerBalance { get; init; }

@ -4,7 +4,7 @@
{
public long BoughtAtMarket { get; init; }
public ulong SystemAddress { get; init; }
public long CarrierID { get; init; }
public ulong CarrierID { get; init; }
public string Location { get; init; }
public long Price { get; init; }
public string Variant { get; init; }

@ -2,6 +2,6 @@
{
public class CarrierCancelDecommission : JournalBase
{
public long CarrierID { get; init; }
public ulong CarrierID { get; init; }
}
}

@ -6,7 +6,7 @@ namespace Observatory.Framework.Files.Journal
{
public class CarrierCrewServices : JournalBase
{
public long CarrierID { get; init; }
public ulong CarrierID { get; init; }
public string CrewRole { get; init; }
public string CrewName { get; init; }
[JsonConverter(typeof(JsonStringEnumConverter))]

@ -2,7 +2,7 @@
{
public class CarrierDecommission : JournalBase
{
public long CarrierID { get; init; }
public ulong CarrierID { get; init; }
public long ScrapRefund { get; init; }
public long ScrapTime { get; init; }
public System.DateTime ScrapTimeUTC

@ -2,7 +2,7 @@
{
public class CarrierDepositFuel : JournalBase
{
public long CarrierID { get; init; }
public ulong CarrierID { get; init; }
public int Amount { get; init; }
public int Total { get; init; }
}

@ -5,7 +5,7 @@ namespace Observatory.Framework.Files.Journal
{
public class CarrierDockingPermission : JournalBase
{
public long CarrierID { get; init; }
public ulong CarrierID { get; init; }
[JsonConverter(typeof(JsonStringEnumConverter))]
public CarrierDockingAccess DockingAccess { get; init; }
public bool AllowNotorious { get; init; }

@ -2,7 +2,7 @@
{
public class CarrierFinance : JournalBase
{
public long CarrierID { get; init; }
public ulong CarrierID { get; init; }
public int TaxRate { get; init; }
public long CarrierBalance { get; init; }
public long ReserveBalance { get; init; }

@ -10,7 +10,7 @@ namespace Observatory.Framework.Files.Journal
public bool Docked { get; init; }
public string StationName { get; init; }
public string StationType { get; init; }
public long MarketID { get; init; }
public ulong MarketID { get; init; }
public Faction StationFaction { get; init; }
public string StationGovernment { get; init; }
public string StationGovernment_Localised { get; init; }

@ -2,6 +2,6 @@
{
public class CarrierJumpCancelled : JournalBase
{
public long CarrierID { get; init; }
public ulong CarrierID { get; init; }
}
}

@ -5,7 +5,7 @@
public string Body { get; init; }
public int BodyID { get; init; }
public ulong SystemAddress { get; init; }
public long CarrierID { get; init; }
public ulong CarrierID { get; init; }
public string SystemName { get; init; }
public ulong SystemID { get; init; }
}

@ -5,7 +5,7 @@ namespace Observatory.Framework.Files.Journal
{
public class CarrierShipPack : JournalBase
{
public long CarrierID { get; init; }
public ulong CarrierID { get; init; }
[JsonConverter(typeof(JsonStringEnumConverter))]
public CarrierOperation Operation { get; init; }
public string PackTheme { get; init; }

@ -6,7 +6,7 @@ namespace Observatory.Framework.Files.Journal
{
public class CarrierStats : JournalBase
{
public long CarrierID { get; init; }
public ulong CarrierID { get; init; }
public string Callsign { get; init; }
public string Name { get; init; }
[JsonConverter(typeof(JsonStringEnumConverter))]

@ -2,7 +2,7 @@
{
public class CarrierTradeOrder : JournalBase
{
public long CarrierID { get; init; }
public ulong CarrierID { get; init; }
public bool BlackMarket { get; init; }
public string Commodity { get; init; }
public string Commodity_Localised { get; init; }

@ -5,7 +5,7 @@
public ulong SystemAddress { get; init; }
public string Name { get; init; }
public string Name_Localised { get; init; }
public long MarketID { get; init; }
public ulong MarketID { get; init; }
public float Latitude { get; init; }
public float Longitude { get; init; }
public int BodyID { get; init; }

@ -2,6 +2,6 @@
{
public class CrewLaunchFighter : CrewMemberJoins
{
public int ID { get; init; }
public ulong ID { get; init; }
}
}

@ -2,6 +2,6 @@
{
public class DockFighter : JournalBase
{
public int ID { get; init; }
public ulong ID { get; init; }
}
}

@ -3,6 +3,6 @@
public class FighterRebuilt : JournalBase
{
public string Loadout { get; init; }
public int ID { get; init; }
public ulong ID { get; init; }
}
}

@ -3,7 +3,7 @@
public class LaunchSRV : JournalBase
{
public string Loadout { get; init; }
public int ID { get; init; }
public ulong ID { get; init; }
public bool PlayerControlled { get; init; }
}
}

@ -2,7 +2,7 @@
{
public class NpcCrewPaidWage : JournalBase
{
public int NpcCrewId { get; init; }
public ulong NpcCrewId { get; init; }
public string NpcCrewName { get; init; }
public int Amount { get; init; }
}

@ -4,7 +4,7 @@ namespace Observatory.Framework.Files.Journal
{
public class NpcCrewRank : JournalBase
{
public int NpcCrewId { get; init; }
public ulong NpcCrewId { get; init; }
public string NpcCrewName { get; init; }
public RankCombat RankCombat { get; init; }
}

@ -5,14 +5,14 @@ namespace Observatory.Framework.Files.Journal
{
public class CargoDepot : JournalBase
{
public int MissionID { get; init; }
public ulong MissionID { get; init; }
[JsonConverter(typeof(JsonStringEnumConverter))]
public UpdateType UpdateType { get; init; }
public string CargoType { get; init; }
public string CargoType_Localised { get; init; }
public int Count { get; init; }
public long StartMarketID { get; init; }
public long EndMarketID { get; init; }
public ulong StartMarketID { get; init; }
public ulong EndMarketID { get; init; }
public int ItemsCollected { get; init; }
public int ItemsDelivered { get; init; }
public int TotalItemsToDeliver { get; init; }

@ -2,7 +2,7 @@
{
public class CommunityGoalDiscard : JournalBase
{
public long CGID { get; init; }
public ulong CGID { get; init; }
public string Name { get; init; }
public string System { get; init; }
}

@ -3,6 +3,6 @@
public class CrewFire : JournalBase
{
public string Name { get; init; }
public long CrewID { get; init; }
public ulong CrewID { get; init; }
}
}

@ -6,7 +6,7 @@ namespace Observatory.Framework.Files.Journal
public class EngineerContribution : JournalBase
{
public string Engineer { get; init; }
public long EngineerID { get; init; }
public ulong EngineerID { get; init; }
[JsonConverter(typeof(JsonStringEnumConverter))]
public ContributionType Type { get; init; }
public string Commodity { get; init; }

@ -8,11 +8,11 @@ namespace Observatory.Framework.Files.Journal
public class EngineerCraft : JournalBase
{
public string Engineer { get; init; }
public long EngineerID { get; init; }
public ulong EngineerID { get; init; }
public string Blueprint { get; init; }
public string Slot { get; init; }
public string Module { get; init; }
public long BlueprintID { get; init; }
public ulong BlueprintID { get; init; }
public string BlueprintName { get; init; }
public string ExperimentalEffect { get; init; }
public string ExperimentalEffect_Localised { get; init; }

@ -7,7 +7,7 @@ namespace Observatory.Framework.Files.Journal
public class EngineerProgress : JournalBase
{
public string Engineer { get; init; }
public int EngineerID { get; init; }
public ulong EngineerID { get; init; }
public int Rank { get; init; }
public int RankProgress { get; init; }
[JsonConverter(typeof(JsonStringEnumConverter))]

@ -2,11 +2,11 @@
{
public class FetchRemoteModule : JournalBase
{
public int ShipID { get; init; }
public ulong ShipID { get; init; }
public int StorageSlot { get; init; }
public string StoredItem { get; init; }
public string StoredItem_Localised { get; init; }
public long ServerId { get; init; }
public ulong ServerId { get; init; }
public long TransferCost { get; init; }
public string Ship { get; init; }
public long TransferTime { get; init; }

@ -6,7 +6,7 @@ namespace Observatory.Framework.Files.Journal
// TODO: Read market.json file - Will only be valid for most recent market event
public class Market : JournalBase
{
public long MarketID { get; init; }
public ulong MarketID { get; init; }
public string StationName { get; init; }
public string StationType { get; init; }
public string StarSystem { get; init; }

@ -4,7 +4,7 @@ namespace Observatory.Framework.Files.Journal
{
public class MaterialTrade : JournalBase
{
public long MarketID { get; init; }
public ulong MarketID { get; init; }
public string TraderType { get; init; }
public TradeDetail Paid { get; init; }
public TradeDetail Received { get; init; }

@ -3,7 +3,7 @@
public class MissionAbandoned : JournalBase
{
public string Name { get; init; }
public long MissionID { get; init; }
public ulong MissionID { get; init; }
public long Fine { get; init; }
}
}

@ -10,7 +10,7 @@ namespace Observatory.Framework.Files.Journal
public string Name { get; init; }
public string LocalisedName { get; init; }
public string Faction { get; init; }
public long MissionID { get; init; }
public ulong MissionID { get; init; }
[JsonConverter(typeof(MissionEffectConverter))]
public MissionEffect Influence { get; init; }
[JsonConverter(typeof(MissionEffectConverter))]

@ -10,7 +10,7 @@ namespace Observatory.Framework.Files.Journal
public string Name { get; init; }
public string LocalisedName { get; init; }
public string Faction { get; init; }
public long MissionID { get; init; }
public ulong MissionID { get; init; }
public string Commodity { get; init; }
public string Commodity_Localised { get; init; }
public int Count { get; init; }

@ -4,7 +4,7 @@
{
public string Name { get; init; }
public string Name_Localised { get; init; }
public long MissionID { get; init; }
public ulong MissionID { get; init; }
public long Fine { get; init; }
}
}

@ -4,7 +4,7 @@
{
public string Name { get; init; }
public string Name_Localised { get; init; }
public long MissionID { get; init; }
public ulong MissionID { get; init; }
public string NewDestinationStation { get; init; }
public string OldDestinationStation { get; init; }
public string NewDestinationSystem { get; init; }

@ -2,7 +2,7 @@
{
public class ModuleBuy : JournalBase
{
public long MarketID { get; init; }
public ulong MarketID { get; init; }
public string Slot { get; init; }
public string BuyItem { get; init; }
public string BuyItem_Localised { get; init; }

@ -2,7 +2,7 @@
{
public class ModuleRetrieve : JournalBase
{
public long MarketID { get; init; }
public ulong MarketID { get; init; }
public string Slot { get; init; }
public string Ship { get; init; }
public ulong ShipID { get; init; }

@ -2,7 +2,7 @@
{
public class ModuleSell : JournalBase
{
public long MarketID { get; init; }
public ulong MarketID { get; init; }
public string Slot { get; init; }
public string SellItem { get; init; }
public string SellItem_Localised { get; init; }

@ -5,7 +5,7 @@
public int StorageSlot { get; init; }
public string SellItem { get; init; }
public string SellItem_Localised { get; init; }
public long ServerId { get; init; }
public ulong ServerId { get; init; }
public int SellPrice { get; init; }
public string Ship { get; init; }
public ulong ShipID { get; init; }

@ -4,7 +4,7 @@ namespace Observatory.Framework.Files.Journal
{
public class ModuleStore : JournalBase
{
public long MarketID { get; init; }
public ulong MarketID { get; init; }
public string Slot { get; init; }
public string Ship { get; init; }
public ulong ShipID { get; init; }

@ -2,7 +2,7 @@
{
public class ModuleSwap : JournalBase
{
public long MarketID { get; init; }
public ulong MarketID { get; init; }
public string FromSlot { get; init; }
public string ToSlot { get; init; }
public string FromItem { get; init; }

@ -2,7 +2,7 @@
{
public class Outfitting : JournalBase
{
public long MarketID { get; init; }
public ulong MarketID { get; init; }
public string StationName { get; init; }
public string StarSystem { get; init; }
}

@ -2,7 +2,7 @@
{
public class ScientificResearch : JournalBase
{
public long MarketID { get; init; }
public ulong MarketID { get; init; }
public string Name { get; init; }
public string Category { get; init; }
public int Count { get; init; }

@ -2,7 +2,7 @@
{
public class SearchAndRescue : JournalBase
{
public long MarketID { get; init; }
public ulong MarketID { get; init; }
public string Name { get; init; }
public string Name_Localised { get; init; }
public int Count { get; init; }

@ -4,7 +4,7 @@
{
public string ShipType { get; init; }
public string System { get; init; }
public int SellShipId { get; init; }
public ulong SellShipId { get; init; }
public long ShipPrice { get; init; }
}
}

@ -2,7 +2,7 @@
{
public class Shipyard : JournalBase
{
public long MarketID { get; init; }
public ulong MarketID { get; init; }
public string StationName { get; init; }
public string StarSystem { get; init; }
}

@ -2,14 +2,14 @@
{
public class ShipyardBuy : JournalBase
{
public long MarketID { get; init; }
public ulong MarketID { get; init; }
public string ShipType { get; init; }
public string ShipType_Localised { get; init; }
public long ShipPrice { get; init; }
public string StoreOldShip { get; init; }
public int StoreShipID { get; init; }
public ulong StoreShipID { get; init; }
public string SellOldShip { get; init; }
public int SellShipID { get; init; }
public ulong SellShipID { get; init; }
public long SellPrice { get; init; }
}
}

@ -4,6 +4,6 @@
{
public string ShipType { get; init; }
public string ShipType_Localised { get; init; }
public int NewShipID { get; init; }
public ulong NewShipID { get; init; }
}
}

@ -2,9 +2,9 @@
{
public class ShipyardSell : JournalBase
{
public long MarketID { get; init; }
public ulong MarketID { get; init; }
public string ShipType { get; init; }
public int SellShipID { get; init; }
public ulong SellShipID { get; init; }
public long ShipPrice { get; init; }
public string System { get; init; }
}

@ -2,7 +2,7 @@
{
public class ShipyardSwap : JournalBase
{
public long MarketID { get; init; }
public ulong MarketID { get; init; }
public string ShipType { get; init; }
public string ShipType_Localised { get; init; }
public ulong ShipID { get; init; }

@ -2,12 +2,12 @@
{
public class ShipyardTransfer : JournalBase
{
public long MarketID { get; init; }
public ulong MarketID { get; init; }
public string ShipType { get; init; }
public string ShipType_Localised { get; init; }
public ulong ShipID { get; init; }
public string System { get; init; }
public long ShipMarketID { get; init; }
public ulong ShipMarketID { get; init; }
public float Distance { get; init; }
public int TransferPrice { get; init; }
public long TransferTime { get; init; }

@ -7,7 +7,7 @@ namespace Observatory.Framework.Files.Journal
{
public string StarSystem { get; init; }
public string StationName { get; init; }
public long MarketID { get; init; }
public ulong MarketID { get; init; }
public ImmutableList<StoredItem> Items { get; init; }
}
}

@ -5,7 +5,7 @@ namespace Observatory.Framework.Files.Journal
{
public class StoredShips : JournalBase
{
public long MarketID { get; init; }
public ulong MarketID { get; init; }
public string StationName { get; init; }
public string StarSystem { get; init; }
public ImmutableList<StoredShip> ShipsHere { get; init; }

@ -6,7 +6,7 @@ namespace Observatory.Framework.Files.Journal
public class TechnologyBroker : JournalBase
{
public string BrokerType { get; init; }
public long MarketID { get; init; }
public ulong MarketID { get; init; }
public ImmutableList<ItemName> ItemsUnlocked { get; init; }
public ImmutableList<CommodityReward> Commodities { get; init; }
public ImmutableList<MaterialReward> Materials { get; init; }

@ -2,7 +2,7 @@
{
public class ShipyardPrice
{
public int id { get; init; }
public ulong id { get; init; }
public string ShipType { get; init; }
public string ShipType_Localised { get; init; }
public int ShipPrice { get; init; }

@ -11,7 +11,7 @@ namespace Observatory.Framework.Files
/// <summary>
/// Unique ID of market.
/// </summary>
public long MarketID { get; init; }
public ulong MarketID { get; init; }
/// <summary>
/// Name of station where shipyard is located.
/// </summary>