Skeleton.generated.cs 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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. [ShowInInspector]
  11. public partial class Skeleton : ScriptObject
  12. {
  13. private Skeleton(bool __dummy0) { }
  14. protected Skeleton() { }
  15. /// <summary>Returns the total number of bones in the skeleton.</summary>
  16. [ShowInInspector]
  17. [NativeWrapper]
  18. public uint NumBones
  19. {
  20. get { return Internal_getNumBones(mCachedPtr); }
  21. }
  22. /// <summary>Returns information about a bone at the provided index.</summary>
  23. /// <param name="boneIdx">Index of the bone to retrieve information for.</param>
  24. /// <returns>Information about the bone at the specified index.</returns>
  25. public BoneInfo GetBoneInfo(int boneIdx)
  26. {
  27. BoneInfo temp;
  28. Internal_getBoneInfo(mCachedPtr, boneIdx, out temp);
  29. return temp;
  30. }
  31. [MethodImpl(MethodImplOptions.InternalCall)]
  32. private static extern uint Internal_getNumBones(IntPtr thisPtr);
  33. [MethodImpl(MethodImplOptions.InternalCall)]
  34. private static extern void Internal_getBoneInfo(IntPtr thisPtr, int boneIdx, out BoneInfo __output);
  35. }
  36. /** @} */
  37. }