KeyframeContent.cs 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #region License
  2. // Copyright 2011-2016 Kastellanos Nikolaos
  3. //
  4. // Licensed under the Apache License, Version 2.0 (the "License");
  5. // you may not use this file except in compliance with the License.
  6. // You may obtain a copy of the License at
  7. //
  8. // http://www.apache.org/licenses/LICENSE-2.0
  9. //
  10. // Unless required by applicable law or agreed to in writing, software
  11. // distributed under the License is distributed on an "AS IS" BASIS,
  12. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. // See the License for the specific language governing permissions and
  14. // limitations under the License.
  15. #endregion
  16. using System;
  17. using Microsoft.Xna.Framework;
  18. namespace nkast.Aether.Content.Pipeline.Animation
  19. {
  20. public struct KeyframeContent
  21. {
  22. public int Bone;
  23. public TimeSpan Time;
  24. public Matrix Transform;
  25. public KeyframeContent(int bone, TimeSpan time, Matrix transform)
  26. {
  27. this.Bone = bone;
  28. this.Time = time;
  29. this.Transform = transform;
  30. }
  31. public override string ToString()
  32. {
  33. return string.Format("{{Time:{0} Bone:{1}}}",
  34. new object[] { Time, Bone });
  35. }
  36. }
  37. }