-
Notifications
You must be signed in to change notification settings - Fork 41
/
ModEntry.cs
33 lines (31 loc) · 1.47 KB
/
ModEntry.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
namespace StardewMods.EasyAccess;
using StardewMods.Common.Interfaces;
using StardewMods.Common.Services;
using StardewMods.Common.Services.Integrations.ContentPatcher;
using StardewMods.Common.Services.Integrations.FauxCore;
using StardewMods.Common.Services.Integrations.GenericModConfigMenu;
using StardewMods.Common.Services.Integrations.ToolbarIcons;
using StardewMods.EasyAccess.Framework.Interfaces;
using StardewMods.EasyAccess.Framework.Services;
/// <inheritdoc />
internal sealed class ModEntry : Mod
{
/// <inheritdoc />
protected override void Init(Container container)
{
I18n.Init(this.Helper.Translation);
container.RegisterSingleton<AssetHandler>();
container.RegisterSingleton<CollectService>();
container.RegisterSingleton<IModConfig, ConfigManager>();
container.RegisterSingleton<ConfigManager, ConfigManager>();
container.RegisterSingleton<ContentPatcherIntegration>();
container.RegisterSingleton<DispenseService>();
container.RegisterSingleton<IEventManager, EventManager>();
container.RegisterSingleton<FauxCoreIntegration>();
container.RegisterSingleton<GenericModConfigMenuIntegration>();
container.RegisterSingleton<IIconRegistry, FauxCoreIntegration>();
container.RegisterSingleton<ISimpleLogging, FauxCoreIntegration>();
container.RegisterSingleton<IThemeHelper, FauxCoreIntegration>();
container.RegisterSingleton<ToolbarIconsIntegration>();
}
}