canto/Assets/Scripts/Item/Atoms/Pairs/ItemPair.cs
2025-10-02 15:28:03 -04:00

22 lines
No EOL
641 B
C#

using System;
using UnityEngine;
using KitsuneCafe.ItemSystem;
namespace UnityAtoms.KitsuneCafe.Atom.ItemSystem
{
/// <summary>
/// IPair of type `&lt;Item&gt;`. Inherits from `IPair&lt;Item&gt;`.
/// </summary>
[Serializable]
public struct ItemPair : IPair<Item>
{
public Item Item1 { get => _item1; set => _item1 = value; }
public Item Item2 { get => _item2; set => _item2 = value; }
[SerializeField]
private Item _item1;
[SerializeField]
private Item _item2;
public void Deconstruct(out Item item1, out Item item2) { item1 = Item1; item2 = Item2; }
}
}