Files
RAGECOOP-V/Core/Networking/ServerInfo.cs

33 lines
990 B
C#
Raw Normal View History

2022-10-10 16:45:58 +08:00
using System;
namespace RageCoop.Core
2022-08-12 18:10:56 +08:00
{
2022-08-27 14:17:10 +08:00
/// <summary>
2022-10-23 19:02:39 +08:00
/// A json object representing a server's information as annouced to master server.
2022-08-27 14:17:10 +08:00
/// </summary>
2022-10-10 16:45:58 +08:00
[Serializable]
2022-08-27 14:17:10 +08:00
public class ServerInfo
2022-08-12 18:10:56 +08:00
{
2022-08-13 11:42:15 +08:00
public string address { get; set; }
public int port { get; set; }
2022-08-13 11:42:15 +08:00
public string name { get; set; }
public string version { get; set; }
public int players { get; set; }
public int maxPlayers { get; set; }
2022-08-13 11:42:15 +08:00
public string country { get; set; }
public string description { get; set; }
public string website { get; set; }
public string gameMode { get; set; }
public string language { get; set; }
2022-08-12 18:10:56 +08:00
2022-08-13 11:42:15 +08:00
public bool useP2P { get; set; }
2022-08-12 18:10:56 +08:00
2022-08-13 11:42:15 +08:00
public bool useZT { get; set; }
2022-08-12 18:10:56 +08:00
2022-08-13 11:42:15 +08:00
public string ztID { get; set; }
2022-08-12 18:10:56 +08:00
2022-08-13 11:42:15 +08:00
public string ztAddress { get; set; }
2022-09-08 12:41:56 -07:00
public string publicKeyModulus { get; set; }
public string publicKeyExponent { get; set; }
2022-08-12 18:10:56 +08:00
}
2022-10-23 19:02:39 +08:00
}