using System.Diagnostics.CodeAnalysis; using PkmnLib.Static.Utils; namespace PkmnLib.Static.Libraries; /// /// The library for all natures in the game. /// public interface IReadOnlyNatureLibrary : IEnumerable { /// /// Tries to get a nature from the library. Returns false if the nature is not found. /// bool TryGet(StringKey key, [MaybeNullWhen(false)] out INature value); /// /// Gets a random nature from the library. /// INature GetRandom(IRandom random); /// /// The amount of natures in the library. /// int Count { get; } /// /// Whether the library is empty. /// bool IsEmpty { get; } } /// public class NatureLibrary : DataLibrary, IReadOnlyNatureLibrary;