From e5481361cff5dcd11e22680c69d1d178b5eb0824 Mon Sep 17 00:00:00 2001 From: Cj <161484149+CJ-SPT@users.noreply.github.com> Date: Mon, 6 Jan 2025 19:49:49 -0500 Subject: [PATCH] Add BuildController.cs --- Core/Controllers/BotController.cs | 9 +++- Core/Controllers/BuildController.cs | 66 +++++++++++++++++++++++++++++ 2 files changed, 73 insertions(+), 2 deletions(-) create mode 100644 Core/Controllers/BuildController.cs diff --git a/Core/Controllers/BotController.cs b/Core/Controllers/BotController.cs index dbffe2b7..1b3a809a 100644 --- a/Core/Controllers/BotController.cs +++ b/Core/Controllers/BotController.cs @@ -1,4 +1,5 @@ using Core.Models.Common; +using Core.Models.Eft.Common; using Core.Models.Eft.Common.Tables; using Core.Models.Spt.Config; @@ -83,10 +84,14 @@ public class BotController { throw new NotImplementedException(); } - - + public int GetBotCap() { throw new NotImplementedException(); } + + public object GetAiBotBrainTypes() // TODO: Returns `any` in the node server + { + throw new NotImplementedException(); + } } \ No newline at end of file diff --git a/Core/Controllers/BuildController.cs b/Core/Controllers/BuildController.cs new file mode 100644 index 00000000..91299800 --- /dev/null +++ b/Core/Controllers/BuildController.cs @@ -0,0 +1,66 @@ +using Core.Models.Eft.Profile; + +namespace Core.Controllers; + +public class BuildController +{ + /// + /// Handle client/handbook/builds/my/list + /// + /// + /// + public UserBuilds GetUserBuilds(string sessionID) + { + throw new NotImplementedException(); + } + + /// + /// Handle client/builds/weapon/save + /// + /// + /// + public void SaveWeaponBuild(string sessionId, PresetBuildActionRequestData body) + { + throw new NotImplementedException(); + } + + /// + /// Handle client/builds/equipment/save event + /// + /// + /// + public void SaveEquipmentBuild(string sessionId, PresetBuildActionRequestData request) + { + throw new NotImplementedException(); + } + + /// + /// Handle client/builds/delete + /// + /// + /// + public void RemoveBuild(string sessionId, RemoveBuildReqestData request) + { + RemovePlayerBuild(request.id, sessionId); + } + + /// + /// Handle client/builds/magazine/save + /// + /// + /// + public void CreateMagazineTemplate(string sessionId, SetMagazineRequest request) + { + throw new NotImplementedException(); + } + + /// + /// + /// + /// + /// + private void RemovePlayerBuild(string idToRemove, string sessionId) + { + throw new NotImplementedException(); + } +} \ No newline at end of file