mirror of
https://gitea.tendokyu.moe/ppc/amnet.git
synced 2026-10-12 09:28:10 +03:00
create game-side .dll (initial commit)
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace AimeNet;
|
||||
|
||||
public record SystemState(
|
||||
[property: JsonPropertyName("api_ver")] int ApiVersion,
|
||||
[property: JsonPropertyName("server_name")] string ServerName);
|
||||
|
||||
public record CardReadRequest(
|
||||
[property: JsonPropertyName("card_id")] string MatrixCode);
|
||||
|
||||
[JsonSerializable(typeof(SystemState))]
|
||||
[JsonSerializable(typeof(CardReadRequest))]
|
||||
[JsonSourceGenerationOptions(WriteIndented = true)]
|
||||
public partial class AppJsonSerializerContext : JsonSerializerContext;
|
||||
Reference in New Issue
Block a user