SkinnedModelInfo.cs 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. #region File Description
  2. //-----------------------------------------------------------------------------
  3. // SkinnedModelInfo.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 information of a skin model.
  17. /// This class is used in SkinnedModelAnimationInfo.
  18. /// ContentTypeReader and ContentTypeWriter are also provided in this class
  19. /// so that SkinnedModelAnimationInfo can be simply written in ContentPipeline.
  20. ///
  21. /// スキンモデルの情報を持ちます。
  22. /// このクラスは、SkinnedModelAnimationInfoで使用されています。
  23. /// SkinnedModelAnimationInfoをContentPipelineでシンプルに記述するため、
  24. /// このクラスにもContentTypeReaderとContentTypeWriterを用意しています。
  25. /// </summary>
  26. public class SkinnedModelInfo
  27. {
  28. #region Fields
  29. private string modelAsset;
  30. private string animationClip;
  31. private Vector3 position;
  32. #endregion
  33. #region Property
  34. /// <summary>
  35. /// Obtains or sets the asset name of the model.
  36. ///
  37. /// モデルのアセット名を取得または設定します。
  38. /// </summary>
  39. public string ModelAsset
  40. {
  41. get { return modelAsset; }
  42. set { modelAsset = value; }
  43. }
  44. /// <summary>
  45. /// Obtains or sets the clip name of the animation.
  46. ///
  47. /// アニメーションのクリップ名を取得または設定します。
  48. /// </summary>
  49. public string AnimationClip
  50. {
  51. get { return animationClip; }
  52. set { animationClip = value; }
  53. }
  54. /// <summary>
  55. /// Obtains or sets the model position.
  56. ///
  57. /// モデルの位置を取得または設定します。
  58. /// </summary>
  59. public Vector3 Position
  60. {
  61. get { return position; }
  62. set { position = value; }
  63. }
  64. #endregion
  65. }
  66. }