Lots of new things (#40)

* callbacks

* controllers

* Router override

* make requests use interface

* create Routers

* extra parts
This commit is contained in:
CWX
2025-01-12 15:35:32 +00:00
committed by GitHub
parent 1854ac4e2b
commit bb887b0901
85 changed files with 1961 additions and 117 deletions
+14 -1
View File
@@ -2,12 +2,21 @@ using Core.Annotations;
using Core.Models.Eft.Common;
using Core.Models.Eft.Game;
using Core.Models.Eft.Profile;
using ILogger = Core.Models.Utils.ILogger;
namespace Core.Controllers;
[Injectable]
public class GameController
{
protected ILogger _logger;
public GameController()
{
}
/// <summary>
/// Handle client/game/start
/// </summary>
@@ -54,7 +63,11 @@ public class GameController
string sessionId,
GameModeRequestData requestData)
{
throw new NotImplementedException();
return new()
{
GameMode = "pve",
BackendUrl = "127.0.0.1:6969"
};
}
/// <summary>
+1 -1
View File
@@ -100,6 +100,6 @@ public class InRaidController
string url,
string sessionId)
{
throw new NotImplementedException();
return _botConfig.AssaultToBossConversion.BossesToConvertToWeights.Keys.ToList();
}
}