ICubismFadeState.cs 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /**
  2. * Copyright(c) Live2D Inc. All rights reserved.
  3. *
  4. * Use of this source code is governed by the Live2D Open Software license
  5. * that can be found at https://www.live2d.com/eula/live2d-open-software-license-agreement_en.html.
  6. */
  7. using System.Collections.Generic;
  8. namespace Live2D.Cubism.Framework.MotionFade
  9. {
  10. /// <summary>
  11. /// Cubism fade state interface.
  12. /// </summary>
  13. public interface ICubismFadeState
  14. {
  15. /// <summary>
  16. /// Get cubism playing motion list.
  17. /// </summary>
  18. /// <returns>Cubism playing motion list.</returns>
  19. List<CubismFadePlayingMotion> GetPlayingMotions();
  20. /// <summary>
  21. /// Is default state.
  22. /// </summary>
  23. /// <returns><see langword="true"/> State is default; <see langword="false"/> otherwise.</returns>
  24. bool IsDefaultState();
  25. /// <summary>
  26. /// Get layer weight.
  27. /// </summary>
  28. /// <returns>Layer weight.</returns>
  29. float GetLayerWeight();
  30. /// <summary>
  31. /// Get state transition finished.
  32. /// </summary>
  33. /// <returns><see langword="true"/> State transition is finished; <see langword="false"/> otherwise.</returns>
  34. bool GetStateTransitionFinished();
  35. /// <summary>
  36. /// Set state transition finished.
  37. /// </summary>
  38. /// <param name="isFinished">State is finished.</param>
  39. void SetStateTransitionFinished(bool isFinished);
  40. /// <summary>
  41. /// Stop animation.
  42. /// </summary>
  43. /// <param name="index">Playing motion index.</param>
  44. void StopAnimation(int index);
  45. }
  46. }