This commit is contained in:
CortexCore
2025-08-05 23:34:30 +08:00
parent 519c93d651
commit dbc223be46
14 changed files with 156 additions and 5 deletions

View File

@@ -0,0 +1,28 @@
using System;
using System.Collections;
using System.Collections.Generic;
using BITKit;
using Unity.Mathematics;
using UnityEngine;
namespace Net.Project.B.Inventory
{
public interface IPlayerPlateInventory
{
IReadOnlyDictionary<int, IRuntimeItem> Plates { get; }
IReadOnlyDictionary<int,int> PlateSlotProviders { get; }
public event Action<IRuntimeItem> OnPlateAdded;
public event Action<IRuntimeItem> OnPlateRemoved;
public event Action<IRuntimeItem> OnPlateDamaged ;
public event Action<IRuntimeItem> OnPlateDestroyed ;
public event Action<int2,int2> OnPlateSlotsUpdated;
public event Action<int2, int2> OnSlotsUpdated;
public event Action<int2, int2> OnArmorPointsUpdated;
int2 PlateSlots { get; }
int2 ArmorPoints { get; }
bool AddPlateSlotProvider(int key, int count);
bool RemovePlateSlotProvider(int key);
bool TryAddPlate(IRuntimeItem item);
bool TryRemovePlate(int id);
}
}