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,30 @@
using FSO.Common.Utils;
namespace FSO.Server.Protocol.CitySelector
{
public class UserAuthorized : IXMLEntity
{
public string FSOVersion;
public string FSOBranch;
public string FSOUpdateUrl;
public string FSOCDNUrl;
public System.Xml.XmlElement Serialize(System.Xml.XmlDocument doc)
{
var element = doc.CreateElement("User-Authorized");
element.AppendTextNode("FSO-Version", FSOVersion);
element.AppendTextNode("FSO-Branch", FSOBranch);
element.AppendTextNode("FSO-UpdateUrl", FSOUpdateUrl);
element.AppendTextNode("FSO-CDNUrl", FSOCDNUrl);
return element;
}
public void Parse(System.Xml.XmlElement element)
{
this.FSOVersion = element.ReadTextNode("FSO-Version");
this.FSOBranch = element.ReadTextNode("FSO-Branch");
this.FSOUpdateUrl = element.ReadTextNode("FSO-UpdateUrl");
this.FSOCDNUrl = element.ReadTextNode("FSO-CDNUrl");
}
}
}