public MirrorItemCollection(Opsive.UltimateInventorySystem.Core.InventoryCollections.Inventory mirroredInventory, string mirroredItemCollectionName)
{
this.mirroredInventory = mirroredInventory;
this.mirroredItemCollectionName = mirroredItemCollectionName;
this.mirroredItemCollection = mirroredInventory.GetItemCollection(mirroredItemCollectionName);
}
/// <summary>
/// Check if the item can be added to this item collection.
/// </summary>
/// <param name="itemInfo">The item info to add.</param>
/// <returns>The item info to add.</returns>
public override ItemInfo? CanAddItem(ItemInfo itemInfo)
{
return mirroredItemCollection.CanAddItem(itemInfo);
}