PKHeX/PKHeX.Core/Saves/Substructures/Rentals/IRentalTeam.cs
Kurt 10c5adadb8 Misc tweaks
Add more xmldoc
Move files/functions to better spot
Less allocation on hover glow
fix honeytree dppt group/slot/shake rand call (ty real.96)
2024-02-03 14:11:17 -06:00

36 lines
767 B
C#

using System;
namespace PKHeX.Core;
/// <summary>
/// Exposes a rental team interface to fetch team data.
/// </summary>
/// <typeparam name="T">Type of entity stored in the rental team</typeparam>
public interface IRentalTeam<T> where T : PKM
{
/// <summary>
/// Gets the entity at a specific slot.
/// </summary>
T GetSlot(int slot);
/// <summary>
/// Sets the entity at a specific slot.
/// </summary>
void SetSlot(int slot, T pk);
/// <summary>
/// Gets the entire team.
/// </summary>
void GetTeam(Span<T> team);
/// <summary>
/// Sets the entire team.
/// </summary>
void SetTeam(ReadOnlySpan<T> team);
/// <summary>
/// Gets the entire team.
/// </summary>
T[] GetTeam();
}