22 lines
No EOL
641 B
C#
22 lines
No EOL
641 B
C#
using System;
|
|
using UnityEngine;
|
|
using KitsuneCafe.ItemSystem;
|
|
namespace UnityAtoms.KitsuneCafe.Atom.ItemSystem
|
|
{
|
|
/// <summary>
|
|
/// IPair of type `<Item>`. Inherits from `IPair<Item>`.
|
|
/// </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; }
|
|
}
|
|
} |