2025-06-25 21:51:11 +08:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Threading;
|
|
|
|
|
using Convention;
|
2025-06-13 10:52:21 +08:00
|
|
|
|
|
|
|
|
|
public class Program
|
|
|
|
|
{
|
2025-06-27 19:51:53 +08:00
|
|
|
|
class Vector2
|
2025-06-25 21:51:11 +08:00
|
|
|
|
{
|
2025-06-27 19:51:53 +08:00
|
|
|
|
public double x, y;
|
2025-06-25 21:51:11 +08:00
|
|
|
|
}
|
2025-06-27 19:51:53 +08:00
|
|
|
|
class Vector2X2
|
2025-06-25 21:51:11 +08:00
|
|
|
|
{
|
2025-06-27 19:51:53 +08:00
|
|
|
|
public double x, y;
|
|
|
|
|
public Vector2 next;
|
2025-06-25 21:51:11 +08:00
|
|
|
|
}
|
|
|
|
|
|
2025-06-13 10:52:21 +08:00
|
|
|
|
static void Main(string[] args)
|
|
|
|
|
{
|
2025-06-27 19:51:53 +08:00
|
|
|
|
EasySave.Save("key", new Vector2X2()
|
2025-06-25 21:51:11 +08:00
|
|
|
|
{
|
2025-06-27 19:51:53 +08:00
|
|
|
|
x = 10,
|
|
|
|
|
y = 20,
|
|
|
|
|
next = new()
|
2025-06-25 21:51:11 +08:00
|
|
|
|
{
|
2025-06-27 19:51:53 +08:00
|
|
|
|
x = 30,
|
|
|
|
|
y = 40
|
2025-06-25 21:51:11 +08:00
|
|
|
|
}
|
2025-06-27 19:51:53 +08:00
|
|
|
|
}, "test.json");
|
2025-06-13 10:52:21 +08:00
|
|
|
|
}
|
|
|
|
|
}
|