public void MapValues() { if (Children != null) { foreach (var collectible in Children.Collectibles) { collectible.Collectible.TryMapValue(); } foreach (var metric in Children.Metrics) { metric.Metric.TryMapValue(); } foreach (var node in Children.PresentationNodes) { node.PresentationNode.TryMapValue(); } foreach (var record in Children.Records) { record.Record.TryMapValue(); } } Objective.TryMapValue(); foreach (var node in ParentNodes) { node.TryMapValue(); } foreach (var trait in Traits) { trait.TryMapValue(); } CompletionRecord.TryMapValue(); }
public bool DeepEquals(DestinyPresentationNodeDefinition other) { return(other != null && DisplayProperties.DeepEquals(other.DisplayProperties) && (Children != null ? Children.DeepEquals(other.Children) : other.Children == null) && DisableChildSubscreenNavigation == other.DisableChildSubscreenNavigation && DisplayStyle == other.DisplayStyle && MaxCategoryRecordScore == other.MaxCategoryRecordScore && NodeType == other.NodeType && Objective.DeepEquals(other.Objective) && ParentNodes.DeepEqualsReadOnlyCollections(other.ParentNodes) && PresentationNodeType == other.PresentationNodeType && (Requirements != null ? Requirements.DeepEquals(other.Requirements) : other.Requirements == null) && Scope == other.Scope && ScreenStyle == other.ScreenStyle && Traits.DeepEqualsReadOnlyCollections(other.Traits) && TraitIds.DeepEqualsReadOnlySimpleCollection(other.TraitIds) && OriginalIcon == other.OriginalIcon && RootViewIcon == other.RootViewIcon && CompletionRecord.DeepEquals(other.CompletionRecord) && Blacklisted == other.Blacklisted && Hash == other.Hash && Index == other.Index && Redacted == other.Redacted); }