2
0
mirror of https://github.com/9ParsonsB/Pulsar.git synced 2025-04-05 17:39:39 -04:00
pulsar/Pulsar/PulsarServiceRegistry.cs
Ben Parsons 579b2b115d Fix issues with Journal handling
Implement basic database
Handle startup events
only send events after the most recent LoadGame
2024-05-25 16:19:07 +10:00

33 lines
1.1 KiB
C#

namespace Pulsar;
using System.Diagnostics.CodeAnalysis;
using Lamar;
using Features;
using Features.Backpack;
using Features.Cargo;
using Features.ModulesInfo;
using Features.Journal;
using Features.Market;
using Features.NavRoute;
using Features.Outfitting;
using Features.ShipLocker;
using Features.Shipyard;
[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)]
public class PulsarServiceRegistry : ServiceRegistry
{
public PulsarServiceRegistry()
{
For<IFileHandlerService>().Use<FileHandlerService>();
For<IStatusService>().Use<StatusService>();
For<IModulesInfoService>().Use<ModulesInfoService>();
For<ICargoService>().Use<CargoService>();
For<IJournalService>().Use<JournalService>().Singleton();
For<IShipLockerService>().Use<ShipLockerService>();
For<IShipyardService>().Use<ShipyardService>();
For<IMarketService>().Use<MarketService>();
For<IBackpackService>().Use<BackpackService>();
For<INavRouteService>().Use<NavRouteService>();
For<IOutfittingService>().Use<OutfittingService>();
}
}