Removed NioTSO client and server

- NioTSO client isn't needed because we're using RayLib
- Added FreeSO's API server to handle most backend operations
This commit is contained in:
Tony Bark 2024-05-01 02:55:43 -04:00
parent f12ba1502b
commit 22191ce648
591 changed files with 53264 additions and 3362 deletions

View file

@ -0,0 +1,33 @@
namespace FSO.Server.Protocol.Electron.Model
{
public enum ChangeRoommateResponseStatus : byte
{
INVITE_SUCCESS = 0,
//invite codes
ROOMIE_ELSEWHERE = 1,
TOO_MANY_ROOMMATES = 2,
OTHER_INVITE_PENDING = 3,
//shared
YOU_ARE_NOT_OWNER = 4, //everything but move out
//kick or move out
YOU_ARE_NOT_ROOMMATE = 5,
LOT_MUST_BE_CLOSED = 6, //move out of lot with 1 roommate
//invite response
LOT_DOESNT_EXIST = 7,
NO_INVITE_PENDING = 8,
ACCEPT_SUCCESS = 9,
DECLINE_SUCCESS = 10,
KICK_SUCCESS = 11,
SELFKICK_SUCCESS = 12,
ROOMMATE_LEFT = 13,
GOT_KICKED = 14,
UNKNOWN = 255
}
}

View file

@ -0,0 +1,11 @@
namespace FSO.Server.Protocol.Electron.Model
{
public enum ChangeRoommateType : byte
{
INVITE = 0,
KICK = 1,
ACCEPT = 2,
DECLINE = 3,
POLL = 4
}
}

View file

@ -0,0 +1,11 @@
namespace FSO.Server.Protocol.Electron.Model
{
public enum FindAvatarResponseStatus
{
FOUND,
IGNORING_THEM,
IGNORING_YOU,
NOT_ON_LOT,
PRIVACY_ENABLED,
}
}

View file

@ -0,0 +1,14 @@
namespace FSO.Server.Protocol.Electron.Model
{
public enum FindLotResponseStatus
{
FOUND,
NO_SUCH_LOT,
NOT_OPEN,
NOT_PERMITTED_TO_OPEN,
CLAIM_FAILED,
NO_CAPACITY,
NO_ADMIT,
UNKNOWN_ERROR
}
}

View file

@ -0,0 +1,8 @@
namespace FSO.Server.Protocol.Electron.Model
{
public interface IActionRequest
{
object OType { get; }
bool NeedsValidation { get; }
}
}

View file

@ -0,0 +1,8 @@
namespace FSO.Server.Protocol.Electron.Model
{
public interface IActionResponse
{
bool Success { get; }
object OCode { get; }
}
}

View file

@ -0,0 +1,9 @@
namespace FSO.Server.Protocol.Electron.Model
{
public enum ModerationRequestType
{
IPBAN_USER,
BAN_USER,
KICK_USER
}
}