feat(scripting): add mono csharp runtime foundation

This commit is contained in:
2026-03-27 13:07:39 +08:00
parent 134a80b334
commit b06932724c
33 changed files with 4227 additions and 18 deletions

View File

@@ -0,0 +1,29 @@
using System.Runtime.InteropServices;
namespace XCEngine
{
[StructLayout(LayoutKind.Sequential)]
public struct Vector2
{
public float X;
public float Y;
public float x
{
get => X;
set => X = value;
}
public float y
{
get => Y;
set => Y = value;
}
public Vector2(float x, float y)
{
X = x;
Y = y;
}
}
}