2
0
mirror of https://github.com/9ParsonsB/Pulsar.git synced 2025-07-01 08:23:42 -04:00

Implement Other state events

now emitted to websocket connections on connect
This commit is contained in:
2024-05-25 22:49:08 +10:00
parent 68eff73dbd
commit 7eae5e5ee6
68 changed files with 222 additions and 182 deletions

View File

@ -6,5 +6,5 @@ namespace Observatory.Framework.Files.Journal.StationServices;
public class CommunityGoal : JournalBase
{
public override string Event => "CommunityGoal";
public IReadOnlyCollection<CurrentGoal> CurrentGoals { get; init; }
public List<CurrentGoal> CurrentGoals { get; init; }
}

View File

@ -21,6 +21,6 @@ public class EngineerCraft : JournalBase
public float Quality { get; init; }
public string ApplyExperimentalEffect { get; init; }
[JsonConverter(typeof(MaterialConverter))]
public IReadOnlyCollection<Material> Ingredients { get; init; }
public IReadOnlyCollection<Modifier> Modifiers { get; init; }
public List<Material> Ingredients { get; init; }
public List<Modifier> Modifiers { get; init; }
}

View File

@ -15,7 +15,7 @@ public class EngineerProgress : JournalBase
[JsonConverter(typeof(JsonStringEnumConverter))]
public Progress? Progress { get; set; }
public IReadOnlyCollection<EngineerType> Engineers { get; set; }
public List<EngineerType> Engineers { get; set; }
}
//{ "timestamp":"2024-05-25T04:44:34Z", "event":"EngineerProgress",
//"Engineers":[

View File

@ -9,5 +9,5 @@ public class MassModuleStore : JournalBase
public ulong MarketID { get; init; }
public string Ship { get; init; }
public ulong ShipID { get; init; }
public IReadOnlyCollection<Item> Items { get; init; }
public List<Item> Items { get; init; }
}

View File

@ -23,9 +23,9 @@ public class MissionCompleted : JournalBase
[JsonConverter(typeof(StringIntConverter))]
public int Donation { get; init; }
public long Donated { get; init; }
public ICollection<string> PermitsAwarded { get; init; }
public IReadOnlyCollection<CommodityReward> CommodityReward { get; init; }
public IReadOnlyCollection<MaterialReward> MaterialsReward { get; init; }
public IList<string> PermitsAwarded { get; init; }
public List<CommodityReward> CommodityReward { get; init; }
public List<MaterialReward> MaterialsReward { get; init; }
public string DestinationSystem { get; init; }
public string DestinationStation { get; init; }
public string DestinationSettlement { get; init; }
@ -33,5 +33,5 @@ public class MissionCompleted : JournalBase
public string NewDestinationStation { get; init; }
public int KillCount { get; init; }
public string TargetFaction { get; init; }
public IReadOnlyCollection<FactionEffect> FactionEffects { get; init; }
public List<FactionEffect> FactionEffects { get; init; }
}

View File

@ -13,6 +13,6 @@ public class RedeemVoucher : JournalBase
public long Amount { get; init; }
public string Faction { get; init; }
public float BrokerPercentage { get; init; }
public IReadOnlyCollection<VoucherFaction> Factions { get; init; }
public List<VoucherFaction> Factions { get; init; }
}

View File

@ -7,5 +7,5 @@ public class Repair : JournalBase
public override string Event => "Repair";
public string Item { get; init; }
public int Cost { get; init; }
public ICollection<string> Items { get; init; }
public IList<string> Items { get; init; }
}

View File

@ -12,5 +12,5 @@ public class StoredModules : JournalBase
/// </summary>
public string StationName { get; init; }
public ulong MarketID { get; init; }
public IReadOnlyCollection<StoredItem> Items { get; init; }
public List<StoredItem> Items { get; init; }
}

View File

@ -12,6 +12,6 @@ public class StoredShips : JournalBase
/// </summary>
public string StationName { get; init; }
public string StarSystem { get; init; }
public IReadOnlyCollection<StoredShip> ShipsHere { get; init; }
public IReadOnlyCollection<StoredShip> ShipsRemote { get; init; }
public List<StoredShip> ShipsHere { get; init; }
public List<StoredShip> ShipsRemote { get; init; }
}

View File

@ -8,7 +8,7 @@ public class TechnologyBroker : JournalBase
public override string Event => "TechnologyBroker";
public string BrokerType { get; init; }
public ulong MarketID { get; init; }
public IReadOnlyCollection<ItemName> ItemsUnlocked { get; init; }
public IReadOnlyCollection<CommodityReward> Commodities { get; init; }
public IReadOnlyCollection<MaterialReward> Materials { get; init; }
public List<ItemName> ItemsUnlocked { get; init; }
public List<CommodityReward> Commodities { get; init; }
public List<MaterialReward> Materials { get; init; }
}