This commit is contained in:
CortexCore
2023-10-30 01:25:53 +08:00
parent add6d0cab3
commit 18f664a545
125 changed files with 3529 additions and 700 deletions

View File

@@ -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)
{

View File

@@ -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;

View File

@@ -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)
{