Reorganize all observatory core projects into monorepo (#25)

* chore: move all observatory repos to core

* only save journal folder on change, don't constantly re-check during monitoring

* chore: monorepo project changes

* chore: monorepo migration
This commit is contained in:
Xjph 2021-10-21 19:31:32 -02:30 • committed by GitHub
commit 4c1031b8f9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
54 changed files with 7565 additions and 5 deletions

View file

@ -0,0 +1,7 @@
namespace Observatory.Framework.Files.Journal
{
public class BuyAmmo : JournalBase
{
public int Cost { get; init; }
}
}

View file

@ -0,0 +1,11 @@
namespace Observatory.Framework.Files.Journal
{
public class BuyDrones : JournalBase
{
public string Type { get; init; }
public int Count { get; init; }
public int BuyPrice { get; init; }
public int SellPrice { get; init; }
public int TotalCost { get; init; }
}
}

View file

@ -0,0 +1,21 @@
using Observatory.Framework.Files.ParameterTypes;
using System.Text.Json.Serialization;
namespace Observatory.Framework.Files.Journal
{
public class CargoDepot : JournalBase
{
public int 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 int ItemsCollected { get; init; }
public int ItemsDelivered { get; init; }
public int TotalItemsToDeliver { get; init; }
public float Progress { get; init; }
}
}

View file

@ -0,0 +1,10 @@
using Observatory.Framework.Files.ParameterTypes;
using System.Collections.Immutable;
namespace Observatory.Framework.Files.Journal
{
public class CommunityGoal : JournalBase
{
public ImmutableList<CurrentGoal> CurrentGoals { get; init; }
}
}

View file

@ -0,0 +1,9 @@
namespace Observatory.Framework.Files.Journal
{
public class CommunityGoalDiscard : JournalBase
{
public long CGID { get; init; }
public string Name { get; init; }
public string System { get; init; }
}
}

View file

@ -0,0 +1,6 @@
namespace Observatory.Framework.Files.Journal
{
public class CommunityGoalJoin : CommunityGoalDiscard
{
}
}

View file

@ -0,0 +1,7 @@
namespace Observatory.Framework.Files.Journal
{
public class CommunityGoalReward : CommunityGoalDiscard
{
public long Reward { get; init; }
}
}

View file

@ -0,0 +1,7 @@
namespace Observatory.Framework.Files.Journal
{
public class CrewAssign : CrewFire
{
public string Role { get; init; }
}
}

View file

@ -0,0 +1,8 @@
namespace Observatory.Framework.Files.Journal
{
public class CrewFire : JournalBase
{
public string Name { get; init; }
public long CrewID { get; init; }
}
}

View file

@ -0,0 +1,9 @@
namespace Observatory.Framework.Files.Journal
{
public class CrewHire : CrewFire
{
public string Faction { get; init; }
public long Cost { get; init; }
public int CombatRank { get; init; }
}
}

View file

@ -0,0 +1,12 @@
using System;
namespace Observatory.Framework.Files.Journal
{
[Obsolete("This event was removed in Elite Dangerous 3.0 and will only appear in legacy data.")]
public class EngineerApply : JournalBase
{
public string Engineer { get; init; }
public string Blueprint { get; init; }
public int Level { get; init; }
}
}

View file

@ -0,0 +1,20 @@
using Observatory.Framework.Files.ParameterTypes;
using System.Text.Json.Serialization;
namespace Observatory.Framework.Files.Journal
{
public class EngineerContribution : JournalBase
{
public string Engineer { get; init; }
public long EngineerID { get; init; }
[JsonConverter(typeof(JsonStringEnumConverter))]
public ContributionType Type { get; init; }
public string Commodity { get; init; }
public string Commodity_Localised { get; init; }
public string Material { get; init; }
public string Material_Localised { get; init; }
public string Faction { get; init; }
public int Quantity { get; init; }
public int TotalQuantity { get; init; }
}
}

View file

@ -0,0 +1,26 @@
using Observatory.Framework.Files.Converters;
using Observatory.Framework.Files.ParameterTypes;
using System.Text.Json.Serialization;
using System.Collections.Immutable;
namespace Observatory.Framework.Files.Journal
{
public class EngineerCraft : JournalBase
{
public string Engineer { get; init; }
public long EngineerID { get; init; }
public string Blueprint { get; init; }
public string Slot { get; init; }
public string Module { get; init; }
public long BlueprintID { get; init; }
public string BlueprintName { get; init; }
public string ExperimentalEffect { get; init; }
public string ExperimentalEffect_Localised { get; init; }
public int Level { get; init; }
public float Quality { get; init; }
public string ApplyExperimentalEffect { get; init; }
[JsonConverter(typeof(MaterialConverter))]
public ImmutableList<Material> Ingredients { get; init; }
public ImmutableList<Modifier> Modifiers { get; init; }
}
}

View file

@ -0,0 +1,7 @@
namespace Observatory.Framework.Files.Journal
{
public class EngineerLegacyConvert : EngineerCraft
{
public bool IsPreview { get; init; }
}
}

View file

@ -0,0 +1,17 @@
using Observatory.Framework.Files.ParameterTypes;
using System.Text.Json.Serialization;
using System.Collections.Immutable;
namespace Observatory.Framework.Files.Journal
{
public class EngineerProgress : JournalBase
{
public string Engineer { get; init; }
public int EngineerID { get; init; }
public int Rank { get; init; }
public int RankProgress { get; init; }
[JsonConverter(typeof(JsonStringEnumConverter))]
public ParameterTypes.Progress Progress { get; init; }
public ImmutableList<EngineerType> Engineers { get; init; }
}
}

View file

@ -0,0 +1,14 @@
namespace Observatory.Framework.Files.Journal
{
public class FetchRemoteModule : JournalBase
{
public int 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 long TransferCost { get; init; }
public string Ship { get; init; }
public long TransferTime { get; init; }
}
}

View file

@ -0,0 +1,16 @@
using System.Text.Json.Serialization;
using Observatory.Framework.Files.ParameterTypes;
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 string StationName { get; init; }
public string StationType { get; init; }
public string StarSystem { get; init; }
[JsonConverter(typeof(JsonStringEnumConverter))]
public CarrierDockingAccess CarrierDockingAccess { get; init; }
}
}

View file

@ -0,0 +1,13 @@
using Observatory.Framework.Files.ParameterTypes;
using System.Collections.Immutable;
namespace Observatory.Framework.Files.Journal
{
public class MassModuleStore : JournalBase
{
public long MarketID { get; init; }
public string Ship { get; init; }
public ulong ShipID { get; init; }
public ImmutableList<Item> Items { get; init; }
}
}

View file

@ -0,0 +1,12 @@
using Observatory.Framework.Files.ParameterTypes;
namespace Observatory.Framework.Files.Journal
{
public class MaterialTrade : JournalBase
{
public long MarketID { get; init; }
public string TraderType { get; init; }
public TradeDetail Paid { get; init; }
public TradeDetail Received { get; init; }
}
}

View file

@ -0,0 +1,9 @@
namespace Observatory.Framework.Files.Journal
{
public class MissionAbandoned : JournalBase
{
public string Name { get; init; }
public long MissionID { get; init; }
public long Fine { get; init; }
}
}

Some files were not shown because too many files have changed in this diff Show more