Files
Convention-CSharp/[Test]/Program.cs

35 lines
716 B
C#
Raw Normal View History

2025-06-25 21:51:11 +08:00
using System;
using System.Collections.Generic;
2025-06-29 01:46:32 +08:00
using System.IO;
2025-06-25 21:51:11 +08:00
using System.Threading;
using Convention;
2025-06-29 01:46:32 +08:00
using Convention.EasySave;
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-29 01:46:32 +08:00
Directory.CreateDirectory(PlatformIndicator.PersistentDataPath);
Console.WriteLine(PlatformIndicator.PersistentDataPath);
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
}
}