more types

This commit is contained in:
CWX
2025-01-06 18:22:04 +00:00
parent f5faf1b6af
commit 256f820f17
8 changed files with 173 additions and 33 deletions
@@ -2,5 +2,8 @@
public class ItemEventCallbacks
{
public GetBodyResponseData<ItemEventRouterResponse> HandleEvents(string url, ItemEventRouterRequest info, string sessionID)
{
throw new NotImplementedException();
}
}
+64 -1
View File
@@ -2,5 +2,68 @@
public class LauncherCallbacks
{
public string Connect()
{
throw new NotImplementedException();
}
public string Login(string url, LoginRequestData info, string sessionID)
{
throw new NotImplementedException();
}
public string Register(string url, RegisterData info, string sessionID)
{
throw new NotImplementedException();
}
public string Get(string url, LoginRequestData info, string sessionID)
{
throw new NotImplementedException();
}
public string ChangeUsername(string url, ChangeRequestData info, string sessionID)
{
throw new NotImplementedException();
}
public string ChangePassword(string url, ChangeRequestData info, string sessionID)
{
throw new NotImplementedException();
}
public string Wipe(string url, RegisterData info, string sessionID)
{
throw new NotImplementedException();
}
public string GetMiniProfile(string url, GetMiniProfileRequestData info, string sessionID)
{
throw new NotImplementedException();
}
public string GetAllMiniProfiles(string url, object info, string sessionID)
{
throw new NotImplementedException();
}
public string GetServerVersion()
{
throw new NotImplementedException();
}
public string Ping(string url, object info, string sessionID)
{
throw new NotImplementedException();
}
public string RemoveProfile(string url, RemoveProfileData info, string sessionID)
{
throw new NotImplementedException();
}
public string GetCompatibleTarkovVersion()
{
throw new NotImplementedException();
}
}
+12 -2
View File
@@ -1,6 +1,16 @@
namespace Core.Models.Spt.Callbacks;
using Core.Models.Eft.Common;
namespace Core.Models.Spt.Callbacks;
public class LocationCallbacks
{
public GetBodyResponseData<LocationsGenerateAllResponse> GetLocationData(string url, object info, string sessionID)
{
throw new NotImplementedException();
}
public GetBodyResponseData<LocationBase> GetLocation(string url, GetLocationRequestData info, string sessionID)
{
throw new NotImplementedException();
}
}
+19 -1
View File
@@ -2,5 +2,23 @@
public class ModCallbacks
{
public void Load()
{
throw new NotImplementedException();
}
public void SendBundle(string sessionID, object req, object resp, object body)
{
throw new NotImplementedException();
}
public string GetBundles(string url, object info, string sessionID)
{
throw new NotImplementedException();
}
public string GetBundle(string url, object info, string sessionID)
{
throw new NotImplementedException();
}
}
+14 -1
View File
@@ -2,5 +2,18 @@
public class NoteCallbacks
{
public ItemEventRouterResponse AddNote(PmcData pmcData, NoteActionData info, string sessionID)
{
throw new NotImplementedException();
}
public ItemEventRouterResponse EditNote(PmcData pmcData, NoteActionData info, string sessionID)
{
throw new NotImplementedException();
}
public ItemEventRouterResponse DeleteNote(PmcData pmcData, NoteActionData info, string sessionID)
{
throw new NotImplementedException();
}
}
+30 -1
View File
@@ -2,5 +2,34 @@
public class NotifierCallbacks
{
/**
* If we don't have anything to send, it's ok to not send anything back
* because notification requests can be long-polling. In fact, we SHOULD wait
* until we actually have something to send because otherwise we'd spam the client
* and the client would abort the connection due to spam.
*/
public void SendNotification(string sessionID, object req, object resp, object data)
{
throw new NotImplementedException();
}
public GetBodyResponseData<List<object>> GetNotifier(string url, object info, string sessionID)
{
throw new NotImplementedException();
}
public GetBodyResponseData<NotifierChannel> CreateNotifierChannel(string url, EmptyRequestData info, string sessionID)
{
throw new NotImplementedException();
}
public GetBodyResponseData<object> SelectProfile(string url, UIDRequestData info, string sessionID)
{
throw new NotImplementedException();
}
public string Notify(string url, object info, string sessionID)
{
throw new NotImplementedException();
}
}
+15 -13
View File
@@ -1,14 +1,16 @@
namespace Core.Models.Spt.Logging;
// namespace Core.Models.Spt.Logging;
//
// public struct LogBackgroundColor
// {
// public const string DEFAULT = "";
// public const string BLACK = "blackBG";
// public const string RED = "redBG";
// public const string GREEN = "greenBG";
// public const string YELLOW = "yellowBG";
// public const string BLUE = "blueBG";
// public const string MAGENTA = "magentaBG";
// public const string CYAN = "cyanBG";
// public const string WHITE = "whiteBG";
// }
public struct LogBackgroundColor
{
public const string DEFAULT = "";
public const string BLACK = "blackBG";
public const string RED = "redBG";
public const string GREEN = "greenBG";
public const string YELLOW = "yellowBG";
public const string BLUE = "blueBG";
public const string MAGENTA = "magentaBG";
public const string CYAN = "cyanBG";
public const string WHITE = "whiteBG";
}
// TODO: this likely wont be used anymore, so commenting out insteaad of reimplementing
+15 -13
View File
@@ -1,14 +1,16 @@
namespace Core.Models.Spt.Logging;
// namespace Core.Models.Spt.Logging;
//
// public struct LogTextColor
// {
// public const string BLACK = "black";
// public const string RED = "red";
// public const string GREEN = "green";
// public const string YELLOW = "yellow";
// public const string BLUE = "blue";
// public const string MAGENTA = "Magenta";
// public const string CYAN = "cyan";
// public const string WHITE = "white";
// public const string GRAY = "gray";
// }
public struct LogTextColor
{
public const string BLACK = "black";
public const string RED = "red";
public const string GREEN = "green";
public const string YELLOW = "yellow";
public const string BLUE = "blue";
public const string MAGENTA = "Magenta";
public const string CYAN = "cyan";
public const string WHITE = "white";
public const string GRAY = "gray";
}
// TODO: this likely wont be used anymore, so commenting out insteaad of reimplementing