Skeleton.generated.cs 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. using System;
  2. using System.Runtime.CompilerServices;
  3. using System.Runtime.InteropServices;
  4. namespace BansheeEngine
  5. {
  6. /** @addtogroup Animation
  7. * @{
  8. */
  9. /// <summary>Contains information about bones required for skeletal animation.</summary>
  10. public partial class Skeleton : ScriptObject
  11. {
  12. private Skeleton(bool __dummy0) { }
  13. protected Skeleton() { }
  14. /// <summary>Returns the total number of bones in the skeleton.</summary>
  15. public uint NumBones
  16. {
  17. get { return Internal_getNumBones(mCachedPtr); }
  18. }
  19. /// <summary>Returns information about a bone at the provided index.</summary>
  20. /// <param name="boneIdx">Index of the bone to retrieve information for.</param>
  21. /// <returns>Information about the bone at the specified index.</returns>
  22. public BoneInfo GetBoneInfo(int boneIdx)
  23. {
  24. BoneInfo temp;
  25. Internal_getBoneInfo(mCachedPtr, boneIdx, out temp);
  26. return temp;
  27. }
  28. [MethodImpl(MethodImplOptions.InternalCall)]
  29. private static extern uint Internal_getNumBones(IntPtr thisPtr);
  30. [MethodImpl(MethodImplOptions.InternalCall)]
  31. private static extern void Internal_getBoneInfo(IntPtr thisPtr, int boneIdx, out BoneInfo __output);
  32. }
  33. /** @} */
  34. }