AnimationYOffset.cs 907 B

12345678910111213141516171819202122232425262728293031323334
  1. using Microsoft.Xna.Framework;
  2. namespace OpenVIII.Battle.Dat
  3. {
  4. /// <summary>
  5. /// this is a workaround because the animations have characters and monsters floating in air.
  6. /// </summary>
  7. public struct AnimationYOffset
  8. {
  9. #region Constructors
  10. public AnimationYOffset(int iD, int frame, Vector4 lowHigh)
  11. => (ID, Frame, LowY, HighY, MidX, MidZ) = (iD, frame, lowHigh.X, lowHigh.Y, lowHigh.Z, lowHigh.W);
  12. #endregion Constructors
  13. #region Properties
  14. public int Frame { get; }
  15. public float HighY { get; }
  16. public int ID { get; }
  17. public float LowY { get; }
  18. public float MidX { get; }
  19. public float MidZ { get; }
  20. #endregion Properties
  21. #region Methods
  22. public override string ToString() => $"[{ID}, {Frame}, {LowY}, {HighY}, {MidX}, {MidZ}]";
  23. #endregion Methods
  24. }
  25. }