Inject controllers and services

This commit is contained in:
CWX
2025-01-11 18:14:39 +00:00
parent 8f22759ec5
commit 0ca4ec0887
70 changed files with 209 additions and 58 deletions
+3 -1
View File
@@ -1,4 +1,5 @@
using Core.Context;
using Core.Annotations;
using Core.Context;
using Core.Generators;
using Core.Helpers;
using Core.Models.Common;
@@ -18,6 +19,7 @@ using ILogger = Core.Models.Utils.ILogger;
namespace Core.Controllers;
[Injectable]
public class BotController
{
protected ILogger _logger;
+3 -1
View File
@@ -1,9 +1,11 @@
using Core.Annotations;
using Core.Models.Eft.Builds;
using Core.Models.Eft.PresetBuild;
using Core.Models.Eft.Profile;
namespace Core.Controllers;
[Injectable]
public class BuildController
{
/// <summary>
@@ -65,4 +67,4 @@ public class BuildController
{
throw new NotImplementedException();
}
}
}
+3 -1
View File
@@ -1,7 +1,9 @@
using Core.Annotations;
using Core.Models.Spt.Logging;
namespace Core.Controllers;
[Injectable]
public class ClientLogController
{
/// <summary>
@@ -12,4 +14,4 @@ public class ClientLogController
{
throw new NotImplementedException();
}
}
}
+3 -1
View File
@@ -1,3 +1,4 @@
using Core.Annotations;
using Core.Models.Eft.Common;
using Core.Models.Eft.Common.Tables;
using Core.Models.Eft.Customization;
@@ -7,6 +8,7 @@ using Core.Models.Eft.Profile;
namespace Core.Controllers;
[Injectable]
public class CustomizationController
{
/// <summary>
@@ -140,4 +142,4 @@ public class CustomizationController
{
throw new NotImplementedException();
}
}
}
+2
View File
@@ -1,3 +1,4 @@
using Core.Annotations;
using Core.Models.Eft.Dialog;
using Core.Models.Eft.HttpResponse;
using Core.Models.Eft.Profile;
@@ -5,6 +6,7 @@ using Core.Models.Enums;
namespace Core.Controllers;
[Injectable]
public class DialogueController
{
/// <summary>
+2
View File
@@ -1,9 +1,11 @@
using Core.Annotations;
using Core.Models.Eft.Common;
using Core.Models.Eft.Game;
using Core.Models.Eft.Profile;
namespace Core.Controllers;
[Injectable]
public class GameController
{
/// <summary>
+4 -1
View File
@@ -1,10 +1,13 @@
using Core.Annotations;
namespace Core.Controllers;
// TODO: This seems unused, is it even needed?
[Injectable]
public class HandBookController
{
public void Load()
{
throw new NotImplementedException();
}
}
}
+3 -1
View File
@@ -1,9 +1,11 @@
using Core.Annotations;
using Core.Models.Eft.Common;
using Core.Models.Eft.Health;
using Core.Models.Eft.ItemEvent;
namespace Core.Controllers;
[Injectable]
public class HealthController
{
/// <summary>
@@ -66,4 +68,4 @@ public class HealthController
{
throw new NotImplementedException();
}
}
}
+4 -1
View File
@@ -1,6 +1,9 @@
using Core.Annotations;
namespace Core.Controllers;
[Injectable]
public class HideoutController
{
// TODO
}
}
+2
View File
@@ -1,3 +1,4 @@
using Core.Annotations;
using Core.Context;
using Core.Helpers;
using Core.Models.Eft.InRaid;
@@ -9,6 +10,7 @@ using ILogger = Core.Models.Utils.ILogger;
namespace Core.Controllers;
[Injectable]
public class InRaidController
{
protected ILogger _logger;
+4 -1
View File
@@ -1,6 +1,9 @@
using Core.Annotations;
namespace Core.Controllers;
[Injectable]
public class InsuranceController
{
// TODO
}
}
+4 -1
View File
@@ -1,6 +1,9 @@
using Core.Annotations;
namespace Core.Controllers;
[Injectable]
public class InventoryController
{
// TODO
}
}
+3 -1
View File
@@ -1,8 +1,10 @@
using Core.Annotations;
using Core.Models.Eft.Common.Tables;
using Core.Models.Eft.Location;
namespace Core.Controllers;
[Injectable]
public class LocationController
{
/// <summary>
@@ -25,4 +27,4 @@ public class LocationController
{
throw new NotImplementedException();
}
}
}
+2
View File
@@ -1,7 +1,9 @@
using Core.Annotations;
using Core.Models.Eft.Match;
namespace Core.Controllers;
[Injectable]
public class MatchController
{
/// <summary>
+3 -1
View File
@@ -1,9 +1,11 @@
using Core.Annotations;
using Core.Models.Eft.Common;
using Core.Models.Eft.ItemEvent;
using Core.Models.Eft.Notes;
namespace Core.Controllers;
[Injectable]
public class NoteController
{
/// <summary>
@@ -50,4 +52,4 @@ public class NoteController
{
throw new NotImplementedException();
}
}
}
+3 -1
View File
@@ -1,7 +1,9 @@
using Core.Annotations;
using Core.Models.Eft.Notifier;
namespace Core.Controllers;
[Injectable]
public class NotifierController
{
/// <summary>
@@ -36,4 +38,4 @@ public class NotifierController
{
throw new NotImplementedException();
}
}
}
+4 -1
View File
@@ -1,5 +1,8 @@
using Core.Annotations;
namespace Core.Controllers;
[Injectable]
public class PresetController
{
/// <summary>
@@ -9,4 +12,4 @@ public class PresetController
{
throw new NotImplementedException();
}
}
}
+3 -1
View File
@@ -1,8 +1,10 @@
using Core.Annotations;
using Core.Models.Eft.Common;
using Core.Models.Eft.Common.Tables;
namespace Core.Controllers;
[Injectable]
public class PrestigeController
{
/// <summary>
@@ -30,4 +32,4 @@ public class PrestigeController
{
throw new NotImplementedException("Method not Implemented");
}
}
}
+2
View File
@@ -1,3 +1,4 @@
using Core.Annotations;
using Core.Models.Eft.Common;
using Core.Models.Eft.Common.Tables;
using Core.Models.Eft.ItemEvent;
@@ -5,6 +6,7 @@ using Core.Models.Eft.Quests;
namespace Core.Controllers;
[Injectable]
public class QuestController
{
// TODO
+2
View File
@@ -1,9 +1,11 @@
using Core.Annotations;
using Core.Models.Eft.Common;
using Core.Models.Eft.ItemEvent;
using Core.Models.Eft.Ragfair;
namespace Core.Controllers;
[Injectable]
public class RagfairController
{
// TODO
+3 -1
View File
@@ -1,9 +1,11 @@
using Core.Annotations;
using Core.Models.Eft.Common;
using Core.Models.Eft.ItemEvent;
using Core.Models.Eft.Repair;
namespace Core.Controllers;
[Injectable]
public class RepairController
{
/// <summary>
@@ -38,4 +40,4 @@ public class RepairController
{
throw new NotImplementedException();
}
}
}
@@ -1,3 +1,4 @@
using Core.Annotations;
using Core.Models.Eft.Common;
using Core.Models.Eft.Common.Tables;
using Core.Models.Eft.ItemEvent;
@@ -5,6 +6,7 @@ using Core.Models.Eft.Quests;
namespace Core.Controllers;
[Injectable]
public class RepeatableQuestController
{
// TODO
+3 -1
View File
@@ -1,3 +1,4 @@
using Core.Annotations;
using Core.Models.Eft.Common;
using Core.Models.Eft.Common.Tables;
using Core.Models.Eft.ItemEvent;
@@ -7,6 +8,7 @@ using Core.Models.Enums;
namespace Core.Controllers;
[Injectable]
public class TradeController
{
/// <summary>
@@ -146,4 +148,4 @@ public class TradeController
{
throw new NotImplementedException();
}
}
}
+2
View File
@@ -1,8 +1,10 @@
using Core.Annotations;
using Core.Models.Eft.Common.Tables;
using Core.Models.Eft.Game;
namespace Core.Controllers;
[Injectable]
public class TraderController
{
/// <summary>
+3 -1
View File
@@ -1,8 +1,10 @@
using Core.Annotations;
using Core.Models.Eft.Weather;
using Core.Models.Spt.Weather;
namespace Core.Controllers;
[Injectable]
public class WeatherController
{
/// <summary>
@@ -23,4 +25,4 @@ public class WeatherController
{
throw new NotImplementedException();
}
}
}
+3 -1
View File
@@ -1,9 +1,11 @@
using Core.Annotations;
using Core.Models.Eft.Common;
using Core.Models.Eft.ItemEvent;
using Core.Models.Eft.Wishlist;
namespace Core.Controllers;
[Injectable]
public class WishlistController
{
/// <summary>
@@ -50,4 +52,4 @@ public class WishlistController
{
throw new NotImplementedException();
}
}
}