| 12345678910111213141516171819202122232425262728293031323334 |
- using Microsoft.Xna.Framework;
- namespace OpenVIII.Battle.Dat
- {
- /// <summary>
- /// this is a workaround because the animations have characters and monsters floating in air.
- /// </summary>
- public struct AnimationYOffset
- {
- #region Constructors
- public AnimationYOffset(int iD, int frame, Vector4 lowHigh)
- => (ID, Frame, LowY, HighY, MidX, MidZ) = (iD, frame, lowHigh.X, lowHigh.Y, lowHigh.Z, lowHigh.W);
- #endregion Constructors
- #region Properties
- public int Frame { get; }
- public float HighY { get; }
- public int ID { get; }
- public float LowY { get; }
- public float MidX { get; }
- public float MidZ { get; }
- #endregion Properties
- #region Methods
- public override string ToString() => $"[{ID}, {Frame}, {LowY}, {HighY}, {MidX}, {MidZ}]";
- #endregion Methods
- }
- }
|