添加项目文件。
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
using System.Text.Json.Serialization;
|
||||
using MegaCrit.Sts2.Core.Saves;
|
||||
|
||||
namespace SlayTheSpire2.LAN.Multiplayer.Models
|
||||
{
|
||||
[JsonSerializable(typeof(SettingsModel))]
|
||||
public partial class SettingsModelContext : JsonSerializerContext;
|
||||
|
||||
public class SettingsModel : ISaveSchema
|
||||
{
|
||||
[JsonPropertyName("host_port")] public ushort HostPort { get; set; } = 33771;
|
||||
[JsonPropertyName("host_max_players")] public int HostMaxPlayers { get; set; } = 4;
|
||||
[JsonPropertyName("ip_address")] public string IPAddress { get; set; } = "127.0.0.1";
|
||||
|
||||
public int SchemaVersion { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user