Beispiel #1
0
            public override List <string> GetDifferences(Chunk xiChunk)
            {
                WeaponEntry lOther = xiChunk as WeaponEntry;

                if (!mPosition.Equals(lOther.mPosition) ||
                    WeaponType != lOther.WeaponType ||
                    ShortUnknown != lOther.ShortUnknown)
                {
                    List <string> lRet = base.GetDifferences(xiChunk);
                    lRet.Add(string.Format("Changed weapon of type {0}", WeaponType));
                    return(lRet);
                }

                return(base.GetDifferences(xiChunk));
            }
Beispiel #2
0
            public override List <string> GetDifferences(Chunk xiChunk)
            {
                ObjectEntry lOther = xiChunk as ObjectEntry;

                if (!mOriginPosition.Equals(lOther.mOriginPosition) ||
                    !mRotationVector.Equals(lOther.mRotationVector) ||
                    ObjtType != lOther.ObjtType ||
                    FlagUnknown != lOther.FlagUnknown ||
                    IsSolid != lOther.IsSolid ||
                    ShortUnknown != lOther.ShortUnknown)
                {
                    List <string> lRet = base.GetDifferences(xiChunk);
                    lRet.Add(string.Format("Changed object of type {0}", ObjtType));
                    return(lRet);
                }

                return(base.GetDifferences(xiChunk));
            }