using System.Collections.Generic;
using Fantasy;
using Fantasy.Entitas;
using NBF.Utils;
namespace NBF
{
///
/// 玩家物品
///
public abstract class PlayerItem : Entity
{
public Player Owner;
///
/// 配置id
///
public int ConfigID;
public virtual void Init(Player player, ItemInfo bindInfo)
{
Owner = player;
ConfigID = bindInfo.ConfigId;
// var itemType = bindInfo.Item.GetItemType();
// if (itemType == ItemType.Rod)
// {
// var rod = AddComponent();
// rod.Init(bindInfo);
// }
}
}
}