Added C# Point entities + automatic export of FGD entities

This commit is contained in:
Antoine Pilote
2024-09-01 19:37:05 -04:00
parent f59a7e931f
commit 63712edc6d
21 changed files with 534 additions and 479 deletions

View File

@@ -157,13 +157,25 @@ namespace Nuake.Net
public class CameraComponent : IComponent
{
internal static unsafe delegate*<int, NativeArray<float>> GetDirectionIcall;
internal static unsafe delegate*<int, float, void> SetCameraFOVIcall;
internal static unsafe delegate*<int, float> GetCameraFOVIcall;
public CameraComponent(int entityId)
{
EntityID = entityId;
}
public float FOV { get; set; }
public float FOV
{
get
{
unsafe { return GetCameraFOVIcall(EntityID); }
}
set
{
unsafe { SetCameraFOVIcall(EntityID, value); }
}
}
public Vector3 Direction
{
@@ -181,6 +193,9 @@ namespace Nuake.Net
public class AudioEmitterComponent : IComponent
{
internal static unsafe delegate*<int, bool> GetIsPlayingIcall;
internal static unsafe delegate*<int, bool, void> SetIsPlayingIcall;
public AudioEmitterComponent(int entityId)
{
EntityID = entityId;
@@ -190,7 +205,11 @@ namespace Nuake.Net
public bool Loop { get; set; }
public bool Spatialized { get; set; }
public bool Playing { get; set; }
public bool Playing
{
get { unsafe { return GetIsPlayingIcall(EntityID); } }
set { unsafe { SetIsPlayingIcall(EntityID, value); } }
}
}
public class ModelComponent : IComponent