From 7b752970ffebc088d50d9913a58397e5751b3ea8 Mon Sep 17 00:00:00 2001
From: Cj <161484149+CJ-SPT@users.noreply.github.com>
Date: Mon, 6 Jan 2025 22:32:42 -0500
Subject: [PATCH] More prototypes
---
Core/Controllers/InRaidController.cs | 60 ++++++++++-
Core/Controllers/LauncherController.cs | 142 ++++++++++++++++++++++++-
Core/Controllers/LocationController.cs | 21 +++-
3 files changed, 220 insertions(+), 3 deletions(-)
diff --git a/Core/Controllers/InRaidController.cs b/Core/Controllers/InRaidController.cs
index b0dc011f..1644f02f 100644
--- a/Core/Controllers/InRaidController.cs
+++ b/Core/Controllers/InRaidController.cs
@@ -2,5 +2,63 @@ namespace Core.Controllers;
public class InRaidController
{
- // TODO
+ ///
+ /// Save locationId to active profiles in-raid object AND app context
+ ///
+ /// Session id
+ /// Register player request
+ public void AddPlayer(
+ string sessionId,
+ RegisterPlayerRequestData info)
+ {
+ throw new NotImplementedException();
+ }
+
+ ///
+ /// Handle raid/profile/scavsave
+ /// Save profile state to disk
+ /// Handles pmc/pscav
+ ///
+ ///
+ ///
+ public void SavePostRaidProfileForScav(
+ ScavSaveRequestData offRaidProfileData,
+ string sessionId)
+ {
+ throw new NotImplementedException();
+ }
+
+ ///
+ /// Get the inraid config from configs/inraid.json
+ ///
+ public void GetInRaidConfig()
+ {
+ throw new NotImplementedException();
+ }
+
+ ///
+ ///
+ ///
+ ///
+ ///
+ ///
+ public float GetTraitorScavHostileChance(
+ string url,
+ string sessionId)
+ {
+ throw new NotImplementedException();
+ }
+
+ ///
+ ///
+ ///
+ ///
+ ///
+ ///
+ public List GetBossConvertSettings(
+ string url,
+ string sessionId)
+ {
+ throw new NotImplementedException();
+ }
}
\ No newline at end of file
diff --git a/Core/Controllers/LauncherController.cs b/Core/Controllers/LauncherController.cs
index 5255d2be..cb2d4ac2 100644
--- a/Core/Controllers/LauncherController.cs
+++ b/Core/Controllers/LauncherController.cs
@@ -1,6 +1,146 @@
+using Core.Models.Eft.Profile;
+using Core.Models.Spt.Mod;
+
namespace Core.Controllers;
public class LauncherController
{
- // TODO
+ ///
+ ///
+ ///
+ ///
+ public ConnectResponse Connect()
+ {
+ throw new NotImplementedException();
+ }
+
+ ///
+ /// Get descriptive text for each of the profile edtions a player can choose, keyed by profile.json profile type
+ /// e.g. "Edge Of Darkness"
+ ///
+ /// Dictionary of profile types with related descriptive text
+ private Dictionary GetProfileDescriptions()
+ {
+ throw new NotImplementedException();
+ }
+
+ ///
+ ///
+ ///
+ ///
+ ///
+ public Info Find(string sessionId)
+ {
+ throw new NotImplementedException();
+ }
+
+ ///
+ ///
+ ///
+ ///
+ ///
+ public string Login(LoginRequestData info)
+ {
+ throw new NotImplementedException();
+ }
+
+ ///
+ ///
+ ///
+ ///
+ ///
+ public string Register(RegisterData info)
+ {
+ throw new NotImplementedException();
+ }
+
+ ///
+ ///
+ ///
+ ///
+ ///
+ private string CreateAccount(RegisterData info)
+ {
+ throw new NotImplementedException();
+ }
+
+ ///
+ ///
+ ///
+ ///
+ private string GenerateProfileId()
+ {
+ throw new NotImplementedException();
+ }
+
+ ///
+ ///
+ ///
+ ///
+ ///
+ ///
+ private string FormatId(
+ long timeStamp,
+ int counter)
+ {
+ throw new NotImplementedException();
+ }
+
+ ///
+ ///
+ ///
+ ///
+ ///
+ public string ChangeUsername(ChangeRequestData info)
+ {
+ throw new NotImplementedException();
+ }
+
+ ///
+ ///
+ ///
+ ///
+ ///
+ public string ChangePassword(ChangeRequestData info)
+ {
+ throw new NotImplementedException();
+ }
+
+ ///
+ /// Handle launcher requesting profile be wiped
+ ///
+ /// RegisterData
+ /// Session id
+ public string Wipe(RegisterData info)
+ {
+ throw new NotImplementedException();
+ }
+
+ ///
+ ///
+ ///
+ ///
+ public string GetCompatibleTarkovVersion()
+ {
+ throw new NotImplementedException();
+ }
+
+ ///
+ /// Get the mods the server has currently loaded
+ ///
+ /// Dictionary of mod name and mod details
+ public Dictionary GetLoadedServerMods() // TODO: We no longer use a package.json
+ {
+ throw new NotImplementedException();
+ }
+
+ ///
+ /// Get the mods a profile has ever loaded into game with
+ ///
+ /// Player id
+ /// List of mod details
+ public List GetServerModsProfileUsed(string sessionId)
+ {
+ throw new NotImplementedException();
+ }
}
\ No newline at end of file
diff --git a/Core/Controllers/LocationController.cs b/Core/Controllers/LocationController.cs
index d8fe53b2..4f17a525 100644
--- a/Core/Controllers/LocationController.cs
+++ b/Core/Controllers/LocationController.cs
@@ -2,5 +2,24 @@ namespace Core.Controllers;
public class LocationController
{
- // TODO
+ ///
+ /// Handle client/locations
+ /// Get all maps base location properties without loot data
+ ///
+ /// Players Id
+ /// LocationsGenerateAllResponse
+ public LocationsGenerateAllResponse GenerateAll(string sessionId)
+ {
+ throw new NotImplementedException();
+ }
+
+ ///
+ /// Handle client/airdrop/loot
+ ///
+ ///
+ ///
+ public GetAirDropLootResponse GetAirDropLoot(GetAirDropLootRequest request)
+ {
+ throw new NotImplementedException();
+ }
}
\ No newline at end of file