Skeleton.generated.cs 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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. public uint NumBones
  18. {
  19. get { return Internal_getNumBones(mCachedPtr); }
  20. }
  21. /// <summary>Returns information about a bone at the provided index.</summary>
  22. /// <param name="boneIdx">Index of the bone to retrieve information for.</param>
  23. /// <returns>Information about the bone at the specified index.</returns>
  24. public BoneInfo GetBoneInfo(int boneIdx)
  25. {
  26. BoneInfo temp;
  27. Internal_getBoneInfo(mCachedPtr, boneIdx, out temp);
  28. return temp;
  29. }
  30. [MethodImpl(MethodImplOptions.InternalCall)]
  31. private static extern uint Internal_getNumBones(IntPtr thisPtr);
  32. [MethodImpl(MethodImplOptions.InternalCall)]
  33. private static extern void Internal_getBoneInfo(IntPtr thisPtr, int boneIdx, out BoneInfo __output);
  34. }
  35. /** @} */
  36. }