Added ability to play an animation from C#

This commit is contained in:
Antoine Pilote
2024-03-16 12:15:52 -04:00
parent ea1339a8e8
commit a80fb5241e
2 changed files with 40 additions and 1 deletions

View File

@@ -152,10 +152,20 @@ namespace Nuake.Net
public class SkinnedModelComponent : IComponent
{
public SkinnedModelComponent(int entityId) { }
internal static unsafe delegate*<int, NativeString, void> PlayIcall;
public SkinnedModelComponent(int entityId)
{
EntityID = entityId;
}
public bool Playing { get; set; }
public int CurrentAnimation { get; set; }
public void Play(String name)
{
unsafe { PlayIcall(EntityID, name); }
}
}
public class BoneComponent : IComponent