示例#1
0
        public bool Equals(ParticleObject other)
        {
            if (other == null)
            {
                return(false);
            }

            return(Position.Equals(other.Position) &&
                   NextParticleObjectPointer.Equals(other.NextParticleObjectPointer) &&
                   PrevParticleObjectPointer.Equals(other.PrevParticleObjectPointer) &&
                   ParticlePointer.Equals(other.ParticlePointer) &&
                   Timer.Equals(other.Timer) &&
                   Type.Equals(other.Type) &&
                   ParticleType.Equals(other.ParticleType) &&
                   NumEffectCycles.Equals(other.NumEffectCycles) &&
                   SkipFrames.Equals(other.SkipFrames) &&
                   FrameCounter.Equals(other.FrameCounter) &&
                   State.Equals(other.State) &&
                   Target.Equals(other.Target) &&
                   Spread.Equals(other.Spread) &&
                   Size.Equals(other.Size) &&
                   Color.Equals(other.Color) &&
                   DestroyWhenFar.Equals(other.DestroyWhenFar) &&
                   CreationChance.Equals(other.CreationChance) &&
                   Unknown.Equals(other.Unknown));
        }