Example #1
0
 internal DestinyPresentationNodeDefinition(DestinyDefinitionDisplayProperties displayProperties, PresentationChildNode children, bool disableChildSubscreenNavigation,
                                            PresentationDisplayStyle displayStyle, int maxCategoryRecordScore, int nodeType, uint?objectiveHash, uint[] parentNodeHashes, PresentationNodeType presentationNodeType,
                                            PresentationNodeRequirement requirements, Scope scope, int screenStyle, uint[] traitHashes, string[] traitIds, string originalIcon, string rootViewIcon,
                                            uint?completionRecordHash, bool blacklisted, uint hash, int index, bool redacted)
 {
     DisplayProperties = displayProperties;
     Children          = children;
     DisableChildSubscreenNavigation = disableChildSubscreenNavigation;
     DisplayStyle           = displayStyle;
     MaxCategoryRecordScore = maxCategoryRecordScore;
     NodeType             = nodeType;
     Objective            = new DefinitionHashPointer <DestinyObjectiveDefinition>(objectiveHash, DefinitionsEnum.DestinyObjectiveDefinition);
     ParentNodes          = parentNodeHashes.DefinitionsAsReadOnlyOrEmpty <DestinyPresentationNodeDefinition>(DefinitionsEnum.DestinyPresentationNodeDefinition);
     PresentationNodeType = presentationNodeType;
     Requirements         = requirements;
     Scope            = scope;
     ScreenStyle      = screenStyle;
     Traits           = traitHashes.DefinitionsAsReadOnlyOrEmpty <DestinyTraitDefinition>(DefinitionsEnum.DestinyTraitDefinition);
     TraitIds         = traitIds.AsReadOnlyOrEmpty();
     Blacklisted      = blacklisted;
     Hash             = hash;
     Index            = index;
     Redacted         = redacted;
     OriginalIcon     = originalIcon;
     RootViewIcon     = rootViewIcon;
     CompletionRecord = new DefinitionHashPointer <DestinyRecordDefinition>(completionRecordHash, DefinitionsEnum.DestinyRecordDefinition);
 }
Example #2
0
 internal DestinyRecordDefinition(DestinyDefinitionDisplayProperties displayProperties, RecordCompletionInfo completionInfo, RecordExpirationInfo expirationInfo,
                                  RecordIntervalInfo intervalInfo, uint[] objectiveHashes, uint[] parentNodeHashes, PresentationNodeType presentationNodeType,
                                  RecordValueStyle recordValueStyle, RecordRequirements requirements, Scope scope, RecordStateInfo stateInfo, RecordTitleInfo titleInfo,
                                  uint[] traitHashes, string[] traitIds, DestinyItemQuantity[] rewardItems, uint loreHash, RecordPresentationInfo presentationInfo, bool forTitleGilding,
                                  bool blacklisted, uint hash, int index, bool redacted)
 {
     DisplayProperties    = displayProperties;
     CompletionInfo       = completionInfo;
     ExpirationInfo       = expirationInfo;
     IntervalInfo         = intervalInfo;
     PresentationNodeType = presentationNodeType;
     RecordValueStyle     = recordValueStyle;
     Requirements         = requirements;
     Scope            = scope;
     StateInfo        = stateInfo;
     TitleInfo        = titleInfo;
     TraitIds         = traitIds.AsReadOnlyOrEmpty();
     Objectives       = objectiveHashes.DefinitionsAsReadOnlyOrEmpty <DestinyObjectiveDefinition>(DefinitionsEnum.DestinyObjectiveDefinition);
     ParentNodes      = parentNodeHashes.DefinitionsAsReadOnlyOrEmpty <DestinyPresentationNodeDefinition>(DefinitionsEnum.DestinyPresentationNodeDefinition);
     Traits           = traitHashes.DefinitionsAsReadOnlyOrEmpty <DestinyTraitDefinition>(DefinitionsEnum.DestinyTraitDefinition);
     RewardItems      = rewardItems.AsReadOnlyOrEmpty();
     Lore             = new DefinitionHashPointer <DestinyLoreDefinition>(loreHash, DefinitionsEnum.DestinyLoreDefinition);
     Blacklisted      = blacklisted;
     Hash             = hash;
     Index            = index;
     Redacted         = redacted;
     PresentationInfo = presentationInfo;
     ForTitleGilding  = forTitleGilding;
 }
        public bool Equals(DestinyMetricDefinition input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     DisplayProperties == input.DisplayProperties ||
                     (DisplayProperties != null && DisplayProperties.Equals(input.DisplayProperties))
                     ) &&
                 (
                     TrackingObjectiveHash == input.TrackingObjectiveHash ||
                     (TrackingObjectiveHash.Equals(input.TrackingObjectiveHash))
                 ) &&
                 (
                     LowerValueIsBetter == input.LowerValueIsBetter ||
                     (LowerValueIsBetter != null && LowerValueIsBetter.Equals(input.LowerValueIsBetter))
                 ) &&
                 (
                     PresentationNodeType == input.PresentationNodeType ||
                     (PresentationNodeType != null && PresentationNodeType.Equals(input.PresentationNodeType))
                 ) &&
                 (
                     TraitIds == input.TraitIds ||
                     (TraitIds != null && TraitIds.SequenceEqual(input.TraitIds))
                 ) &&
                 (
                     TraitHashes == input.TraitHashes ||
                     (TraitHashes != null && TraitHashes.SequenceEqual(input.TraitHashes))
                 ) &&
                 (
                     ParentNodeHashes == input.ParentNodeHashes ||
                     (ParentNodeHashes != null && ParentNodeHashes.SequenceEqual(input.ParentNodeHashes))
                 ) &&
                 (
                     Hash == input.Hash ||
                     (Hash.Equals(input.Hash))
                 ) &&
                 (
                     Index == input.Index ||
                     (Index.Equals(input.Index))
                 ) &&
                 (
                     Redacted == input.Redacted ||
                     (Redacted != null && Redacted.Equals(input.Redacted))
                 ));
        }
Example #4
0
 internal DestinyMetricDefinition(DestinyDefinitionDisplayProperties displayProperties, bool lowerValueIsBetter, uint[] parentNodeHashes,
                                  PresentationNodeType presentationNodeType, uint trackingObjectiveHash, uint[] traitHashes, string[] traitIds,
                                  bool blacklisted, uint hash, int index, bool redacted)
 {
     DisplayProperties    = displayProperties;
     LowerValueIsBetter   = lowerValueIsBetter;
     ParentNodes          = parentNodeHashes.DefinitionsAsReadOnlyOrEmpty <DestinyPresentationNodeDefinition>(DefinitionsEnum.DestinyPresentationNodeDefinition);
     PresentationNodeType = presentationNodeType;
     TrackingObjective    = new DefinitionHashPointer <DestinyObjectiveDefinition>(trackingObjectiveHash, DefinitionsEnum.DestinyObjectiveDefinition);
     Traits      = traitHashes.DefinitionsAsReadOnlyOrEmpty <DestinyTraitDefinition>(DefinitionsEnum.DestinyTraitDefinition);
     TraitIds    = traitIds.AsReadOnlyOrEmpty();
     Blacklisted = blacklisted;
     Hash        = hash;
     Index       = index;
     Redacted    = redacted;
 }
Example #5
0
        public bool Equals(DestinyScoredPresentationNodeBaseDefinition input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     MaxCategoryRecordScore == input.MaxCategoryRecordScore ||
                     (MaxCategoryRecordScore.Equals(input.MaxCategoryRecordScore))
                     ) &&
                 (
                     PresentationNodeType == input.PresentationNodeType ||
                     (PresentationNodeType != null && PresentationNodeType.Equals(input.PresentationNodeType))
                 ) &&
                 (
                     TraitIds == input.TraitIds ||
                     (TraitIds != null && TraitIds.SequenceEqual(input.TraitIds))
                 ) &&
                 (
                     TraitHashes == input.TraitHashes ||
                     (TraitHashes != null && TraitHashes.SequenceEqual(input.TraitHashes))
                 ) &&
                 (
                     ParentNodeHashes == input.ParentNodeHashes ||
                     (ParentNodeHashes != null && ParentNodeHashes.SequenceEqual(input.ParentNodeHashes))
                 ) &&
                 (
                     Hash == input.Hash ||
                     (Hash.Equals(input.Hash))
                 ) &&
                 (
                     Index == input.Index ||
                     (Index.Equals(input.Index))
                 ) &&
                 (
                     Redacted == input.Redacted ||
                     (Redacted != null && Redacted.Equals(input.Redacted))
                 ));
        }
 internal DestinyCollectibleDefinition(CollectibleAcquisitionInfo acquisitionInfo, DestinyDefinitionDisplayProperties displayProperties, uint itemHash, uint[] parentNodeHashes,
                                       PresentationNodeType presentationNodeType, Scope scope, uint?sourceHash, string sourceString, CollectibleStateInfo stateInfo, uint[] traitHashes, string[] traitIds,
                                       CollectiblePresentationInfo presentationInfo, bool blacklisted, uint hash, int index, bool redacted)
 {
     AcquisitionInfo   = acquisitionInfo;
     DisplayProperties = displayProperties;
     Item                 = new DefinitionHashPointer <DestinyInventoryItemDefinition>(itemHash, DefinitionsEnum.DestinyInventoryItemDefinition);
     ParentNodes          = parentNodeHashes.DefinitionsAsReadOnlyOrEmpty <DestinyPresentationNodeDefinition>(DefinitionsEnum.DestinyPresentationNodeDefinition);
     PresentationNodeType = presentationNodeType;
     Scope                = scope;
     SourceHash           = sourceHash;
     SourceString         = sourceString;
     StateInfo            = stateInfo;
     Traits               = traitHashes.DefinitionsAsReadOnlyOrEmpty <DestinyTraitDefinition>(DefinitionsEnum.DestinyTraitDefinition);
     TraitIds             = traitIds.AsReadOnlyOrEmpty();
     Blacklisted          = blacklisted;
     Hash                 = hash;
     Index                = index;
     Redacted             = redacted;
     PresentationInfo     = presentationInfo;
 }
        public bool Equals(DestinyPresentationChildBlock input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     PresentationNodeType == input.PresentationNodeType ||
                     (PresentationNodeType != null && PresentationNodeType.Equals(input.PresentationNodeType))
                     ) &&
                 (
                     ParentPresentationNodeHashes == input.ParentPresentationNodeHashes ||
                     (ParentPresentationNodeHashes != null && ParentPresentationNodeHashes.SequenceEqual(input.ParentPresentationNodeHashes))
                 ) &&
                 (
                     DisplayStyle == input.DisplayStyle ||
                     (DisplayStyle != null && DisplayStyle.Equals(input.DisplayStyle))
                 ));
        }
 internal CollectiblePresentationInfo(PresentationNodeType presentationNodeType, uint[] parentPresentationNodeHashes, PresentationDisplayStyle displayStyle)
 {
     PresentationNodeType    = presentationNodeType;
     ParentPresentationNodes = parentPresentationNodeHashes.DefinitionsAsReadOnlyOrEmpty <DestinyPresentationNodeDefinition>(DefinitionsEnum.DestinyPresentationNodeDefinition);
     DisplayStyle            = displayStyle;
 }
Example #9
0
        public bool Equals(DestinyRecordDefinition input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     DisplayProperties == input.DisplayProperties ||
                     (DisplayProperties != null && DisplayProperties.Equals(input.DisplayProperties))
                     ) &&
                 (
                     Scope == input.Scope ||
                     (Scope != null && Scope.Equals(input.Scope))
                 ) &&
                 (
                     PresentationInfo == input.PresentationInfo ||
                     (PresentationInfo != null && PresentationInfo.Equals(input.PresentationInfo))
                 ) &&
                 (
                     LoreHash == input.LoreHash ||
                     (LoreHash.Equals(input.LoreHash))
                 ) &&
                 (
                     ObjectiveHashes == input.ObjectiveHashes ||
                     (ObjectiveHashes != null && ObjectiveHashes.SequenceEqual(input.ObjectiveHashes))
                 ) &&
                 (
                     RecordValueStyle == input.RecordValueStyle ||
                     (RecordValueStyle != null && RecordValueStyle.Equals(input.RecordValueStyle))
                 ) &&
                 (
                     ForTitleGilding == input.ForTitleGilding ||
                     (ForTitleGilding != null && ForTitleGilding.Equals(input.ForTitleGilding))
                 ) &&
                 (
                     TitleInfo == input.TitleInfo ||
                     (TitleInfo != null && TitleInfo.Equals(input.TitleInfo))
                 ) &&
                 (
                     CompletionInfo == input.CompletionInfo ||
                     (CompletionInfo != null && CompletionInfo.Equals(input.CompletionInfo))
                 ) &&
                 (
                     StateInfo == input.StateInfo ||
                     (StateInfo != null && StateInfo.Equals(input.StateInfo))
                 ) &&
                 (
                     Requirements == input.Requirements ||
                     (Requirements != null && Requirements.Equals(input.Requirements))
                 ) &&
                 (
                     ExpirationInfo == input.ExpirationInfo ||
                     (ExpirationInfo != null && ExpirationInfo.Equals(input.ExpirationInfo))
                 ) &&
                 (
                     IntervalInfo == input.IntervalInfo ||
                     (IntervalInfo != null && IntervalInfo.Equals(input.IntervalInfo))
                 ) &&
                 (
                     RewardItems == input.RewardItems ||
                     (RewardItems != null && RewardItems.SequenceEqual(input.RewardItems))
                 ) &&
                 (
                     PresentationNodeType == input.PresentationNodeType ||
                     (PresentationNodeType != null && PresentationNodeType.Equals(input.PresentationNodeType))
                 ) &&
                 (
                     TraitIds == input.TraitIds ||
                     (TraitIds != null && TraitIds.SequenceEqual(input.TraitIds))
                 ) &&
                 (
                     TraitHashes == input.TraitHashes ||
                     (TraitHashes != null && TraitHashes.SequenceEqual(input.TraitHashes))
                 ) &&
                 (
                     ParentNodeHashes == input.ParentNodeHashes ||
                     (ParentNodeHashes != null && ParentNodeHashes.SequenceEqual(input.ParentNodeHashes))
                 ) &&
                 (
                     Hash == input.Hash ||
                     (Hash.Equals(input.Hash))
                 ) &&
                 (
                     Index == input.Index ||
                     (Index.Equals(input.Index))
                 ) &&
                 (
                     Redacted == input.Redacted ||
                     (Redacted != null && Redacted.Equals(input.Redacted))
                 ));
        }
        public bool Equals(DestinyCollectibleDefinition input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     DisplayProperties == input.DisplayProperties ||
                     (DisplayProperties != null && DisplayProperties.Equals(input.DisplayProperties))
                     ) &&
                 (
                     Scope == input.Scope ||
                     (Scope != null && Scope.Equals(input.Scope))
                 ) &&
                 (
                     SourceString == input.SourceString ||
                     (SourceString != null && SourceString.Equals(input.SourceString))
                 ) &&
                 (
                     SourceHash == input.SourceHash ||
                     (SourceHash.Equals(input.SourceHash))
                 ) &&
                 (
                     ItemHash == input.ItemHash ||
                     (ItemHash.Equals(input.ItemHash))
                 ) &&
                 (
                     AcquisitionInfo == input.AcquisitionInfo ||
                     (AcquisitionInfo != null && AcquisitionInfo.Equals(input.AcquisitionInfo))
                 ) &&
                 (
                     StateInfo == input.StateInfo ||
                     (StateInfo != null && StateInfo.Equals(input.StateInfo))
                 ) &&
                 (
                     PresentationInfo == input.PresentationInfo ||
                     (PresentationInfo != null && PresentationInfo.Equals(input.PresentationInfo))
                 ) &&
                 (
                     PresentationNodeType == input.PresentationNodeType ||
                     (PresentationNodeType != null && PresentationNodeType.Equals(input.PresentationNodeType))
                 ) &&
                 (
                     TraitIds == input.TraitIds ||
                     (TraitIds != null && TraitIds.SequenceEqual(input.TraitIds))
                 ) &&
                 (
                     TraitHashes == input.TraitHashes ||
                     (TraitHashes != null && TraitHashes.SequenceEqual(input.TraitHashes))
                 ) &&
                 (
                     ParentNodeHashes == input.ParentNodeHashes ||
                     (ParentNodeHashes != null && ParentNodeHashes.SequenceEqual(input.ParentNodeHashes))
                 ) &&
                 (
                     Hash == input.Hash ||
                     (Hash.Equals(input.Hash))
                 ) &&
                 (
                     Index == input.Index ||
                     (Index.Equals(input.Index))
                 ) &&
                 (
                     Redacted == input.Redacted ||
                     (Redacted != null && Redacted.Equals(input.Redacted))
                 ));
        }
Example #11
0
        public bool Equals(DestinyPresentationNodeDefinition input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     DisplayProperties == input.DisplayProperties ||
                     (DisplayProperties != null && DisplayProperties.Equals(input.DisplayProperties))
                     ) &&
                 (
                     OriginalIcon == input.OriginalIcon ||
                     (OriginalIcon != null && OriginalIcon.Equals(input.OriginalIcon))
                 ) &&
                 (
                     RootViewIcon == input.RootViewIcon ||
                     (RootViewIcon != null && RootViewIcon.Equals(input.RootViewIcon))
                 ) &&
                 (
                     NodeType == input.NodeType ||
                     (NodeType != null && NodeType.Equals(input.NodeType))
                 ) &&
                 (
                     Scope == input.Scope ||
                     (Scope != null && Scope.Equals(input.Scope))
                 ) &&
                 (
                     ObjectiveHash == input.ObjectiveHash ||
                     (ObjectiveHash.Equals(input.ObjectiveHash))
                 ) &&
                 (
                     CompletionRecordHash == input.CompletionRecordHash ||
                     (CompletionRecordHash.Equals(input.CompletionRecordHash))
                 ) &&
                 (
                     Children == input.Children ||
                     (Children != null && Children.Equals(input.Children))
                 ) &&
                 (
                     DisplayStyle == input.DisplayStyle ||
                     (DisplayStyle != null && DisplayStyle.Equals(input.DisplayStyle))
                 ) &&
                 (
                     ScreenStyle == input.ScreenStyle ||
                     (ScreenStyle != null && ScreenStyle.Equals(input.ScreenStyle))
                 ) &&
                 (
                     Requirements == input.Requirements ||
                     (Requirements != null && Requirements.Equals(input.Requirements))
                 ) &&
                 (
                     DisableChildSubscreenNavigation == input.DisableChildSubscreenNavigation ||
                     (DisableChildSubscreenNavigation != null && DisableChildSubscreenNavigation.Equals(input.DisableChildSubscreenNavigation))
                 ) &&
                 (
                     MaxCategoryRecordScore == input.MaxCategoryRecordScore ||
                     (MaxCategoryRecordScore.Equals(input.MaxCategoryRecordScore))
                 ) &&
                 (
                     PresentationNodeType == input.PresentationNodeType ||
                     (PresentationNodeType != null && PresentationNodeType.Equals(input.PresentationNodeType))
                 ) &&
                 (
                     TraitIds == input.TraitIds ||
                     (TraitIds != null && TraitIds.SequenceEqual(input.TraitIds))
                 ) &&
                 (
                     TraitHashes == input.TraitHashes ||
                     (TraitHashes != null && TraitHashes.SequenceEqual(input.TraitHashes))
                 ) &&
                 (
                     ParentNodeHashes == input.ParentNodeHashes ||
                     (ParentNodeHashes != null && ParentNodeHashes.SequenceEqual(input.ParentNodeHashes))
                 ) &&
                 (
                     Hash == input.Hash ||
                     (Hash.Equals(input.Hash))
                 ) &&
                 (
                     Index == input.Index ||
                     (Index.Equals(input.Index))
                 ) &&
                 (
                     Redacted == input.Redacted ||
                     (Redacted != null && Redacted.Equals(input.Redacted))
                 ));
        }