Files
Convention-CSharp/[Test]/Program.cs
2025-06-29 01:46:32 +08:00

35 lines
716 B
C#

using System;
using System.Collections.Generic;
using System.IO;
using System.Threading;
using Convention;
using Convention.EasySave;
public class Program
{
class Vector2
{
public double x, y;
}
class Vector2X2
{
public double x, y;
public Vector2 next;
}
static void Main(string[] args)
{
Directory.CreateDirectory(PlatformIndicator.PersistentDataPath);
Console.WriteLine(PlatformIndicator.PersistentDataPath);
EasySave.Save("key", new Vector2X2()
{
x = 10,
y = 20,
next = new()
{
x = 30,
y = 40
}
}, "test.json");
}
}