Script glue works!

This commit is contained in:
Simon Lübeß
2025-07-17 15:07:06 +02:00
parent 0a53ff48f9
commit f7bcff5337
12 changed files with 433 additions and 327 deletions
+1
View File
@@ -5,6 +5,7 @@ namespace GlitchyEngine.Core;
/// <summary>
/// The type of projection used by a camera.
/// </summary>
[EngineClass("GlitchyEngine.World.SceneCamera.ProjectionType")]
public enum ProjectionType : byte
{
/// <summary>
+1 -1
View File
@@ -99,6 +99,6 @@ public class Transform : Component
ScriptGlue.Transform_GetScale(Entity.UUID, out float3 scale);
return scale;
}
set => ScriptGlue.Transform_SetScale(Entity.UUID, in value);
set => ScriptGlue.Transform_SetScale(Entity.UUID, value);
}
}
+2 -2
View File
@@ -7,7 +7,7 @@ namespace GlitchyEngine.Core;
/// </summary>
[DebuggerDisplay("{ToString()}")]
[EngineClass("GlitchyEngine.Core.UUID")]
[EngineClass("GlitchyEngine.Core.AssetHandle")]
[EngineClass("GlitchyEngine.Content.AssetHandle")]
public struct UUID
{
private ulong _uuid;
@@ -32,7 +32,7 @@ public struct UUID
/// <returns>The newly created <see cref="UUID"/></returns>
public static UUID CreateNew()
{
ScriptGlue.UUID_CreateNew(out UUID id);
ScriptGlue.UUID_Create(out UUID id);
return id;
}