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

            return(Name.Equals(other.Name) &&
                   TimeStamp.Equals(other.TimeStamp) &&
                   SaveVersion.Equals(other.SaveVersion) &&
                   SaveSizeInBytes.Equals(other.SaveSizeInBytes) &&
                   ScriptSpaceSize.Equals(other.ScriptSpaceSize) &&
                   SimpleVars.Equals(other.SimpleVars) &&
                   PlayerInfo.Equals(other.PlayerInfo) &&
                   ExtraContent.Equals(other.ExtraContent) &&
                   Scripts.Equals(other.Scripts) &&
                   Garages.Equals(other.Garages) &&
                   GameLogic.Equals(other.GameLogic) &&
                   Paths.Equals(other.Paths) &&
                   Pickups.Equals(other.Pickups) &&
                   RestartPoints.Equals(other.RestartPoints) &&
                   RadarBlips.Equals(other.RadarBlips) &&
                   Zones.Equals(other.Zones) &&
                   GangData.Equals(other.GangData) &&
                   CarGenerators.Equals(other.CarGenerators) &&
                   Stats.Equals(other.Stats) &&
                   IplStore.Equals(other.IplStore) &&
                   StuntJumps.Equals(other.StuntJumps) &&
                   Radio.Equals(other.Radio) &&
                   Objects.Equals(other.Objects) &&
                   Relationships.Equals(other.Relationships) &&
                   Inventory.Equals(other.Inventory) &&
                   UnusedPools.Equals(other.UnusedPools) &&
                   UnusedPhoneInfo.Equals(other.UnusedPhoneInfo) &&
                   UnusedAudioScript.Equals(other.UnusedAudioScript) &&
                   UnusedSetPieces.Equals(other.UnusedSetPieces) &&
                   UnusedStreaming.Equals(other.UnusedStreaming) &&
                   UnusedPedTypeInfo.Equals(other.UnusedPedTypeInfo) &&
                   UnusedTags.Equals(other.UnusedTags) &&
                   UnusedShopping.Equals(other.UnusedShopping) &&
                   UnusedGangWars.Equals(other.UnusedGangWars) &&
                   UnusedEntryExits.Equals(other.UnusedEntryExits) &&
                   Unused3dMarkers.Equals(other.Unused3dMarkers) &&
                   UnusedVehicles.Equals(other.UnusedVehicles) &&
                   UnusedExtraBlock.Equals(other.UnusedExtraBlock) &&
                   GfwlData.Equals(other.GfwlData));
        }
Beispiel #2
0
        public bool[] BuildUsedRequestArray()
        {
            // Set anything false that is not used. This will be used when guilding the query string.
            bool[] used = new bool[18] {
                true, true, true, true, true,
                true, true, true, true, true, true, true, true, true,
                true, true, true, true
            };

            if (Basic is null || Basic.Equals(""))
            {
                used[0] = false;
            }
            if (Title is null || Title.Equals(""))
            {
                used[1] = false;
            }
            if (Authors is null || Authors.Equals(""))
            {
                used[2] = false;
            }
            if (Characters is null || Characters.Equals(""))
            {
                used[3] = false;
            }
            if (Relationships is null || Relationships.Equals(""))
            {
                used[4] = false;
            }
            if (Fandoms is null || Fandoms.Equals(""))
            {
                used[5] = false;
            }
            if (OtherTags is null || OtherTags.Equals(""))
            {
                used[6] = false;
            }

            if (Likes.Item1 == 0 && Likes.Item2 == 0)
            {
                used[7] = false;
            }
            if (Views.Item1 == 0 && Views.Item2 == 0)
            {
                used[8] = false;
            }
            if (Comments.Item1 == 0 && Comments.Item2 == 0)
            {
                used[9] = false;
            }
            if (WordCount.Item1 == 0 && WordCount.Item2 == 0)
            {
                used[10] = false;
            }

            if (UpdateBefore.Item1 == default || UpdateBefore.Item2 == default)
            {
                used[11] = false;
            }
            if (PublishBefore.Item1 == default || PublishBefore.Item2 == default)
            {
                used[12] = false;
            }

            if (Direction == 0)
            {
                used[13] = false;
            }
            if (SearchFicsBy == 0)
            {
                used[14] = false;
            }
            if (FicRaiting == 0)
            {
                used[15] = false;
            }
            if (Status == 0)
            {
                used[16] = false;
            }
            if (Crossover == 0)
            {
                used[17] = false;
            }

            return(used);
        }