feat(scripting): add mono csharp runtime foundation
This commit is contained in:
37
managed/XCEngine.ScriptCore/Vector3.cs
Normal file
37
managed/XCEngine.ScriptCore/Vector3.cs
Normal file
@@ -0,0 +1,37 @@
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace XCEngine
|
||||
{
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
public struct Vector3
|
||||
{
|
||||
public float X;
|
||||
public float Y;
|
||||
public float Z;
|
||||
|
||||
public float x
|
||||
{
|
||||
get => X;
|
||||
set => X = value;
|
||||
}
|
||||
|
||||
public float y
|
||||
{
|
||||
get => Y;
|
||||
set => Y = value;
|
||||
}
|
||||
|
||||
public float z
|
||||
{
|
||||
get => Z;
|
||||
set => Z = value;
|
||||
}
|
||||
|
||||
public Vector3(float x, float y, float z)
|
||||
{
|
||||
X = x;
|
||||
Y = y;
|
||||
Z = z;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user