Started Transform .Net API

- Euler Rotate
- Set local translation
- Separated C# modules
- Bumped Coral 🪸
This commit is contained in:
Antoine Pilote
2023-10-23 23:35:32 -04:00
parent 978b0a2f84
commit b87336a693
10 changed files with 608 additions and 530 deletions

27
NuakeNet/src/Scene.cs Normal file
View File

@@ -0,0 +1,27 @@
using Coral.Managed.Interop;
using System;
namespace Nuake.Net
{
public class Scene
{
internal static unsafe delegate*<NativeString, int> GetEntityIcall;
public static Entity GetEntity(string entityName)
{
int handle;
unsafe { handle = GetEntityIcall(entityName); }
if (handle == -1)
{
throw new Exception("Entity not found");
}
Entity entity = new Entity
{
ECSHandle = handle
};
return entity;
}
}
}