示例#1
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);
 }
 internal DestinyProgressionDefinition(DestinyDefinitionDisplayProperties displayProperties, DestinyColor color, int progressToNextStepScaling, string rankIcon,
                                       bool repeatLastStep, ProgressionReward[] rewardItems, ProgressionScope scope, int storageMappingIndex, bool visible, ProgressionStep[] steps,
                                       string source, uint?factionHash, bool blacklisted, uint hash, int index, bool redacted)
 {
     DisplayProperties         = displayProperties;
     Color                     = color;
     ProgressToNextStepScaling = progressToNextStepScaling;
     RankIcon                  = rankIcon;
     RepeatLastStep            = repeatLastStep;
     RewardItems               = rewardItems.AsReadOnlyOrEmpty();
     Scope                     = scope;
     StorageMappingIndex       = storageMappingIndex;
     Visible                   = visible;
     Steps                     = steps.AsReadOnlyOrEmpty();
     Blacklisted               = blacklisted;
     Hash     = hash;
     Index    = index;
     Redacted = redacted;
     Source   = source;
     Faction  = new DefinitionHashPointer <DestinyFactionDefinition>(factionHash, DefinitionsEnum.DestinyFactionDefinition);
 }
示例#3
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);
 }