Skip to content

Commit

Permalink
[EXILED::API] Pickup::Category (#46)
Browse files Browse the repository at this point in the history
* Item Category on Pickup

* Fixed Build Error
  • Loading branch information
NotZer0Two authored Aug 11, 2024
1 parent a3595e1 commit fada367
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions EXILED/Exiled.API/Features/Pickups/Pickup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ namespace Exiled.API.Features.Pickups
using System.Collections.Generic;
using System.Linq;

using Exiled.API.Extensions;
using Exiled.API.Features.Core;
using Exiled.API.Features.Pickups.Projectiles;
using Exiled.API.Interfaces;
Expand Down Expand Up @@ -208,6 +209,11 @@ public float PickupTime
/// </summary>
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 fada367

Please sign in to comment.