Exemplo n.º 1
0
        public bool Equals(ScriptData other)
        {
            if (other == null)
            {
                return(false);
            }

            return(Globals.SequenceEqual(other.Globals) &&
                   OnAMissionFlag.Equals(other.OnAMissionFlag) &&
                   LastMissionPassedTime.Equals(other.LastMissionPassedTime) &&
                   BuildingSwaps.SequenceEqual(other.BuildingSwaps) &&
                   InvisibilitySettings.SequenceEqual(other.InvisibilitySettings) &&
                   UsingAMultiScriptFile.Equals(other.UsingAMultiScriptFile) &&
                   PlayerHasMetDebbieHarry.Equals(other.PlayerHasMetDebbieHarry) &&
                   MainScriptSize.Equals(other.MainScriptSize) &&
                   LargestMissionScriptSize.Equals(other.LargestMissionScriptSize) &&
                   NumberOfMissionScripts.Equals(other.NumberOfMissionScripts) &&
                   Threads.SequenceEqual(other.Threads));
        }
Exemplo n.º 2
0
        public bool Equals(ScriptData other)
        {
            if (other == null)
            {
                return(false);
            }

            return(ScriptSpace.SequenceEqual(other.ScriptSpace) &&
                   OnAMissionFlag.Equals(other.OnAMissionFlag) &&
                   Contacts.SequenceEqual(other.Contacts) &&
                   Collectives.SequenceEqual(other.Collectives) &&
                   NextFreeCollectiveIndex.Equals(other.NextFreeCollectiveIndex) &&
                   BuildingSwaps.SequenceEqual(other.BuildingSwaps) &&
                   InvisibilitySettings.SequenceEqual(other.InvisibilitySettings) &&
                   UsingAMultiScriptFile.Equals(other.UsingAMultiScriptFile) &&
                   MainScriptSize.Equals(other.MainScriptSize) &&
                   LargestMissionScriptSize.Equals(other.LargestMissionScriptSize) &&
                   NumberOfMissionScripts.Equals(other.NumberOfMissionScripts) &&
                   Threads.SequenceEqual(other.Threads));
        }