添加项目文件。

This commit is contained in:
kmyuhkyuk
2026-03-08 08:50:31 +08:00
commit 53ee11bbd9
20 changed files with 1890 additions and 0 deletions
@@ -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; }
}
}