mirror of
https://github.com/simtactics/mysimulation.git
synced 2025-07-06 14:40:28 -04:00
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:
parent
f12ba1502b
commit
22191ce648
591 changed files with 53264 additions and 3362 deletions
30
server/FSO.Server.Protocol/CitySelector/UserAuthorized.cs
Executable file
30
server/FSO.Server.Protocol/CitySelector/UserAuthorized.cs
Executable 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");
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue