Example #1
0
        public bool Equals(AnimDataBase other)
        {
            if (other == null)
            {
                return(false);
            }

            if (AnimIndex != other.AnimIndex)
            {
                return(false);
            }
            if (FrameTime == other.FrameTime)
            {
                return(false);
            }
            if (Alpha == other.Alpha)
            {
                return(false);
            }
            if (StartFrame == other.StartFrame)
            {
                return(false);
            }
            if (EndFrame == other.EndFrame)
            {
                return(false);
            }
            if (AnimDir == other.AnimDir)
            {
                return(false);
            }

            return(true);
        }
Example #2
0
 public AnimDataBase(AnimDataBase other)
 {
     AnimIndex  = other.AnimIndex;
     FrameTime  = other.FrameTime;
     Alpha      = other.Alpha;
     StartFrame = other.StartFrame;
     EndFrame   = other.EndFrame;
     AnimDir    = other.AnimDir;
 }