AnimationInfo.cs 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. #region File Description
  2. //-----------------------------------------------------------------------------
  3. // AnimationInfo.cs
  4. //
  5. // Microsoft XNA Community Game Platform
  6. // Copyright (C) Microsoft Corporation. All rights reserved.
  7. //-----------------------------------------------------------------------------
  8. #endregion
  9. #region Using Statements
  10. using System;
  11. using Microsoft.Xna.Framework;
  12. #endregion
  13. namespace MovipaLibrary
  14. {
  15. /// <summary>
  16. /// This class manages animation information.
  17. /// If there is information used in a movie, inherit this class.
  18. /// Type, name, and size of an animation are managed in this class.
  19. ///
  20. /// アニメーション情報を持つクラスです。
  21. /// ムービーで使用する情報を持つ場合はこのクラスを継承します。
  22. /// アニメーションのタイプ、名前、そしてサイズの情報があります。
  23. /// </summary>
  24. public class AnimationInfo
  25. {
  26. #region Public Types
  27. // Animation type
  28. //
  29. // アニメーションの種類
  30. public enum AnimationInfoCategory
  31. {
  32. Layout,
  33. Rendering,
  34. SkinnedModelAnimation,
  35. Particle,
  36. }
  37. #endregion
  38. #region Fields
  39. private AnimationInfoCategory category;
  40. private string name;
  41. private Point size;
  42. #endregion
  43. #region Properties
  44. /// <summary>
  45. /// Obtains or sets the type.
  46. ///
  47. /// タイプを取得または設定します。
  48. /// </summary>
  49. public AnimationInfoCategory Category
  50. {
  51. get { return category; }
  52. set { category = value; }
  53. }
  54. /// <summary>
  55. /// Obtains or sets the name.
  56. ///
  57. /// 名前を取得または設定します。
  58. /// </summary>
  59. public string Name
  60. {
  61. get { return name; }
  62. set { name = value; }
  63. }
  64. /// <summary>
  65. /// Obtains or sets the size.
  66. ///
  67. /// サイズを取得または設定します。
  68. /// </summary>
  69. public Point Size
  70. {
  71. get { return size; }
  72. set { size = value; }
  73. }
  74. #endregion
  75. }
  76. }