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,70 @@
namespace XCEngine
{
public sealed class Camera : Component
{
internal Camera(ulong gameObjectUUID)
: base(gameObjectUUID)
{
}
public float FieldOfView
{
get => InternalCalls.Camera_GetFieldOfView(GameObjectUUID);
set => InternalCalls.Camera_SetFieldOfView(GameObjectUUID, value);
}
public float fieldOfView
{
get => FieldOfView;
set => FieldOfView = value;
}
public float NearClipPlane
{
get => InternalCalls.Camera_GetNearClipPlane(GameObjectUUID);
set => InternalCalls.Camera_SetNearClipPlane(GameObjectUUID, value);
}
public float nearClipPlane
{
get => NearClipPlane;
set => NearClipPlane = value;
}
public float FarClipPlane
{
get => InternalCalls.Camera_GetFarClipPlane(GameObjectUUID);
set => InternalCalls.Camera_SetFarClipPlane(GameObjectUUID, value);
}
public float farClipPlane
{
get => FarClipPlane;
set => FarClipPlane = value;
}
public float Depth
{
get => InternalCalls.Camera_GetDepth(GameObjectUUID);
set => InternalCalls.Camera_SetDepth(GameObjectUUID, value);
}
public float depth
{
get => Depth;
set => Depth = value;
}
public bool Primary
{
get => InternalCalls.Camera_GetPrimary(GameObjectUUID);
set => InternalCalls.Camera_SetPrimary(GameObjectUUID, value);
}
public bool primary
{
get => Primary;
set => Primary = value;
}
}
}