コード例 #1
0
 internal DestinyItemCategoryDefinition(bool deprecated, DestinyDefinitionDisplayProperties displayProperties, DestinyBreakerTypes grantDestinyBreakerType,
                                        DestinyClassType grantDestinyClass, ItemType grantDestinyItemType, ItemSubType grantDestinySubType, bool groupCategoryOnly, uint[] groupedCategoryHashes,
                                        bool isPlug, string itemTypeRegex, uint[] parentCategoryHashes, string shortTitle, bool visible, string plugCategoryIdentifier, string itemTypeRegexNot,
                                        string originBucketIdentifier, string traitId,
                                        bool blacklisted, uint hash, int index, bool redacted)
 {
     Deprecated              = deprecated;
     DisplayProperties       = displayProperties;
     GrantDestinyBreakerType = grantDestinyBreakerType;
     GrantDestinyClass       = grantDestinyClass;
     GrantDestinyItemType    = grantDestinyItemType;
     GrantDestinySubType     = grantDestinySubType;
     GroupCategoryOnly       = groupCategoryOnly;
     GroupedCategories       = groupedCategoryHashes.DefinitionsAsReadOnlyOrEmpty <DestinyItemCategoryDefinition>(DefinitionsEnum.DestinyItemCategoryDefinition);
     IsPlug                 = isPlug;
     ItemTypeRegex          = itemTypeRegex;
     ParentCategories       = parentCategoryHashes.DefinitionsAsReadOnlyOrEmpty <DestinyItemCategoryDefinition>(DefinitionsEnum.DestinyItemCategoryDefinition);
     ShortTitle             = shortTitle;
     Visible                = visible;
     Blacklisted            = blacklisted;
     Hash                   = hash;
     Index                  = index;
     Redacted               = redacted;
     PlugCategoryIdentifier = plugCategoryIdentifier;
     ItemTypeRegexNot       = itemTypeRegexNot;
     OriginBucketIdentifier = originBucketIdentifier;
     TraitId                = traitId;
 }
コード例 #2
0
 internal DestinyCharacterComponent(long membershipId, BungieMembershipType membershipType, long characterId, DateTime dateLastPlayed,
                                    long minutesPlayedThisSession, long minutesPlayedTotal, int light, Dictionary <uint, int> stats, uint raceHash, uint genderHash,
                                    uint classHash, DestinyRaceType raceType, DestinyClassType classType, DestinyGenderTypes genderType, string emblemPath,
                                    string emblemBackgroundPath, uint emblemHash, DestinyColor emblemColor, DestinyProgression levelProgression,
                                    int baseCharacterLevel, double percentToNextLevel, uint?titleRecordHash)
 {
     MembershipId             = membershipId;
     MembershipType           = membershipType;
     CharacterId              = characterId;
     DateLastPlayed           = dateLastPlayed;
     MinutesPlayedThisSession = minutesPlayedThisSession;
     MinutesPlayedTotal       = minutesPlayedTotal;
     Light                = light;
     Stats                = stats.AsReadOnlyDictionaryWithDefinitionKeyOrEmpty <DestinyStatDefinition, int>(DefinitionsEnum.DestinyStatDefinition);
     Race                 = new DefinitionHashPointer <DestinyRaceDefinition>(raceHash, DefinitionsEnum.DestinyRaceDefinition);
     Gender               = new DefinitionHashPointer <DestinyGenderDefinition>(genderHash, DefinitionsEnum.DestinyGenderDefinition);
     Class                = new DefinitionHashPointer <DestinyClassDefinition>(classHash, DefinitionsEnum.DestinyClassDefinition);
     RaceType             = raceType;
     ClassType            = classType;
     GenderType           = genderType;
     EmblemPath           = emblemPath;
     EmblemBackgroundPath = emblemBackgroundPath;
     Emblem               = new DefinitionHashPointer <DestinyInventoryItemDefinition>(emblemHash, DefinitionsEnum.DestinyInventoryItemDefinition);
     EmblemColor          = emblemColor;
     LevelProgression     = levelProgression;
     BaseCharacterLevel   = baseCharacterLevel;
     PercentToNextLevel   = percentToNextLevel;
     TitleRecord          = new DefinitionHashPointer <DestinyRecordDefinition>(titleRecordHash, DefinitionsEnum.DestinyRecordDefinition);
 }
コード例 #3
0
 internal DestinyClassDefinition(DestinyDefinitionDisplayProperties displayProperties, DestinyClassType classType, ClassGenderedNames genderedClassNames,
                                 Dictionary <uint, string> genderedClassNamesByGenderHash, bool blacklisted, uint hash, int index, bool redacted)
 {
     DisplayProperties          = displayProperties;
     ClassType                  = classType;
     GenderedClassNames         = genderedClassNames;
     GenderedClassNamesByGender = genderedClassNamesByGenderHash.AsReadOnlyDictionaryWithDefinitionKeyOrEmpty <DestinyGenderDefinition, string>(DefinitionsEnum.DestinyGenderDefinition);
     Blacklisted                = blacklisted;
     Hash     = hash;
     Index    = index;
     Redacted = redacted;
 }
コード例 #4
0
 internal DestinyInventoryItemDefinition(uint acquireRewardSiteHash, uint acquireUnlockHash, bool allowActions, DestinyColor backgroundColor, InventoryItemAction action,
                                         DestinyBreakerTypes breakerType, DestinyClassType classType, DestinyDefinitionDisplayProperties displayProperties, DamageType defaultDamageType, string displaySource,
                                         bool doesPostmasterPullHaveSideEffects, bool equippable, InventoryItemEquippingBlock equippingBlock, string iconWatermark, string iconWatermarkShelved,
                                         InventoryItemInventoryBlock inventory, InventoryItemInvestmentStat[] investmentStats, bool isWrapper, uint[] itemCategoryHashes, ItemSubType itemSubType,
                                         ItemType itemType, string itemTypeAndTierDisplayName, string itemTypeDisplayName, bool nonTransferrable, InventoryItemPerk[] perks, InventoryItemPreviewBlock preview,
                                         InventoryItemQualityBlock quality, string screenshot, InventoryItemSocketsBlock sockets, SpecialItemType specialItemType, InventoryItemStatsBlock stats, uint summaryItemHash,
                                         InventoryItemTalentGrid talentGrid, InventoryItemTooltipNotification[] tooltipNotifications, string[] traitIds, InventoryItemTranslationBlock translationBlock,
                                         string uiItemDisplayStyle, uint collectibleHash, InventoryItemPlugBlock plug, InventoryItemObjectivesBlock objectives, string secondaryIcon, InventoryItemValueBlock value,
                                         InventoryItemSetDataBlock setData, InventoryItemSackBlock sack, InventoryItemGearsetBlock gearset, string secondaryOverlay, string secondarySpecial,
                                         string tooltipStyle, uint?emblemObjectiveHash, InventoryItemSourceBlock sourceData, InventoryItemMetricBlock metrics, InventoryItemSummaryBlock summary,
                                         uint?loreHash, InventoryItemAnimationReference[] animations, HyperlinkReference[] links, uint?breakerTypeHash, uint[] damageTypeHashes, DamageType[] damageTypes,
                                         uint?defaultDamageTypeHash, uint?seasonHash, bool blacklisted, uint hash, int index, bool redacted)
 {
     AcquireRewardSiteHash = acquireRewardSiteHash;
     AcquireUnlockHash     = acquireUnlockHash;
     AllowActions          = allowActions;
     BackgroundColor       = backgroundColor;
     Action                            = action;
     DisplayProperties                 = displayProperties;
     BreakerTypeEnumValue              = breakerType;
     ClassType                         = classType;
     Collectible                       = new DefinitionHashPointer <DestinyCollectibleDefinition>(collectibleHash, DefinitionsEnum.DestinyCollectibleDefinition);
     DefaultDamageTypeEnumValue        = defaultDamageType;
     DisplaySource                     = displaySource;
     DoesPostmasterPullHaveSideEffects = doesPostmasterPullHaveSideEffects;
     Equippable                        = equippable;
     EquippingBlock                    = equippingBlock;
     IconWatermark                     = iconWatermark;
     IconWatermarkShelved              = iconWatermarkShelved;
     Inventory                         = inventory;
     InvestmentStats                   = investmentStats.AsReadOnlyOrEmpty();
     IsWrapper                         = isWrapper;
     ItemCategories                    = itemCategoryHashes.DefinitionsAsReadOnlyOrEmpty <DestinyItemCategoryDefinition>(DefinitionsEnum.DestinyItemCategoryDefinition);
     ItemSubType                       = itemSubType;
     ItemType                          = itemType;
     ItemTypeAndTierDisplayName        = itemTypeAndTierDisplayName;
     ItemTypeDisplayName               = itemTypeDisplayName;
     NonTransferrable                  = nonTransferrable;
     Objectives                        = objectives;
     Perks                = perks.AsReadOnlyOrEmpty();
     Plug                 = plug;
     Preview              = preview;
     Quality              = quality;
     Screenshot           = screenshot;
     Sockets              = sockets;
     SpecialItemType      = specialItemType;
     Stats                = stats;
     SummaryItem          = new DefinitionHashPointer <DestinyInventoryItemDefinition>(summaryItemHash, DefinitionsEnum.DestinyInventoryItemDefinition);
     TalentGrid           = talentGrid;
     TooltipNotifications = tooltipNotifications.AsReadOnlyOrEmpty();
     TraitIds             = traitIds.AsReadOnlyOrEmpty();
     TranslationBlock     = translationBlock;
     UiItemDisplayStyle   = uiItemDisplayStyle;
     SecondaryIcon        = secondaryIcon;
     Value                = value;
     SetData              = setData;
     Sack                 = sack;
     Gearset              = gearset;
     Blacklisted          = blacklisted;
     Hash                 = hash;
     Index                = index;
     Redacted             = redacted;
     SecondaryOverlay     = secondaryOverlay;
     SecondarySpecial     = secondarySpecial;
     TooltipStyle         = tooltipStyle;
     EmblemObjective      = new DefinitionHashPointer <DestinyObjectiveDefinition>(emblemObjectiveHash, DefinitionsEnum.DestinyObjectiveDefinition);
     SourceData           = sourceData;
     Metrics              = metrics;
     Summary              = summary;
     Lore                 = new DefinitionHashPointer <DestinyLoreDefinition>(loreHash, DefinitionsEnum.DestinyLoreDefinition);
     Animations           = animations.AsReadOnlyOrEmpty();
     Links                = links.AsReadOnlyOrEmpty();
     BreakerType          = new DefinitionHashPointer <DestinyBreakerTypeDefinition>(breakerTypeHash, DefinitionsEnum.DestinyBreakerTypeDefinition);
     DamageTypes          = damageTypeHashes.DefinitionsAsReadOnlyOrEmpty <DestinyDamageTypeDefinition>(DefinitionsEnum.DestinyDamageTypeDefinition);
     DamageTypeEnumValues = damageTypes.AsReadOnlyOrEmpty();
     DefaultDamageType    = new DefinitionHashPointer <DestinyDamageTypeDefinition>(defaultDamageTypeHash, DefinitionsEnum.DestinyDamageTypeDefinition);
     Season               = new DefinitionHashPointer <DestinySeasonDefinition>(seasonHash, DefinitionsEnum.DestinySeasonDefinition);
 }