Skip to content

Commit

Permalink
API update v2.12.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Cytraen committed Oct 16, 2021
1 parent 43d4197 commit 96b92a6
Show file tree
Hide file tree
Showing 4 changed files with 81 additions and 65 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: Main pull request/push
name: Main PR/push + stable push

on:
push:
branches: [ main ]
branches: [ main, stable ]
pull_request:
branches: [ main ]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,13 @@ public class DestinyCharacterProgressionComponent
[JsonPropertyName("uninstancedItemObjectives")]
public Dictionary<uint, IEnumerable<Destiny.Quests.DestinyObjectiveProgress>> UninstancedItemObjectives { get; set; }

/// <summary>
/// Sometimes, you have items in your inventory that don't have instances, but still have perks (for example: Trials passage cards). This gives you the perk information for uninstanced items.
/// This dictionary is keyed by item hash, which you can use to look up the corresponding item definition. The value is the list of perks states for the item.
/// </summary>
[JsonPropertyName("uninstancedItemPerks")]
public Dictionary<uint, Destiny.Entities.Items.DestinyItemPerksComponent> UninstancedItemPerks { get; set; }

/// <summary>
/// The set of checklists that can be examined for this specific character, keyed by the hash identifier of the Checklist (DestinyChecklistDefinition)
/// For each checklist returned, its value is itself a Dictionary keyed by the checklist's hash identifier with the value being a boolean indicating if it's been discovered yet.
Expand Down
24 changes: 12 additions & 12 deletions BungieSharper.Entities/Destiny/Entities.Destiny.Entities.Items.cs
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,18 @@ public class DestinyItemComponent
public IEnumerable<bool> ItemValueVisibility { get; set; }
}

/// <summary>
/// Instanced items can have perks: benefits that the item bestows.
/// These are related to DestinySandboxPerkDefinition, and sometimes - but not always - have human readable info. When they do, they are the icons and text that you see in an item's tooltip.
/// Talent Grids, Sockets, and the item itself can apply Perks, which are then summarized here for your convenience.
/// </summary>
public class DestinyItemPerksComponent
{
/// <summary>The list of perks to display in an item tooltip - and whether or not they have been activated.</summary>
[JsonPropertyName("perks")]
public IEnumerable<Destiny.Perks.DestinyPerkReference> Perks { get; set; }
}

/// <summary>
/// Items can have objectives and progression. When you request this block, you will obtain information about any Objectives and progression tied to this item.
/// </summary>
Expand Down Expand Up @@ -200,18 +212,6 @@ public class DestinyItemInstanceEnergy
public int EnergyUnused { get; set; }
}

/// <summary>
/// Instanced items can have perks: benefits that the item bestows.
/// These are related to DestinySandboxPerkDefinition, and sometimes - but not always - have human readable info. When they do, they are the icons and text that you see in an item's tooltip.
/// Talent Grids, Sockets, and the item itself can apply Perks, which are then summarized here for your convenience.
/// </summary>
public class DestinyItemPerksComponent
{
/// <summary>The list of perks to display in an item tooltip - and whether or not they have been activated.</summary>
[JsonPropertyName("perks")]
public IEnumerable<Destiny.Perks.DestinyPerkReference> Perks { get; set; }
}

/// <summary>
/// Many items can be rendered in 3D. When you request this block, you will obtain the custom data needed to render this specific instance of the item.
/// </summary>
Expand Down
111 changes: 60 additions & 51 deletions BungieSharper.Entities/Entities.cs
Original file line number Diff line number Diff line change
Expand Up @@ -541,6 +541,9 @@ public class DestinyBaseItemComponentSetOfuint32
{
[JsonPropertyName("objectives")]
public DictionaryComponentResponseOfuint32AndDestinyItemObjectivesComponent Objectives { get; set; }

[JsonPropertyName("perks")]
public DictionaryComponentResponseOfuint32AndDestinyItemPerksComponent Perks { get; set; }
}

public class DictionaryComponentResponseOfuint32AndDestinyItemObjectivesComponent
Expand All @@ -557,6 +560,20 @@ public class DictionaryComponentResponseOfuint32AndDestinyItemObjectivesComponen
public bool? Disabled { get; set; }
}

public class DictionaryComponentResponseOfuint32AndDestinyItemPerksComponent
{
[JsonPropertyName("data")]
public Dictionary<uint, Destiny.Entities.Items.DestinyItemPerksComponent> Data { get; set; }

[JsonPropertyName("privacy")]
public Components.ComponentPrivacySetting Privacy { get; set; }

/// <summary>If true, this component is disabled.</summary>
[JsonPropertyName("disabled")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public bool? Disabled { get; set; }
}

public class DictionaryComponentResponseOfint64AndDestinyPresentationNodesComponent
{
[JsonPropertyName("data")]
Expand Down Expand Up @@ -617,6 +634,9 @@ public class DestinyBaseItemComponentSetOfint64
{
[JsonPropertyName("objectives")]
public DictionaryComponentResponseOfint64AndDestinyItemObjectivesComponent Objectives { get; set; }

[JsonPropertyName("perks")]
public DictionaryComponentResponseOfint64AndDestinyItemPerksComponent Perks { get; set; }
}

public class DictionaryComponentResponseOfint64AndDestinyItemObjectivesComponent
Expand All @@ -633,14 +653,25 @@ public class DictionaryComponentResponseOfint64AndDestinyItemObjectivesComponent
public bool? Disabled { get; set; }
}

public class DictionaryComponentResponseOfint64AndDestinyItemPerksComponent
{
[JsonPropertyName("data")]
public Dictionary<long, Destiny.Entities.Items.DestinyItemPerksComponent> Data { get; set; }

[JsonPropertyName("privacy")]
public Components.ComponentPrivacySetting Privacy { get; set; }

/// <summary>If true, this component is disabled.</summary>
[JsonPropertyName("disabled")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public bool? Disabled { get; set; }
}

public class DestinyItemComponentSetOfint64
{
[JsonPropertyName("instances")]
public DictionaryComponentResponseOfint64AndDestinyItemInstanceComponent Instances { get; set; }

[JsonPropertyName("perks")]
public DictionaryComponentResponseOfint64AndDestinyItemPerksComponent Perks { get; set; }

[JsonPropertyName("renderData")]
public DictionaryComponentResponseOfint64AndDestinyItemRenderComponent RenderData { get; set; }

Expand All @@ -664,6 +695,9 @@ public class DestinyItemComponentSetOfint64

[JsonPropertyName("objectives")]
public DictionaryComponentResponseOfint64AndDestinyItemObjectivesComponent Objectives { get; set; }

[JsonPropertyName("perks")]
public DictionaryComponentResponseOfint64AndDestinyItemPerksComponent Perks { get; set; }
}

public class DictionaryComponentResponseOfint64AndDestinyItemInstanceComponent
Expand All @@ -680,20 +714,6 @@ public class DictionaryComponentResponseOfint64AndDestinyItemInstanceComponent
public bool? Disabled { get; set; }
}

public class DictionaryComponentResponseOfint64AndDestinyItemPerksComponent
{
[JsonPropertyName("data")]
public Dictionary<long, Destiny.Entities.Items.DestinyItemPerksComponent> Data { get; set; }

[JsonPropertyName("privacy")]
public Components.ComponentPrivacySetting Privacy { get; set; }

/// <summary>If true, this component is disabled.</summary>
[JsonPropertyName("disabled")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public bool? Disabled { get; set; }
}

public class DictionaryComponentResponseOfint64AndDestinyItemRenderComponent
{
[JsonPropertyName("data")]
Expand Down Expand Up @@ -1110,6 +1130,9 @@ public class DestinyBaseItemComponentSetOfint32
{
[JsonPropertyName("objectives")]
public DictionaryComponentResponseOfint32AndDestinyItemObjectivesComponent Objectives { get; set; }

[JsonPropertyName("perks")]
public DictionaryComponentResponseOfint32AndDestinyItemPerksComponent Perks { get; set; }
}

public class DictionaryComponentResponseOfint32AndDestinyItemObjectivesComponent
Expand All @@ -1126,14 +1149,25 @@ public class DictionaryComponentResponseOfint32AndDestinyItemObjectivesComponent
public bool? Disabled { get; set; }
}

public class DictionaryComponentResponseOfint32AndDestinyItemPerksComponent
{
[JsonPropertyName("data")]
public Dictionary<int, Destiny.Entities.Items.DestinyItemPerksComponent> Data { get; set; }

[JsonPropertyName("privacy")]
public Components.ComponentPrivacySetting Privacy { get; set; }

/// <summary>If true, this component is disabled.</summary>
[JsonPropertyName("disabled")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public bool? Disabled { get; set; }
}

public class DestinyItemComponentSetOfint32
{
[JsonPropertyName("instances")]
public DictionaryComponentResponseOfint32AndDestinyItemInstanceComponent Instances { get; set; }

[JsonPropertyName("perks")]
public DictionaryComponentResponseOfint32AndDestinyItemPerksComponent Perks { get; set; }

[JsonPropertyName("renderData")]
public DictionaryComponentResponseOfint32AndDestinyItemRenderComponent RenderData { get; set; }

Expand All @@ -1157,6 +1191,9 @@ public class DestinyItemComponentSetOfint32

[JsonPropertyName("objectives")]
public DictionaryComponentResponseOfint32AndDestinyItemObjectivesComponent Objectives { get; set; }

[JsonPropertyName("perks")]
public DictionaryComponentResponseOfint32AndDestinyItemPerksComponent Perks { get; set; }
}

public class DictionaryComponentResponseOfint32AndDestinyItemInstanceComponent
Expand All @@ -1173,20 +1210,6 @@ public class DictionaryComponentResponseOfint32AndDestinyItemInstanceComponent
public bool? Disabled { get; set; }
}

public class DictionaryComponentResponseOfint32AndDestinyItemPerksComponent
{
[JsonPropertyName("data")]
public Dictionary<int, Destiny.Entities.Items.DestinyItemPerksComponent> Data { get; set; }

[JsonPropertyName("privacy")]
public Components.ComponentPrivacySetting Privacy { get; set; }

/// <summary>If true, this component is disabled.</summary>
[JsonPropertyName("disabled")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public bool? Disabled { get; set; }
}

public class DictionaryComponentResponseOfint32AndDestinyItemRenderComponent
{
[JsonPropertyName("data")]
Expand Down Expand Up @@ -1352,9 +1375,6 @@ public class DestinyItemComponentSetOfuint32
[JsonPropertyName("instances")]
public DictionaryComponentResponseOfuint32AndDestinyItemInstanceComponent Instances { get; set; }

[JsonPropertyName("perks")]
public DictionaryComponentResponseOfuint32AndDestinyItemPerksComponent Perks { get; set; }

[JsonPropertyName("renderData")]
public DictionaryComponentResponseOfuint32AndDestinyItemRenderComponent RenderData { get; set; }

Expand All @@ -1378,6 +1398,9 @@ public class DestinyItemComponentSetOfuint32

[JsonPropertyName("objectives")]
public DictionaryComponentResponseOfuint32AndDestinyItemObjectivesComponent Objectives { get; set; }

[JsonPropertyName("perks")]
public DictionaryComponentResponseOfuint32AndDestinyItemPerksComponent Perks { get; set; }
}

public class DictionaryComponentResponseOfuint32AndDestinyItemInstanceComponent
Expand All @@ -1394,20 +1417,6 @@ public class DictionaryComponentResponseOfuint32AndDestinyItemInstanceComponent
public bool? Disabled { get; set; }
}

public class DictionaryComponentResponseOfuint32AndDestinyItemPerksComponent
{
[JsonPropertyName("data")]
public Dictionary<uint, Destiny.Entities.Items.DestinyItemPerksComponent> Data { get; set; }

[JsonPropertyName("privacy")]
public Components.ComponentPrivacySetting Privacy { get; set; }

/// <summary>If true, this component is disabled.</summary>
[JsonPropertyName("disabled")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public bool? Disabled { get; set; }
}

public class DictionaryComponentResponseOfuint32AndDestinyItemRenderComponent
{
[JsonPropertyName("data")]
Expand Down

0 comments on commit 96b92a6

Please sign in to comment.