Files
Net.Project.B/Src/Inventory/IPlayerPlateInventory.cs
CortexCore dbc223be46 1
2025-08-05 23:34:30 +08:00

29 lines
1018 B
C#

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);
}
}