1
This commit is contained in:
@@ -16,7 +16,7 @@ namespace BITFALL
|
||||
{
|
||||
[CustomType(typeof(IEntityInventory))]
|
||||
[CustomType(typeof(IBasicItemContainer))]
|
||||
public class EntityInventory : EntityComponent, IEntityInventory
|
||||
public class EntityInventory : EntityBehavior, IEntityInventory
|
||||
{
|
||||
/// <summary>
|
||||
/// 数据字典
|
||||
@@ -25,7 +25,7 @@ namespace BITFALL
|
||||
/// <summary>
|
||||
/// 隐式接口实现
|
||||
/// </summary>
|
||||
public int Id => (int)entity.Id;
|
||||
public int Id => (int)UnityEntity.Id;
|
||||
|
||||
public bool DropOrSpawn(IBasicItem item)
|
||||
{
|
||||
|
@@ -12,7 +12,7 @@ namespace BITFALL
|
||||
event Action<double,double> OnWeighted;
|
||||
}
|
||||
[CustomType(typeof(IPlayerInventoryWeightable))]
|
||||
public class InventoryWeightable : EntityComponent,IPlayerInventoryWeightable
|
||||
public class InventoryWeightable : EntityBehavior,IPlayerInventoryWeightable
|
||||
{
|
||||
[Header(Constant.Header.Data)]
|
||||
public double currentWeight;
|
||||
|
@@ -12,7 +12,7 @@ using UnityEngine;
|
||||
namespace BITFALL.Player.Inventory
|
||||
{
|
||||
[CustomType(typeof(IEntitySwapItem))]
|
||||
public class PlayerInventorySwap : EntityComponent,IEntitySwapItem
|
||||
public class PlayerInventorySwap : EntityBehavior,IEntitySwapItem
|
||||
{
|
||||
public bool TryGetCurrentContainer(out IBasicItemContainer container)
|
||||
{
|
||||
|
Reference in New Issue
Block a user