25 lines
527 B
C#
25 lines
527 B
C#
using System.Collections.Generic;
|
|
using Fantasy;
|
|
using Fantasy.Entitas;
|
|
|
|
namespace NBF
|
|
{
|
|
public class PlayerItem : Entity
|
|
{
|
|
/// <summary>
|
|
/// 配置id
|
|
/// </summary>
|
|
public int ConfigID;
|
|
|
|
/// <summary>
|
|
/// 绑定的子物体
|
|
/// </summary>
|
|
public List<int> BindItems = new List<int>();
|
|
|
|
public void Init(ItemBindInfo bindInfo)
|
|
{
|
|
ConfigID = bindInfo.Item;
|
|
BindItems.AddRange(bindInfo.BindItems);
|
|
}
|
|
}
|
|
} |