Skip to content

Commit

Permalink
Category (#2767)
Browse files Browse the repository at this point in the history
  • Loading branch information
NotZer0Two authored Aug 14, 2024
1 parent 25b9a02 commit 857cdd7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Exiled.API/Features/Pickups/Pickup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,11 @@ public float PickupTime
[EProperty(readOnly: true, category: nameof(Pickup))]
public ItemType Type => Base.NetworkInfo.ItemId;

/// <summary>
/// Gets the <see cref="ItemCategory"/> of the item.
/// </summary>
public ItemCategory Category => Type.GetCategory();

/// <summary>
/// Gets or sets a value indicating whether the pickup is locked (can't be picked up).
/// </summary>
Expand Down

0 comments on commit 857cdd7

Please sign in to comment.