private void UpdateLeveledValue(string name) { float progression = 0.0f; Progressions.TryGetValue(name, out progression); LeveledValues[name] = BaseValues[name] + progression * (Level - 1); }
public void ProcessProgressionEvent(ProgressionEvent Event) { if (Event == null) { return; } // if we need to, invoke the delegate if (InvokeRequired) { Invoke(new DelegateProcessProgressionEvent(ProcessProgressionEvent), new object[] { Event }); return; } if (Event.State == EProgressionState.InstigatorConnected) { ProgressionData = new Progressions(); OverallProgressBar.Invalidate(); } if (ProgressionData != null) { if (ProgressionData.ProcessEvent(Event)) { VisualiserGridViewResized = true; VisualiserGridView.Invalidate(); OverallProgressBar.Invalidate(); } } }
private static void RunFirstProgression() { PrintHeader("Arithmetic Progression"); var a1 = ReadDoubleParameterFromConsole("a1"); var t = ReadDoubleParameterFromConsole("t"); var n = ReadDoubleParameterFromConsole("n"); var progression = new Progressions(); var multiplyResult = progression.MultiplyArithmeticProgression(a1, t, n); Console.WriteLine($"multiply result: {multiplyResult}"); PrintWait(); }
private static void RunSecondProgression() { PrintHeader("Reversal Progression"); var a1 = ReadDoubleParameterFromConsole("a1"); var t = ReadDoubleParameterFromConsole("t"); var alim = ReadDoubleParameterFromConsole("alim"); var progression = new Progressions(); var multiplyResult = progression.MultiplyReversalProgression(a1, t, alim); Console.WriteLine($"multiply result: {multiplyResult}"); PrintWait(); }
public bool DeepEquals(DestinyCharacterProgressionComponent?other) { return(other is not null && Progressions.DeepEqualsDictionary(other.Progressions) && Factions.DeepEqualsDictionary(other.Factions) && Milestones.DeepEqualsDictionary(other.Milestones) && Quests.DeepEqualsList(other.Quests) && UninstancedItemObjectives.DeepEqualsDictionaryNaive(other.UninstancedItemObjectives) && UninstancedItemPerks.DeepEqualsDictionary(other.UninstancedItemPerks) && Checklists.DeepEqualsDictionaryNaive(other.Checklists) && (SeasonalArtifact is not null ? SeasonalArtifact.DeepEquals(other.SeasonalArtifact) : other.SeasonalArtifact is null)); }
public void Update(DestinyCharacterProgressionComponent?other) { if (other is null) { return; } if (!Progressions.DeepEqualsDictionary(other.Progressions)) { Progressions = other.Progressions; OnPropertyChanged(nameof(Progressions)); } if (!Factions.DeepEqualsDictionary(other.Factions)) { Factions = other.Factions; OnPropertyChanged(nameof(Factions)); } if (!Milestones.DeepEqualsDictionary(other.Milestones)) { Milestones = other.Milestones; OnPropertyChanged(nameof(Milestones)); } if (!Quests.DeepEqualsList(other.Quests)) { Quests = other.Quests; OnPropertyChanged(nameof(Quests)); } if (!UninstancedItemObjectives.DeepEqualsDictionary(other.UninstancedItemObjectives)) { UninstancedItemObjectives = other.UninstancedItemObjectives; OnPropertyChanged(nameof(UninstancedItemObjectives)); } if (!UninstancedItemPerks.DeepEqualsDictionary(other.UninstancedItemPerks)) { UninstancedItemPerks = other.UninstancedItemPerks; OnPropertyChanged(nameof(UninstancedItemPerks)); } if (!Checklists.DeepEqualsDictionary(other.Checklists)) { Checklists = other.Checklists; OnPropertyChanged(nameof(Checklists)); } if (!SeasonalArtifact.DeepEquals(other.SeasonalArtifact)) { SeasonalArtifact.Update(other.SeasonalArtifact); OnPropertyChanged(nameof(SeasonalArtifact)); } }
public bool DeepEquals(DestinyCharacterResponse?other) { return(other is not null && (Inventory is not null ? Inventory.DeepEquals(other.Inventory) : other.Inventory is null) && (Character is not null ? Character.DeepEquals(other.Character) : other.Character is null) && (Progressions is not null ? Progressions.DeepEquals(other.Progressions) : other.Progressions is null) && (RenderData is not null ? RenderData.DeepEquals(other.RenderData) : other.RenderData is null) && (Activities is not null ? Activities.DeepEquals(other.Activities) : other.Activities is null) && (Equipment is not null ? Equipment.DeepEquals(other.Equipment) : other.Equipment is null) && (Kiosks is not null ? Kiosks.DeepEquals(other.Kiosks) : other.Kiosks is null) && (PlugSets is not null ? PlugSets.DeepEquals(other.PlugSets) : other.PlugSets is null) && (PresentationNodes is not null ? PresentationNodes.DeepEquals(other.PresentationNodes) : other.PresentationNodes is null) && (Records is not null ? Records.DeepEquals(other.Records) : other.Records is null) && (Collectibles is not null ? Collectibles.DeepEquals(other.Collectibles) : other.Collectibles is null) && (ItemComponents is not null ? ItemComponents.DeepEquals(other.ItemComponents) : other.ItemComponents is null) && (UninstancedItemComponents is not null ? UninstancedItemComponents.DeepEquals(other.UninstancedItemComponents) : other.UninstancedItemComponents is null) && (CurrencyLookups is not null ? CurrencyLookups.DeepEquals(other.CurrencyLookups) : other.CurrencyLookups is null)); }
public bool Equals(DestinyCharacterProgressionComponent input) { if (input == null) { return(false); } return (( Progressions == input.Progressions || (Progressions != null && Progressions.SequenceEqual(input.Progressions)) ) && ( Factions == input.Factions || (Factions != null && Factions.SequenceEqual(input.Factions)) ) && ( Milestones == input.Milestones || (Milestones != null && Milestones.SequenceEqual(input.Milestones)) ) && ( Quests == input.Quests || (Quests != null && Quests.SequenceEqual(input.Quests)) ) && ( UninstancedItemObjectives == input.UninstancedItemObjectives || (UninstancedItemObjectives != null && UninstancedItemObjectives.SequenceEqual(input.UninstancedItemObjectives)) ) && ( UninstancedItemPerks == input.UninstancedItemPerks || (UninstancedItemPerks != null && UninstancedItemPerks.SequenceEqual(input.UninstancedItemPerks)) ) && ( Checklists == input.Checklists || (Checklists != null && Checklists.SequenceEqual(input.Checklists)) ) && ( SeasonalArtifact == input.SeasonalArtifact || (SeasonalArtifact != null && SeasonalArtifact.Equals(input.SeasonalArtifact)) )); }
public void Update(DestinyCharacterResponse?other) { if (other is null) { return; } if (!Inventory.DeepEquals(other.Inventory)) { Inventory.Update(other.Inventory); OnPropertyChanged(nameof(Inventory)); } if (!Character.DeepEquals(other.Character)) { Character.Update(other.Character); OnPropertyChanged(nameof(Character)); } if (!Progressions.DeepEquals(other.Progressions)) { Progressions.Update(other.Progressions); OnPropertyChanged(nameof(Progressions)); } if (!RenderData.DeepEquals(other.RenderData)) { RenderData.Update(other.RenderData); OnPropertyChanged(nameof(RenderData)); } if (!Activities.DeepEquals(other.Activities)) { Activities.Update(other.Activities); OnPropertyChanged(nameof(Activities)); } if (!Equipment.DeepEquals(other.Equipment)) { Equipment.Update(other.Equipment); OnPropertyChanged(nameof(Equipment)); } if (!Kiosks.DeepEquals(other.Kiosks)) { Kiosks.Update(other.Kiosks); OnPropertyChanged(nameof(Kiosks)); } if (!PlugSets.DeepEquals(other.PlugSets)) { PlugSets.Update(other.PlugSets); OnPropertyChanged(nameof(PlugSets)); } if (!PresentationNodes.DeepEquals(other.PresentationNodes)) { PresentationNodes.Update(other.PresentationNodes); OnPropertyChanged(nameof(PresentationNodes)); } if (!Records.DeepEquals(other.Records)) { Records.Update(other.Records); OnPropertyChanged(nameof(Records)); } if (!Collectibles.DeepEquals(other.Collectibles)) { Collectibles.Update(other.Collectibles); OnPropertyChanged(nameof(Collectibles)); } if (!ItemComponents.DeepEquals(other.ItemComponents)) { ItemComponents.Update(other.ItemComponents); OnPropertyChanged(nameof(ItemComponents)); } if (!UninstancedItemComponents.DeepEquals(other.UninstancedItemComponents)) { UninstancedItemComponents.Update(other.UninstancedItemComponents); OnPropertyChanged(nameof(UninstancedItemComponents)); } if (!CurrencyLookups.DeepEquals(other.CurrencyLookups)) { CurrencyLookups.Update(other.CurrencyLookups); OnPropertyChanged(nameof(CurrencyLookups)); } }
public bool Equals(DestinyCharacterResponse input) { if (input == null) { return(false); } return (( Inventory == input.Inventory || (Inventory != null && Inventory.Equals(input.Inventory)) ) && ( Character == input.Character || (Character != null && Character.Equals(input.Character)) ) && ( Progressions == input.Progressions || (Progressions != null && Progressions.Equals(input.Progressions)) ) && ( RenderData == input.RenderData || (RenderData != null && RenderData.Equals(input.RenderData)) ) && ( Activities == input.Activities || (Activities != null && Activities.Equals(input.Activities)) ) && ( Equipment == input.Equipment || (Equipment != null && Equipment.Equals(input.Equipment)) ) && ( Kiosks == input.Kiosks || (Kiosks != null && Kiosks.Equals(input.Kiosks)) ) && ( PlugSets == input.PlugSets || (PlugSets != null && PlugSets.Equals(input.PlugSets)) ) && ( PresentationNodes == input.PresentationNodes || (PresentationNodes != null && PresentationNodes.Equals(input.PresentationNodes)) ) && ( Records == input.Records || (Records != null && Records.Equals(input.Records)) ) && ( Collectibles == input.Collectibles || (Collectibles != null && Collectibles.Equals(input.Collectibles)) ) && ( ItemComponents == input.ItemComponents || (ItemComponents != null && ItemComponents.Equals(input.ItemComponents)) ) && ( UninstancedItemComponents == input.UninstancedItemComponents || (UninstancedItemComponents != null && UninstancedItemComponents.Equals(input.UninstancedItemComponents)) ) && ( CurrencyLookups == input.CurrencyLookups || (CurrencyLookups != null && CurrencyLookups.Equals(input.CurrencyLookups)) )); }