Skip to content

Commit

Permalink
Move KitItem* to Essentials.Kit.Item
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardosnt committed Feb 21, 2016
1 parent 21e1727 commit fa7727c
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/Commands/MiscCommands.cs
Expand Up @@ -31,7 +31,7 @@
using Essentials.Core.Command;
using Essentials.Core.Components.Player;
using Essentials.I18n;
using Essentials.Kit;
using Essentials.Kit.Item;
using SDG.Unturned;
using UnityEngine;

Expand Down
4 changes: 2 additions & 2 deletions src/Kit/KitItem.cs → src/Kit/Item/KitItem.cs
Expand Up @@ -28,7 +28,7 @@

// ReSharper disable InconsistentNaming

namespace Essentials.Kit
namespace Essentials.Kit.Item
{
/// <summary>
/// Author: leonardosc
Expand Down Expand Up @@ -65,7 +65,7 @@ public class KitItem
/// </summary>
/// <returns> Instance of SDG.Unturned.Item of this item </returns>>
[JsonIgnore]
public virtual Item UnturnedItem => new Item( Id, Amount, Durability, Metadata );
public virtual SDG.Unturned.Item UnturnedItem => new SDG.Unturned.Item( Id, Amount, Durability, Metadata );

public KitItem( ushort id, byte durability, byte amount )
{
Expand Down
Expand Up @@ -22,13 +22,13 @@
using Essentials.Api.Unturned;
using SDG.Unturned;

namespace Essentials.Kit
namespace Essentials.Kit.Item
{
public class KitItemMagazine : KitItem
{
public byte Ammo { get; set; }

public override Item UnturnedItem => new Item( Id, Ammo, Durability );
public override SDG.Unturned.Item UnturnedItem => new SDG.Unturned.Item( Id, Ammo, Durability );

public KitItemMagazine( ushort id, byte durability, byte amount, byte ammo ) : base( id, durability, amount )
{
Expand Down
4 changes: 2 additions & 2 deletions src/Kit/KitItemWeapon.cs → src/Kit/Item/KitItemWeapon.cs
Expand Up @@ -25,7 +25,7 @@
using Rocket.Unturned.Items;
using SDG.Unturned;

namespace Essentials.Kit
namespace Essentials.Kit.Item
{
/// <summary>
/// Author: leonardosc
Expand Down Expand Up @@ -80,7 +80,7 @@ public class KitItemWeapon : KitItem
/// </summary>
/// <returns> Instance of SDG.Unturned.Item of this item </returns>>
[JsonIgnore]
public override Item UnturnedItem
public override SDG.Unturned.Item UnturnedItem
{
get
{
Expand Down
1 change: 1 addition & 0 deletions src/Kit/JsonKitData.cs
Expand Up @@ -25,6 +25,7 @@
using Essentials.Api;
using Essentials.Common.Util;
using Essentials.Core.Storage;
using Essentials.Kit.Item;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using Rocket.Unturned.Items;
Expand Down
1 change: 1 addition & 0 deletions src/Kit/Kit.cs
Expand Up @@ -24,6 +24,7 @@
using Essentials.Api.Unturned;
using Essentials.Common;
using Essentials.I18n;
using Essentials.Kit.Item;
using Newtonsoft.Json;

namespace Essentials.Kit
Expand Down

0 comments on commit fa7727c

Please sign in to comment.