Beispiel #1
0
 public bool DeepEquals(ActivityPlaylistItemEntry other)
 {
     return(other != null &&
            Activity.DeepEquals(other.Activity) &&
            ActivityModes.DeepEqualsReadOnlyCollections(other.ActivityModes) &&
            ActivityModeTypes.DeepEqualsReadOnlySimpleCollection(other.ActivityModeTypes) &&
            DirectActivityMode.DeepEquals(other.DirectActivityMode) &&
            DirectActivityModeType == other.DirectActivityModeType &&
            Weight == other.Weight);
 }
Beispiel #2
0
 public bool DeepEquals(DestinyActivityDefinition other)
 {
     return(other != null &&
            ActivityGraphList.DeepEqualsReadOnlyCollections(other.ActivityGraphList) &&
            ActivityLevel == other.ActivityLevel &&
            ActivityLightLevel == other.ActivityLightLevel &&
            ActivityLocationMappings.DeepEqualsReadOnlyCollections(other.ActivityLocationMappings) &&
            ActivityModes.DeepEqualsReadOnlyCollections(other.ActivityModes) &&
            ActivityModeTypes.DeepEqualsReadOnlySimpleCollection(other.ActivityModeTypes) &&
            ActivityType.DeepEquals(other.ActivityType) &&
            Challenges.DeepEqualsReadOnlyCollections(other.Challenges) &&
            CompletionUnlockHash == other.CompletionUnlockHash &&
            Destination.DeepEquals(other.Destination) &&
            DirectActivityMode.DeepEquals(other.DirectActivityMode) &&
            DirectActivityModeType == other.DirectActivityModeType &&
            DisplayProperties.DeepEquals(other.DisplayProperties) &&
            (GuidedGame != null ? GuidedGame.DeepEquals(other.GuidedGame) : other.GuidedGame == null) &&
            InheritFromFreeRoam == other.InheritFromFreeRoam &&
            InsertionPoints.DeepEqualsReadOnlyCollections(other.InsertionPoints) &&
            IsPlaylist == other.IsPlaylist &&
            IsPvP == other.IsPvP &&
            (Matchmaking != null ? Matchmaking.DeepEquals(other.Matchmaking) : other.Matchmaking == null) &&
            Modifiers.DeepEqualsReadOnlyCollections(other.Modifiers) &&
            OptionalUnlockStrings.DeepEqualsReadOnlyCollections(other.OptionalUnlockStrings) &&
            OriginalDisplayProperties.DeepEquals(other.OriginalDisplayProperties) &&
            PgcrImage == other.PgcrImage &&
            Place.DeepEquals(other.Place) &&
            PlaylistItems.DeepEqualsReadOnlyCollections(other.PlaylistItems) &&
            ReleaseIcon == other.ReleaseIcon &&
            ReleaseTime == other.ReleaseTime &&
            Rewards.DeepEqualsReadOnlyCollections(other.Rewards) &&
            (SelectionScreenDisplayProperties != null ? SelectionScreenDisplayProperties.DeepEquals(other.SelectionScreenDisplayProperties) : other.SelectionScreenDisplayProperties == null) &&
            SuppressOtherRewards == other.SuppressOtherRewards &&
            Tier == other.Tier &&
            Loadouts.DeepEqualsReadOnlyCollections(other.Loadouts) &&
            Blacklisted == other.Blacklisted &&
            Hash == other.Hash &&
            Index == other.Index &&
            Redacted == other.Redacted);
 }
Beispiel #3
0
 public void MapValues()
 {
     foreach (var activityGraph in ActivityGraphList)
     {
         activityGraph.ActivityGraph.TryMapValue();
     }
     foreach (var activityLocationMapping in ActivityLocationMappings)
     {
         activityLocationMapping.Activity.TryMapValue();
         activityLocationMapping.Item.TryMapValue();
         activityLocationMapping.Location.TryMapValue();
         activityLocationMapping.Objective.TryMapValue();
     }
     foreach (var activityMode in ActivityModes)
     {
         activityMode.TryMapValue();
     }
     ActivityType.TryMapValue();
     foreach (var challenge in Challenges)
     {
         challenge.Objective.TryMapValue();
         foreach (var dummyReward in challenge.DummyRewards)
         {
             dummyReward.Item.TryMapValue();
         }
     }
     Destination.TryMapValue();
     DirectActivityMode.TryMapValue();
     foreach (var modifier in Modifiers)
     {
         modifier.ActivityModifier.TryMapValue();
     }
     Place.TryMapValue();
     foreach (var playlistItem in PlaylistItems)
     {
         playlistItem.Activity.TryMapValue();
         playlistItem.DirectActivityMode.TryMapValue();
         foreach (var playlistItemActivityMode in playlistItem.ActivityModes)
         {
             playlistItemActivityMode.TryMapValue();
         }
     }
     foreach (var reward in Rewards)
     {
         foreach (var rewardItem in reward.RewardItems)
         {
             rewardItem.Item.TryMapValue();
         }
     }
     foreach (var loadout in Loadouts)
     {
         foreach (var requirement in loadout.Requirements)
         {
             requirement.EquipmentSlot.TryMapValue();
             foreach (var item in requirement.AllowedEquippedItems)
             {
                 item.TryMapValue();
             }
         }
     }
 }