Skip to content

Commit

Permalink
Merge pull request #127 from dlamkins/master
Browse files Browse the repository at this point in the history
Added JadeTechModule and PowerCore types for items.
  • Loading branch information
Archomeda committed Feb 28, 2023
2 parents 574d18c + e9efd5a commit dc10c46
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Gw2Sharp/WebApi/V2/Models/Items/Item.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,10 @@ namespace Gw2Sharp.WebApi.V2.Models
[CastableType(ItemType.Container, typeof(ItemContainer))]
[CastableType(ItemType.Gathering, typeof(ItemGathering))]
[CastableType(ItemType.Gizmo, typeof(ItemGizmo))]
[CastableType(ItemType.JadeTechModule, typeof(ItemJadeTechModule))]
[CastableType(ItemType.Key, typeof(ItemKey))]
[CastableType(ItemType.MiniPet, typeof(ItemMiniPet))]
[CastableType(ItemType.PowerCore, typeof(ItemPowerCore))]
[CastableType(ItemType.Tool, typeof(ItemTool))]
[CastableType(ItemType.Trait, typeof(ItemTrait))]
[CastableType(ItemType.Trinket, typeof(ItemTrinket))]
Expand Down
9 changes: 9 additions & 0 deletions Gw2Sharp/WebApi/V2/Models/Items/ItemJadeTechModule.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
namespace Gw2Sharp.WebApi.V2.Models
{
/// <summary>
/// Represents a jade tech module item.
/// </summary>
public class ItemJadeTechModule : Item
{
}
}
9 changes: 9 additions & 0 deletions Gw2Sharp/WebApi/V2/Models/Items/ItemPowerCore.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
namespace Gw2Sharp.WebApi.V2.Models
{
/// <summary>
/// Represents a power core item.
/// </summary>
public class ItemPowerCore : Item
{
}
}
12 changes: 11 additions & 1 deletion Gw2Sharp/WebApi/V2/Models/Items/ItemType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,16 @@ public enum ItemType
/// <summary>
/// Key type.
/// </summary>
Key
Key,

/// <summary>
/// Jade tech module type.
/// </summary>
JadeTechModule,

/// <summary>
/// Power core type.
/// </summary>
PowerCore
}
}

0 comments on commit dc10c46

Please sign in to comment.